gsu-dle / slim-template
Requires
- php: ^8.1
- gsu-dle/slim: ^1.1
Requires (Dev)
- phpstan/extension-installer: ^1.1
- phpstan/phpstan: ^1.9
- phpstan/phpstan-phpunit: ^1.3
- phpstan/phpstan-strict-rules: ^1.3
- phpunit/phpunit: ^9.5
- squizlabs/php_codesniffer: ^3.7
README
Use this application template to quickly setup and start working on a new Slim 4 application. This application uses the latest Slim 4 with Slim PSR-7 implementation and PHP-DI container implementation. It also uses the Monolog logger.
This application template was built for Composer. This makes setting up a new Slim application quick and easy.
See gsu-dle/slim for more details.
Install the Application
Run this command from the directory in which you want to install your new Slim application. You will require PHP 8.1 or newer.
composer create-project gsu-dle/slim-template [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. - Ensure
logs/
is web writable.
To run the application in development, you can run these commands
cd [my-app-name]
composer start
Run this command in the application directory to run the test suite
composer test
Credits
License
The MIT License (MIT). Please see License File for more information.