aanbar / slimapp
A Slim Framework skeleton application for rapid development
v0.1
2018-09-15 16:13 UTC
Requires
- illuminate/database: ^5.7
- respect/validation: ^1.1
- slim/csrf: ^0.8.3
- slim/flash: ^0.4.0
- slim/slim: ^3.1
- slim/twig-view: ^2.4
- vlucas/phpdotenv: ^2.5
This package is auto-updated.
Last update: 2025-02-16 07:12:50 UTC
README
Usage
$ composer create-project aanbar/slimapp [app_name]
$ cd [app_name]
$ cp .env.example .env
Replace [app-name]
with the desired directory name for your new application.
Edit your .env
file and begin working!
Includes
- Auto resolve controllers in routes using:
ControllerName:Method
- Support .env files
- Views using Twig
- Flash messages package already setup in views
- Models using eloquent + database instance already injected in container to allow access using
$this->db
- Form validation using Respect
- Validation errors & old input data are injected into views automatically
- Built-in authentication system with Auth & Guest Middleware
- Automatic Csrf check with
csrf.field
in twig views + custom exclusion list in middleware