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.
Writing Readable PHP
2h 40m 32s
English
Paid
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
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
0:00
/ #1: Automatically formatting code
All Course Lessons (23)
| # | Lesson Title | Duration | Access |
|---|---|---|---|
| 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 subscriptionBooks
Read Book Writing Readable PHP
| # | Title |
|---|---|
| 1 | Book 1 |
| 2 | Book 2 |
| 3 | Book 3 |
| 4 | Book 4 |
| 5 | Book 5 |
| 6 | Book 6 |
| 7 | Book 7 |
| 8 | Book 8 |
| 9 | Book 9 |
| 10 | Book 10 |
| 11 | Book 11 |
| 12 | Book 12 |
| 13 | Book 13 |
| 14 | Book 14 |
| 15 | Book 15 |
| 16 | Book 16 |
| 17 | Book 17 |
| 18 | Book 18 |
| 19 | Book 19 |
| 20 | Book 20 |
| 21 | Book 21 |
| 22 | Book 22 |
| 23 | Book 23 |
| 24 | Book 24 |
| 25 | Book 25 |
| 26 | Book 26 |
| 27 | Book 27 |
| 28 | Book 28 |
| 29 | Book 29 |
| 30 | Book 30 |
| 31 | Book 31 |
| 32 | Book 32 |
| 33 | Book 33 |
| 34 | Book 34 |
| 35 | Book 35 |
| 36 | Book 36 |
| 37 | Book 37 |
| 38 | Book 38 |
| 39 | Book 39 |
| 40 | Book 40 |
| 41 | Book 41 |
| 42 | Book 42 |
| 43 | Book 43 |
| 44 | Book 44 |
| 45 | Book 45 |
| 46 | Book 46 |
| 47 | Book 47 |
| 48 | Book 48 |
| 49 | Book 49 |
| 50 | Book 50 |
| 51 | Book 51 |
| 52 | Book 52 |
| 53 | Book 53 |
| 54 | Book 54 |
| 55 | Book 55 |
| 56 | Book 56 |
| 57 | Book 57 |
| 58 | Book 58 |
| 59 | Book 59 |
| 60 | Book 60 |
| 61 | Book 61 |
| 62 | Book 62 |
| 63 | Book 63 |
| 64 | Book 64 |
| 65 | Book 65 |