PHP is an unfairly underrated language, but here at DEV, we have yet some great resources about it.
It's not so easy to find them out, because PHP don't have a big audience and related posts get drown among many other (JS) posts, but nevertheless, some of them reached a pretty high quality.
π Bootstrapping
It can be difficult for newcomers to know where to start a new PHP project. If you want to give a try to the Slim
micro-framework, have a loot at @charliedevelops
's following post:
Getting started with Slim PHP framework by building a very simple MVC/OOP app
charliedeveloper γ» Jun 29 '18 γ» 4 min read
β Clean code
A great post about some clean code rules in PHP, with great screenshots:
A month of clean code
Jason McCreary γ» Nov 10 '17 γ» 3 min read
Some other clean code rules, applied to a concrete example:
A very detailed article about clean architecture and design patterns:
Cleaning up your codebase with a clean architecture
Barry O Sullivan γ» May 15 '17 γ» 9 min read
π₯ Quality
I wrote the following post to show dev how to check the quality of PHP code by using 3 static analysis tools (phpcs
, phpmd
& php-cs-fixer
):
π₯ How to Write Clean Code in PHP π
Boris Jamot β / γ» Aug 31 '18 γ» 9 min read
The next article shows how to automate everything with the editor, composer
, git
& the CI/CD pipeline:
π₯ How to Automate Code Quality Checks in your Workflow? β
Boris Jamot β / γ» Sep 10 '18 γ» 8 min read
βοΈ Tests
How to design your code to be able to unit test everything:
π Unit Tests in PHP
Boris Jamot β / γ» Jan 15 '19 γ» 4 min read
Not so specific to PHP, but still interesting:
Because unit tests are never enough, we need acceptance tests. Here is a simple way to test an HTTP API as a black box:
Acceptance testing your PHP app with ease
Barry O Sullivan γ» Apr 23 '18 γ» 5 min read
π Security
It's well known that misusing PHP can lead to serious security breaches. The following resources will be a great introduction for people who care about security (who doesn't?):
5 rules to secure your PHP application:
π Tooling
The best tool in PHP world is unquestionably composer. Number of its features are often unknown. It's not only a dependency manager. Let's have a look at its possibilities:
What, why and how of PHP Composer
Gaurav Makhecha γ» Jun 14 '18 γ» 8 min read
@david_j_eddy introduces 5 essential tools every PHP developers should use:
5 PHP Tools to make your life more enjoyable.
David J Eddy γ» Aug 2 '18 γ» 4 min read
If you ever tasted the pleasure of debugging, then you know you can't do without. Thanks to @brpaz , you'll now know how make all the things work together:
Docker, PHPStorm and Xdebug, The definitive guide
Bruno Paz γ» Sep 6 '18 γ» 4 min read
This last tool has been developed by the author of the article, who can thus help you get started. It's a tool to quickly bootstrap a PHP project from scratch:
PHP project scaffolding (kickstarting) tool
Jitendra Adhikari γ» Aug 15 '18 γ» 1 min read
π Other
Because we all know that reading books help us understanding the things more deeply, here is a list of suggested books about PHP:
The PHP edition of the well known imposter syndrome:
Imposter Syndrome: PHP Edition
Andrew Davis γ» Nov 28 '17 γ» 2 min read
Because such articles are very, very rare, and because I already found myself lost in the face of the lack of resources when Β« cloudifying Β» a PHP app, here is a great article about PHP with containers:
Isolating PHP with Docker Containers
John McCracken γ» Nov 1 '18 γ» 1 min read
π People to follow
@restoreddev 's posts are always well written, and most of them are about PHP. As a PHP dev, you can't definitely not follow him.
@gonedark 's posts are mostly about clean code, PHP and git. Some of them are among the most popular on DEV.
Two of the above articles were written by @brpaz , and some others worth the read.
If you think a PHP post is missing in the list, don't hesitate to mention it in the comments !
Thanks for reading !