icemanbsi/full-silex
Composer 安装命令:
composer require icemanbsi/full-silex
包简介
Several Base Classes to make full stack framework from Silex micro framework
README 文档
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.originaland 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.phpyou 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)
统计信息
- 总下载量: 269
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2016-08-11