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
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
Spatie is a Belgian web-development agency and one of the most respected names in the Laravel ecosystem — the author of more than 350 open-source PHP / Laravel packages (Laravel Permission, Laravel Backup, Laravel Translatable, Laravel Image Optimizer, and many others) that anchor a substantial portion of working Laravel codebases. Spatie's paid course material extends the same depth into long-form video.
The CourseFlix listing carries two Spatie courses: Writing Readable PHP (the code-quality / readability discipline applied to modern PHP) and Testing Laravel with PHPUnit (the testing workflow for production Laravel applications).
Material is paid and aimed at PHP / Laravel developers ready to take code quality and testing as serious professional disciplines. For broader content, see CourseFlix's Laravel and PHP category pages.
Watch Online 23 lessons
| # | 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 |
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
Related courses
-
Updated 2y agoPHP Development Bootcamp: Zero to Mastery
By: Zero To MasteryJoin the ultimate PHP Bootcamp to learn modern PHP from scratch. Master PHP web development, create your own applications, and boost your career. Perfect for23h 47m5/5 -
Updated 3y agoWrite PHP Like a Pro: Build a PHP MVC Framework From Scratch
By: UdemyLearn to write faster, easier to maintain, more secure PHP websites by using a model-view-controller framework. Learn the basic concepts of using a model-view-c2h 51m -
Updated 3y agoLearning Yii 2
By: Lynda.comFirst Steps to Developing Web Applications with Yii 2. We'll start by installing a basic Yii application template using Vagrant.2h 51m