What is Silex?

devquora
devquora

Posted On: Feb 22, 2018

 

    2 Answers Written

  •  devquora
    Answered by Farheen

    Silex is a PHP microframework and is built with Symfony and Pimple as a base. It is also inspired by Sinatra. It is basically a microframework that helps build simple single-file apps. Silex is concise and testable yet extensible. It helps define controllers and map them to routes in a single step.

  •  devquora
    Answered by Prachi

    Silex is a Symfony based micro web framework that uses the Twig template engine and Doctrine ORM (database abstraction). It is developed by SensioLabs and released under MIT Licensed.

    Hello World Program in Silex

    $app = new Silex\Application();
    
    $app->get('/', function() use($app) { 
        return 'Hello World!';
    });
    
    $app->run();
    

Related Questions

Please Login or Register to leave a response.

Related Questions

Silex Framework Interview Questions

What are the important features of Silex Framework?

Some most popular features of the Silex Framework are as follows - Silex provides a simple and flexible routing system that allows you to map URLs to controllers and methods. Silex makes use...