Skip to main content
CourseFlix

Writing Readable PHP

2h 40m 32s
English
Paid

Learn how to write code that’s a joy to read for you, your co-workers, and future self. View high-quality videos on both clean coding and static analysis.

Are you...

  • Staring at your old code as if someone else wrote it?
  • Coding in a team without clean code habits?
  • Struggling with consistent naming?
  • Stop the madness! Let’s learn how to write readable PHP in this hands-on course.

About the Author: spatie.be

spatie.be thumbnail
We design, build and support websites, webshops and applications —since 2004. We prefer analysis, clear-cut advice and solid technology over momentary fads. Our sites are built with modern standards, and optimized for performance on all types of devices. Almost every aspect of our job builds upon the work of others. We greatly value open source and try to give back to the community whenever possible. There is a strong mentality to stay on top of things: through Slack, in-house presentations or conferences. A part of our workload is dedicated to open source and side projects. You can spot team members in user groups or as conference speakers as well.

Watch Online 23 lessons

This is a demo lesson (10:00 remaining)

You can watch up to 10 minutes for free. Subscribe to unlock all 23 lessons in this course and access 10,000+ hours of premium content across all courses.

View Pricing
0:00
/
#1: Automatically formatting code
All Course Lessons (23)
#Lesson TitleDurationAccess
1
Automatically formatting code Demo
06:01
2
FORMATTING CODE USING GITHUB ACTIONS
03:28
3
Be Expressive
08:58
4
Be Consistent
06:53
5
Replace booleans in models with timestamps
03:53
6
Avoid using else
06:31
7
Refactoring complex conditionals
10:51
8
Make sure boolean parameters are readable
05:41
9
Using custom exceptions
11:22
10
Skip optional parameters by using named arguments
04:38
11
Replace if blocks with match
04:01
12
Trying out PHPStan for the first time
07:34
13
Class strings
05:38
14
Arrays and collections
11:06
15
Generics
10:21
16
Ignoring PHPStan issues
02:53
17
Use multiple routes files
05:41
18
Use custom Eloquent collections
07:10
19
Avoid strings where possible
06:00
20
Use Laravel's more descriptive methods if given
07:25
21
Leverage form requests
10:27
22
Use macros to clean up code
06:02
23
Embrace factories
07:58
Unlock unlimited learning

Get instant access to all 22 lessons in this course, plus thousands of other premium courses. One subscription, unlimited knowledge.

Learn more about subscription

Books

Read Book Writing Readable PHP

#TitleTypeOpen
1Book 1PDF
2Book 2PDF
3Book 3PDF
4Book 4PDF
5Book 5PDF
6Book 6PDF
7Book 7PDF
8Book 8PDF
9Book 9PDF
10Book 10PDF
11Book 11PDF
12Book 12PDF
13Book 13PDF
14Book 14PDF
15Book 15PDF
16Book 16PDF
17Book 17PDF
18Book 18PDF
19Book 19PDF
20Book 20PDF
21Book 21PDF
22Book 22PDF
23Book 23PDF
24Book 24PDF
25Book 25PDF
26Book 26PDF
27Book 27PDF
28Book 28PDF
29Book 29PDF
30Book 30PDF
31Book 31PDF
32Book 32PDF
33Book 33PDF
34Book 34PDF
35Book 35PDF
36Book 36PDF
37Book 37PDF
38Book 38PDF
39Book 39PDF
40Book 40PDF
41Book 41PDF
42Book 42PDF
43Book 43PDF
44Book 44PDF
45Book 45PDF
46Book 46PDF
47Book 47PDF
48Book 48PDF
49Book 49PDF
50Book 50PDF
51Book 51PDF
52Book 52PDF
53Book 53PDF
54Book 54PDF
55Book 55PDF
56Book 56PDF
57Book 57PDF
58Book 58PDF
59Book 59PDF
60Book 60PDF
61Book 61PDF
62Book 62PDF
63Book 63PDF
64Book 64PDF
65Book 65PDF