vanry / slim
Slim framework skeleton for simple and small application
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: ^7.3 || ^8.0
- hassankhan/config: ^2.2
- monolog/monolog: ^2.3
- pimple/pimple: ^3.5
- slim/php-view: ^3.1
- slim/psr7: ^1.5
- slim/slim: ^4.9
Requires (Dev)
- phpunit/phpunit: ^9.5
- symfony/var-dumper: ^5.4
This package is auto-updated.
Last update: 2024-11-05 10:13:35 UTC
README
Use this skeleton application to quickly setup and start working on a new Slim Framework 4 application.
It uses only a few packages to keep it minimal:
hassankhan/config
access configurationmonolog/monolog
log errors and exceptionspimple/pimple
as dependency containslim/php-view
as template engine
Requirements
- PHP 7.3+ or 8.0+
Installation
composer create-project vanry/slim [my-app-name]
Replace [my-app-name]
with the desired directory name for your new application or leave it empty.
You'll want to:
- Point your virtual host document root to your new application's
public
directory. - Ensure
storage
directory is web writable.
Start
To run the application in development, you can run these commands
cd [my-app-name]
composer serve
After that, open http://localhost:8000
in your browser.
Run this command in the application directory to run the test suite
composer test
Additonal test methods are in tests/TestCase.php
, you are not limited to add your own.
That's it! Now go build something cool.
License
It is open-sourced software licensed under the MIT license.