simondevelop / slim-sim
Skeleton slim 4 with doctrine orm and other lib
Requires
- php: >=7.2
- ext-json: *
- digitalnature/php-ref: ^1.3
- doctrine/data-fixtures: ^1.4
- doctrine/migrations: ^3.0
- doctrine/orm: ^2.7
- monolog/monolog: ^1.25
- php-di/php-di: ^6.2
- php-school/cli-menu: ^4.0
- respect/validation: ^2.0
- slim/csrf: ^1.0
- slim/psr7: ^1.2
- slim/slim: ^4.5
- slim/twig-view: 3.0
- symfony/console: ^4.4
- symfony/translation: ^4.4
- symfony/twig-bridge: ^4.4
- symfony/yaml: ^4.4
- twig/extensions: ^1.5
- vlucas/phpdotenv: ^5.1
Requires (Dev)
- phpunit/phpunit: ^8.5
- squizlabs/php_codesniffer: ^3.5
README
Slim Sim is a skeleton based on PHP micro framework Slim.
For all contributions on github, please read the document CONTRIBUTING.md.
Used libraries
- twig-view for the views.
- doctrine for the database.
- data-fixtures for the data fixture.
- migrations for the migrations of the database.
- validation to validate the data.
- csrf for form security.
- php-ref for an improved var_dump function.
- phpdotenv for the configuration of the environment.
- console for terminal commands.
- monolog to manage logs.
- translation for the multilingual system.
- webpack for compilation and minification of files scss/sass/css/js.
- cli-menu for execute commands from a menu in your terminal.
NOTE
cli-menu use php posix extension which is not supported on windows, remember to delete this line in composer.json if you are under windows :
"php-school/cli-menu": "^4.0"
Installation
$ composer create-project SimonDevelop/slim-sim <projet_name> $ cd <projet_name> $ composer install $ npm install
Check that the .env
file has been created, this is the configuration file of your environment or you define the connection to the database, the environment dev
or prod
and the activation of the twig cache.
If the file has not been created, do it manually by duplicating the .env.example
file.
Do not forget to check that your environment configuration of your database matches well.
Permissions
Allow the storage
folder to write to the web server side.
Documentation
See the User Documentation for more details.
You using 1.x version ? See this User Documentation.