Skip to content
Slim 4 MVC Skeleton
PHP HTML
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin Move console.php to bin directory Sep 15, 2019
conf Update to Slim 4.2.0 Aug 21, 2019
public Update to Slim 4.2.0 Aug 21, 2019
src Typo error Aug 19, 2019
templates Use bootstrap template Aug 18, 2019
var Add var directory Dec 6, 2018
.gitignore Update Readme Aug 18, 2019
LICENSE First init Mar 11, 2016
README.md Move console.php to bin directory Sep 15, 2019
composer.json Forgot ext-sqlite3 Aug 21, 2019
docker-compose.yml Use bootstrap template Aug 18, 2019

README.md

Slim 4 MVC Skeleton

Codacy Badge Latest Stable Version Total Downloads Latest Unstable Version License Monthly Downloads

This is a simple web application skeleton project that uses the Slim4 Framework:

CAUTION

The Slim Twig-View is still in active development and can introduce breaking changes. It is an alpha release. Of course you can use this skeleton, but be warned. As soon as you update the Slim Twig-View, you might have to modify your code.

Prepare

  1. Create your project:

    composer create-project -s dev semhoun/slim-skeleton-mvc [your-app]
  2. Create database: ./bin/console.php app:init-db

Run it:

  1. cd [your-app]
  2. php -S 0.0.0.0:8888 -t public/
  3. Browse to http://localhost:8888

Notice

  • Set var folder permission to writable when deploy to production environment
  • Default login/password is admin/admin
  • To generate Doctrine entities:./bin/entities_generator.php ⚠️ Delete all entities before re-generate to update entities.
You can’t perform that action at this time.