erivello/silexplate

A simple boilerplate for Silex PHP micro-framework based on the Symfony2 Components.

dev-master 2012-12-29 23:46 UTC

This package is auto-updated.

Last update: 2024-04-27 20:05:38 UTC


README

A simple boilerplate for Silex PHP micro-framework based on the Symfony2 Components.

Silex works with PHP 5.3.3 or later.

Installation

Installation is very easy, it makes use of Composer.

Install Composer

Run this in your command line:

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

Or download composer.phar into the project root.

Install Dependencies

All dependencies are stored on composer.json file. Run the following command to install it:

$ php composer.phar install

Configuration

Copy app/config/config.php.dist to app/config/config.php and customize it.

What's inside?

The Silexplate comes pre-configured with the following providers:

  • DoctrineServiceProvider - Adds support for Doctrine DBAL
  • FacebookServiceProvider - Adds support for Facebook PHP SDK
  • FormServiceProvider - Adds functionality for building forms
  • MonologServiceProvider - Add application debug logging
  • HttpCacheServiceProvider - Adds support for storing HTTP cache data
  • SecurityServiceProvider - Adds support for managing authentication and authorization
  • SessionServiceProvider - Adds support for managing sessions
  • SwiftmailerServiceProvider - Adds functionality for sending emails
  • TranslationServiceProvider - Adds functionality for translating into different languages
  • TwigServiceProvider - Adds support for the Twig templating engine
  • UrlGeneratorServiceProvider - Adds functionality for generating URLs for named routes
  • ValidatorServiceProvider - Adds functionality for validating data