semhoun/slim-skeleton-mvc

Simple Slim Framework 4 skeleton with Twig, Monolog, Doctrine in Sqlite.

4.0.4 2022-08-17 14:03 UTC

This package is auto-updated.

Last update: 2022-11-17 14:38:27 UTC


README

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:

Prepare

  1. Create your project:
composer create-project semhoun/slim-skeleton-mvc [your-app]
  1. 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/console.php orm:convert-mapping --from-database annotation ./src/Entity ⚠️ Delete all entities before re-generate to update entities.