Install a PHP Docker environment in a matter of seconds
This article is the very short and straightforward version of PHP development in a devcontainer with preinstalled code quality tools. If you just want to follow a very few steps and get your PHP environment, this article is for you.
By following steps describe in this article, you'll obtain:
- A Docker PHP environment so you can code using vscode,
- The PHP
composer
package manager installed, - A few static analysis tool like
php-cs-fixer
,phpcs
,phpcbf
,sonarlint
andRector
installed - A devcontainer ready-to-use environment.
Just follow the guide...
Please refers to my other articles about Docker to see how to Dockerize the application and be able to run the application using Apache and a database service like PostgreSQL.