Facebook
Twitter
Google+
Kommentare
0

Silex – PHP micro-framework für PHP 5.3

Schonmal was von Silex dem PHP micro-framework gehört?
Ich bin durch den Tweet von Fabien Potencier darauf aufmerksam geworden.

http://t.co/Ltv9RNn is the new home for Silex, the micro-framework based on #Symfony2 Thanks @igorwesome for the docs

Silex ist ein PHP micro-framework für PHP 5.3, basierend auf Symfony2 Komponenten und Pimple, ein kleiner Dependency Injection Container. Die Entwickler Fabien Potencier und Igor Wiedler wurden von Sinatra inspiriert.

Symfony2 dürfte ja bekannt sein, aber Sinatra? Ich glaube nicht, dass sie die Musik von Frank Sinatra meinen ;-) .

Sinatra ist eine DSL, die das schnelle Erstellen von Webanwendungen in Ruby mit minimalen Aufwand ermöglicht.

Welche Ziele verfolgt Silex:

  • 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 Symfony2′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.

Um mit Silex arbeiten zu können, muss man nur das PHP Archive “silex.phar” einbinden.

Silex bringt schon Extensions mit, wie z.B. die MonologExtension, TwigExtension und UrlGeneratorExtension. Das Framework bietet aber auch eine API an, mit der man seine eigenen Extensions schreiben kann.

Igor Wiedler hat auf SlideShare auch noch eine Präsentation über Silex veröfffentlicht.

Über Silex: http://silex-project.org/
Installation: http://silex-project.org/installation
Dokumentation: http://silex-project.org/documentation
Entwicklung: http://silex-project.org/development

Über den Autor

devtalk

Link erfolgreich vorgeschlagen.

Vielen Dank, dass du einen Link vorgeschlagen hast. Wir werden ihn sobald wie möglich prüfen. Schließen