gsu-dle/slim-template

v1.1.2 2023-03-08 19:18 UTC

This package is auto-updated.

Last update: 2024-11-08 23:03:00 UTC


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.