semhoun/slim-skeleton-mvc

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

Installs: 1 133

Dependents: 0

Suggesters: 0

Security: 0

Stars: 76

Watchers: 6

Forks: 13

Open Issues: 0

Type:project

4.0.5 2023-01-23 20:35 UTC

This package is auto-updated.

Last update: 2024-04-10 18:23:52 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.