enyosolutions / silex-pumped-distribution
A Silex bundled distribution. This project is a base for your silex applications.
Requires
- doctrine/dbal: ~2.3
- doctrine/orm: >=2.2,<2.5-dev
- jasongrimes/silex-simpleuser: ~1.0
- jasonlewis/expressive-date: ~1.0.2
- kriswallsmith/assetic: ~1.1
- leafo/lessphp: ~0.4.0
- mheap/silex-assetic: ~1.0
- monolog/monolog: ~1.6
- raveren/kint: v0.9
- resty/resty: @stable
- silex/silex: ~1.2
- silex/web-profiler: ~1.0.3
- symfony/config: ~2.3
- symfony/console: ~2.3
- symfony/finder: ~2.2
- symfony/form: ~2.3
- symfony/security: ~2.3
- symfony/translation: ~2.3
- symfony/twig-bridge: ~2.3
- symfony/validator: ~2.3
- symfony/yaml: ~2.3
- twig/twig: ~1.10
Requires (Dev)
- filp/whoops: ~1.0
- symfony/browser-kit: ~2.3
- symfony/css-selector: ~2.3
- symfony/dom-crawler: ~2.3
This package is not auto-updated.
Last update: 2024-12-17 03:58:19 UTC
README
This project is a sample for a bootstrap silex application. It's based on lyrixx's Silex Kitchen edition. For more informations, see the dedicated page.
BASE PROJECT
lyrixx project is a great way to start working on silex with a proper structure. It features
- Directory structure
- MVCish approach
- Doctrine DBAL
- Translation
- Bootstrap
- Boilerplate
However i wasn't satisfied with some of the choices that where made in the project. So i made some changes :
CHANGES
- Implemented a User management system : Simple User for Silex.
- Implemented a proper mvc folder structure in the the "src/" directory
- Added support for doctrine2 orm, it's a suggest package. The command line also support doctrine.
- Created a controllers as services system See Silex services controllers.
- Moved non source code elements to the folder "resources/" (console, routing, services registering etc)
- Moved the twig templates to "src/"
- Updated the layout using the SimpleUser version
- Styled the css using the spacelab sheet from Bootswatch
INSTALLATION
Create a project using composer
php composer.phar create-project -s dev enyosolutions/silex-pumped-skeleton PATH/TO/YOUR/APP
cd PATH/TO/YOUR/APP
GETTING STARTED
The app is ready to fire. just navigate to your site with your browser.
You can then do the following :
- Go to "resources/config" and edit your config files as you see fit
- Create a controller in "src/Controllers"
- Register it in "resources/controllers.php"
- Create your routes in "resources/routes.php"
- Create a twig template in "src/views"
You can now do everything you want. Add a redbeanphp to your vendors and you can start prototyping and building your app.