adriansuter / slim4-skeleton
Web application skeleton that uses the Slim4 Framework, PHP-DI, Nyholm PSR7 and Twig.
1.3.0
2020-05-06 13:13 UTC
Requires
- php: ^7.2
- monolog/monolog: ^2.0
- nyholm/psr7: ^1.2
- nyholm/psr7-server: ^0.4
- php-di/php-di: ^6
- slim/slim: ^4.1
- slim/twig-view: ^3.1
Requires (Dev)
- phpspec/prophecy: ^1.8
- phpunit/phpunit: ^8.5
README
Web application skeleton that uses the Slim4 Framework, PHP-DI as dependency injection container, Nyholm PSR7 as PSR-7 implementation and Twig as template engine.
This skeleton application was built for Composer.
Installation
Run this command from the directory in which you want to install your new Slim4 Framework application.
composer create-project adriansuter/slim4-skeleton [my-app-name]
Replace [my-app-name]
with the desired directory name for your new application.
You'll want to:
- Point your virtual host document root to your new application's
public/
directory. (Virtual host is the mandatory way to access to your project. If you try to access directly from the container folder you will encounter an error) - Ensure
cache/
andlogs/
are web writable.
To run the application in development, you can run these commands
cd [my-app-name]
composer start
That's it! Now go build something cool.