Silex micro framework for Symfony

Silex micro framework for Symfony

Silex - A micro web framework for symfony

Silex is a micro web framework written in PHP and based on Symfony, Twig (template engine) and Doctrine (database abstraction). It is MIT Licensed.

Silex is lightweight and easy to add features as you need. It is built with symfony components.

The general purpose of Silex is to be as lightweight as you need it to be, as it is made for it to be as easy as possible to add features and extend the Silex base. Silex can be used for the creation of small web applications (e.g. REST APIs) as this is the main case for micro frameworks, however Silex can be extended into a full stack MVC framework.

Silex comes in two available versions; 'fat' and 'slim'. The difference between these being that the fat version is fully featured and includes database abstraction, a template engine and various Symfony components. Whereas the slim version just comes with a basic routing engine.

  • Concise: Silex exposes an intuitive and concise API that is fun to use.
  • Extensible: Silex has an extension system based around the Pimple micro service-container that makes it even easier to tie in third party libraries.
  • Testable: Silex uses Symfony's HttpKernel which abstracts request and response. This makes it very easy to test apps and the framework itself. It also respects the HTTP specification and encourages its proper use.

Silex is a PHP microframework for PHP. It is built on the shoulders of Symfony and Pimple and also inspired by sinatra.

Silex was originally created by Fabien Potencier, the creator of the Symfony framework, and Igor Wiedler.

Silex is now best known as micro php web framework.