project slim3-skeleton
Simple Slim Framework 3 skeleton with Twig, Monolog, ezSQL (mysqli). Also has sample of simple CRUD.
sunaryohadi/slim3-skeleton
Simple Slim Framework 3 skeleton with Twig, Monolog, ezSQL (mysqli). Also has sample of simple CRUD.
- Saturday, May 12, 2018
- by sunaryohadi
- Repository
- 1 Watchers
- 0 Stars
- 86 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 1 % Grown
Slim 3 Skeleton
This is a simple skeleton project for Slim 3 that includes Twig, Flash messages, Monolog & ezSQL., (*1)
Also theres same component, which is mostly required., (*2)
Twig template using SASS and bourbon family. Also included sample of "simple CRUD"., (*3)
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 code
-
private/src
: All class files within the private
namespace
-
private/templates
: Twig template files
-
tmp/cache
: Twig's Autocreated cache files
-
tmp/log
: Log files
-
web
: Webserver root
-
private/routes
: Router file
-
private/vendor
: Composer dependencies
-
private/sass
: Sass files using bourbon.io
Key files
-
web/index.php
: Entry point to Application
-
private/settings.php
: Configuration
-
private/dependencies.php
: Services for Pimple
-
private/middleware.php
: Application middleware
-
private/routes/root.php
: Main route are here
-
private/src/Action/HomeAction.php
: Action class for the home page
-
private/templates/main.twig
: Main base Twig Template
-
private/templates/home.twig
: Twig template file for the home page
Credits
- https://github.com/akrabat/slim3-skeleton
dev-master
9999999-dev
Simple Slim Framework 3 skeleton with Twig, Monolog, ezSQL (mysqli). Also has sample of simple CRUD.
Sources
Download
BSD-3-Clause
The Requires
skeleton
crud
slim-framework
ezsql