sunaryohadi / slim3-skeleton
Simple Slim Framework 3 skeleton with Twig, Monolog, ezSQL (mysqli). Also has sample of simple CRUD.
Installs: 120
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 2
Forks: 0
Open Issues: 0
Type:project
pkg:composer/sunaryohadi/slim3-skeleton
Requires
- php: >=5.6
- ext-mbstring: *
- ezsql/ezsql: ^4.0
- monolog/monolog: ^1.25.4
- slim/csrf: ^1.0
- slim/flash: ^0.4.0
- slim/slim: ^3.12.3
- slim/twig-view: ^2.5.1
- twig/extensions: ^1.5.4
This package is auto-updated.
Last update: 2025-10-27 06:48:42 UTC
README
This is a simple skeleton project for Slim 3 that includes Twig, Flash messages, Monolog & ezSQL.
Also theres same component, which is mostly required.
Twig template using SASS and bourbon family. Also included sample of "simple CRUD".
Requirements
- PHP 5.6.x or newer
- MySQL Server 5.x or newer
Create your project:
$ composer create-project -n -s dev sunaryohadi/slim3-skeleton my-app
Database
- Create database and import crud.sql for sample daabase
Run it:
$ cd my-app$ composer start- Browse to http://localhost:8080
Key directories
private: Application codeprivate/src: All class files within theprivatenamespaceprivate/templates: Twig template filestmp/cache: Twig's Autocreated cache filestmp/log: Log filesweb: Webserver rootprivate/routes: Router fileprivate/vendor: Composer dependenciesprivate/sass: Sass files using bourbon.io
Key files
web/index.php: Entry point to Applicationprivate/settings.php: Configurationprivate/dependencies.php: Services for Pimpleprivate/middleware.php: Application middlewareprivate/routes/root.php: Main route are hereprivate/src/Action/HomeAction.php: Action class for the home pageprivate/templates/main.twig: Main base Twig Templateprivate/templates/home.twig: Twig template file for the home page