payroll_manager/api-payroll
2018-08-06 03:49:42 -06:00
..
logs [add] Slim skeleton 2018-08-04 18:01:48 -06:00
public [add] Custom error handling 2018-08-05 20:42:45 -06:00
src [add] List of all active employees 2018-08-06 03:49:42 -06:00
templates [add] Slim skeleton 2018-08-04 18:01:48 -06:00
tests/Functional [add] Slim skeleton 2018-08-04 18:01:48 -06:00
.gitignore [add] Ignoring ide settings 2018-08-04 18:29:49 -06:00
buildspec.yml [add] CI 2018-08-04 18:18:37 -06:00
composer.json [add] cors 2018-08-05 20:50:33 -06:00
composer.lock [add] cors 2018-08-05 20:50:33 -06:00
CONTRIBUTING.md [add] Slim skeleton 2018-08-04 18:01:48 -06:00
docker-compose.yml [add] Slim skeleton 2018-08-04 18:01:48 -06:00
phpunit.xml [add] Slim skeleton 2018-08-04 18:01:48 -06:00
README.md [add] Slim skeleton 2018-08-04 18:01:48 -06:00

Slim Framework 3 Skeleton Application

Use this skeleton application to quickly setup and start working on a new Slim Framework 3 application. This application uses the latest Slim 3 with the PHP-View template renderer. It also uses the Monolog logger.

This skeleton application was built for Composer. This makes setting up a new Slim Framework application quick and easy.

Install the Application

Run this command from the directory in which you want to install your new Slim Framework application.

php composer.phar create-project slim/slim-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.
  • Ensure logs/ is web writeable.

To run the application in development, you can run these commands

cd [my-app-name]
php composer.phar start

Run this command in the application directory to run the test suite

php composer.phar test

That's it! Now go build something cool.