A tiny, yet powerful foundation for building modern web applications.
PHP7 Boilerplate is a tiny (42 LLOC), yet powerful foundation for building modern web applications. It does not impose a specific development philosophy or (micro)framework, so you're free to structure the code the way you want.
- Dependency Injection using PHP-DI.
- PSR-7 middleware using Relay and zend-diactoros.
- Tests using PHPUnit.
- Web server with nginx and PHP-FPM using Docker.
Create a new project with Composer:
composer create-project relevo/php7-boilerplate <project-path>
Go to the
<project-path> and start the web server with Docker Compose:
That's it! Your application will be available at
localhost if you're using Linux, or at the IP address of the Docker Machine if you're on Mac OS X or Windows.