2017 © Pedro Peláez
 

library silex-bootstrap

A ready to get started Silex project. It provides you with a fresh start for your silex applications.

image

keirua/silex-bootstrap

A ready to get started Silex project. It provides you with a fresh start for your silex applications.

  • Thursday, August 30, 2012
  • by Keirua
  • Repository
  • 0 Watchers
  • 0 Stars
  • 18 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Silex-bootstrap

Silex-bootstrap is an already setup Silex project. It helps you get started by providing you with everything you need for a lightweight Silex application. By the way, Silex is a PHP micro-framework., (*1)

This project embeds an HTML5Boilerplate structure with Twitterboostrap 2 for the frontend. Regarding the backend, the basics is already setup for you. There is some templating, routing, cache, controllers, basic settings and a solid directory structure., (*2)

It's very similar to Silex Kitchen Edition, but with less stuff. Oh, it's open source, and it's on Github., (*3)

Installation

1) Download composer :, (*4)

curl -s http://getcomposer.org/installer | php

2) Download the latest version of the source code and of its dependencies :, (*5)

php composer.phar create-project keirua/silex-bootstrap YourProject/

where YourProject/ is the directory of your future project., (*6)

Done ! You can now start hacking into YourProject/src/app.php. There already are 2 routes, / and /hello/plop, (*7)

If you don't know Silex, I'm pretty sure the documentation can be useful., (*8)

Directory structure

The directory structure is the following, (*9)

src/
  views/
app/
  cache/
  logs/
web/
vendor/

src/ is the root of your code. Create some routes in app.php, and put the templates in the views directory. A layout file based on HTML5Boilerplate is already there, it can be of use., (*10)

app/ contains all the settings of the application. Everything is in a file named bootstrap.php. If you want to add more service providers from Silex, do it there., (*11)

web/ contains everything which is exposed. Make sure your web server only serves this directory to people. It also contains all the public assets : css, js and images., (*12)

vendor/ contains all the dependencies of the project. The dependencies are listed in composer.json., (*13)

This tool was made with love by KeiruaProd., (*14)

The Versions

30/08 2012

dev-master

9999999-dev https://github.com/Keirua/silex-boilerplate

A ready to get started Silex project. It provides you with a fresh start for your silex applications.

  Sources   Download

MIT

The Requires

 

by Clement Camin

framework