icemanbsi / full-silex
Several Base Classes to make full stack framework from Silex micro framework
Requires
- php: ~5.5.0|~5.6.0|7.*
- ext-mbstring: *
- monolog/monolog: ^1.21
- php-activerecord/php-activerecord: v1.1.*
- ruckusing/ruckusing-migrations: 1.0.1
- silex/silex: ~2.0
- swiftmailer/swiftmailer: ^5.4
- symfony/config: ^3.1
- symfony/translation: ^3.1
- symfony/twig-bridge: ^3.1
- symfony/yaml: ^3.1
- twig/twig: ^1.24
Requires (Dev)
- behat/mink: ^1.7
- behat/mink-goutte-driver: ^1.2
- phpunit/phpunit: ~4
- symfony/browser-kit: ^3.0
- symfony/http-kernel: ^3.0
- dev-master
- v1.1.46
- v1.1.45
- v1.1.44
- v1.1.43
- v1.1.41
- v1.1.40
- v1.1.39
- v1.1.38
- v1.1.37
- v1.1.36
- v1.1.35
- v1.1.34
- v1.1.33
- v1.1.32
- v1.1.31
- v1.1.30
- v1.1.29
- v1.1.28
- v1.1.27
- v1.1.26
- v1.1.25
- v1.1.24
- v1.1.23
- v1.1.22
- 1.1.21
- 1.1.20
- v1.1.18
- v1.1.17
- v1.1.16
- v1.1.15
- v1.1.14
- v1.1.13
- v1.1.12
- v1.1.11
- v1.1.10
- v1.1.9
- v1.1.8
- v1.1.7
- v1.1.6
- v1.1.5
- v1.1.4
- v1.1.3
- v1.1.2
- v1.1.1
- v1.1.0
This package is not auto-updated.
Last update: 2025-01-07 11:15:48 UTC
README
Silex is a powerfull micro framework. Well, "micro" means you can create a small website within seconds. But sometimes you need to expand this framework into a full stack to moderate a bigger website. To make it happen at least you need to register several service providers, adding some functions in base controller, models, and many more.
Full Silex is the a fast track to build a full stack framework based on the amazing Silex Micro Framework. It contains several base classes such as Base Controller, Base Model, several Helpers, and many more.
Installation
1. Add full-silex as a required library in your composer project
composer require icemanbsi/full-silex
2. Prepare the project
you can copy the project template from /vendor/icemanbsi/full-silex/project-template
into your project root.
3. Setting up the project
- Make a duplicate of
.htaccess.original
and name it with.htaccess
. - Set your database configurations and others in
/resources/config/dev.php
(for development) and/resources/config/prod.php
(for production). - Inside the
src/App/Application.php
you need to override 'setControllerProviders' function. Please set your controller provider. - Now we move to your controller provider (such as
src/App/DefaultControllerProvider.php
). You can set your url rules inside 'setUrlRules' function. Don't forget to add a rule for '/' and bind it with name 'homepage'.
4. You are ready to go..
Add your controllers, models, template files, and others.
Credits
- Silex Framework
- Database migration by Ruckus (ruckusing/ruckusing-migrations)