Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/semhoun/slim-skeleton-mvc
Slim 4 MVC Skeleton
https://github.com/semhoun/slim-skeleton-mvc
doctrine skeleton slim-framework slim4 twig
Last synced: 25 days ago
JSON representation
Slim 4 MVC Skeleton
- Host: GitHub
- URL: https://github.com/semhoun/slim-skeleton-mvc
- Owner: semhoun
- License: mit
- Created: 2019-08-18T11:27:26.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-09-03T15:31:25.000Z (3 months ago)
- Last Synced: 2024-11-10T08:07:55.090Z (about 1 month ago)
- Topics: doctrine, skeleton, slim-framework, slim4, twig
- Language: PHP
- Size: 125 KB
- Stars: 81
- Watchers: 6
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-slim - Slim 4 MVC Skeleton - This is a simple web application skeleton project. (Boilerplate)
README
# Slim 4 MVC Skeleton
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/62644bc058af464eb2cfcf564c3500d6)](https://www.codacy.com/gh/semhoun/slim-skeleton-mvc/dashboard?utm_source=github.com&utm_medium=referral&utm_content=semhoun/slim-skeleton-mvc&utm_campaign=Badge_Grade) [![Latest Stable Version](https://poser.pugx.org/semhoun/slim-skeleton-mvc/v/stable)](https://packagist.org/packages/semhoun/slim-skeleton-mvc) [![Total Downloads](https://poser.pugx.org/semhoun/slim-skeleton-mvc/downloads)](https://packagist.org/packages/semhoun/slim-skeleton-mvc) [![Latest Unstable Version](https://poser.pugx.org/semhoun/slim-skeleton-mvc/v/unstable)](https://packagist.org/packages/semhoun/slim-skeleton-mvc) [![License](https://poser.pugx.org/semhoun/slim-skeleton-mvc/license)](https://packagist.org/packages/semhoun/slim-skeleton-mvc) [![Monthly Downloads](https://poser.pugx.org/semhoun/slim-skeleton-mvc/d/monthly)](https://packagist.org/packages/semhoun/slim-skeleton-mvc)
This is a simple web application skeleton project that uses the [Slim4 Framework](http://www.slimframework.com/):
* [PHP-DI](http://php-di.org/) as dependency injection container
* [Slim-Psr7](https://github.com/slimphp/Slim-Psr7) as PSR-7 implementation
* [Doctrine](https://github.com/doctrine/orm) as ORM
* [Twig](https://twig.symfony.com/) as template engine
* [Monolog](https://github.com/Seldaek/monolog)
* [Symfony Console](https://github.com/symfony/console)
* [Proxy Detection](https://github.com/akrabat/proxy-detection-middleware)
* [PHP Insights](https://phpinsights.com/) and [Rector](https://getrector.com/) for code quality## Prepare
1. Create your project:
```bash
composer create-project semhoun/slim-skeleton-mvc [your-app]
```
2. Create database (inside your-app): `./console.php migrations:migrate`## 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*