relevo / php7-boilerplate
A tiny, yet powerful foundation for building modern web applications.
Installs: 19
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 1
Open Issues: 0
Type:project
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: 2024-11-19 09:16:46 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.