lefuturiste / slim3-template-api
Slim3 template, ready to start. This is Api version of slim3 template with more lightly template.
Installs: 18
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:project
Requires
- doctrine/cache: ^1.7
- guzzlehttp/guzzle: ^6.3
- hassankhan/config: ^0.10.0
- jimmiw/php-time-ago: ^2.0
- lefuturiste/monolog-discord-handler: ^0.1.2
- lefuturiste/slim-bridge: ^1.0.5
- lefuturiste/slim-whoops: ^0.6.2
- monolog/monolog: ^1.23
- php-di/php-di: ^5.4
- simplon/mysql: ^2.2
- slim/slim: ^3.8
- symfony/console: ^3.3
- symfony/translation: ^3.3
- tracy/tracy: ^2.4
- vlucas/phpdotenv: ^2.4
README
This is simple template of slimframework 3 and integrations of others php librarys.
Quick install
Just run a:
composer create-project lefuturiste/slim3-template-api
Create a .env file in the root directory and fill it with env vars fields (you can get the list of the fields in .env.example)
The console
This template include console powered by symfony console:
The console allowed this commands:
Local dev server
- php console serve -> for run a local dev server with php cli
Maintenance mode
(not finish)
Maintenance mode allow a independent maintenance mode from your web application.
Maintenance mode is made for rename index.php file in web root directory (public) by _index.php and rename maintenance.php file by index.php file and vice versa.
- php console maintenance open -> for enable maintenance mode
- php console maintenance close -> for disable maintenance mode