relevo / php7-boilerplate
A tiny, yet powerful foundation for building modern web applications.
0.3.0
2016-06-11 16:01 UTC
Requires
- php: ~7.0
- php-di/php-di: ^5.2
- relay/relay: ^1.1
- zendframework/zend-diactoros: ^1.3
This package is not auto-updated.
Last update: 2025-01-14 10:01:13 UTC
README
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.
Features
- 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.
Quick start
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:
docker-compose up
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.