2017 © Pedro Peláez
 

library silex-pumped-distribution

A Silex bundled distribution. This project is a base for your silex applications.

image

enyosolutions/silex-pumped-distribution

A Silex bundled distribution. This project is a base for your silex applications.

  • Tuesday, October 21, 2014
  • by enyosolutions
  • Repository
  • 1 Watchers
  • 1 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 3 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

#Silex - psyched and pumped !

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., (*1)

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, (*2)

However i wasn't satisfied with some of the choices that where made in the project. So i made some changes :, (*3)

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, (*4)

    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., (*5)

You can then do the following :, (*6)

  • 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., (*7)

The Versions