Diferencia entre revisiones de «Usuario:Lmorillas/desarrollo web servidor/php/silex»

De WikiEducator
Saltar a: navegación, buscar
Línea 16: Línea 16:
 
=== Otros docs ===
 
=== Otros docs ===
 
* http://www.slideshare.net/javier.eguiluz/silex-desarrollo-web-gil-y-profesional-con-php
 
* http://www.slideshare.net/javier.eguiluz/silex-desarrollo-web-gil-y-profesional-con-php
 
* http://whateverthing.com/blog/2013/06/28/quick-web-apps-part-one/
 
* http://whateverthing.com/blog/2013/07/01/quick-web-apps-part-three/
 
  
 
=== Un ejemplo para aprender ===
 
=== Un ejemplo para aprender ===
Línea 63: Línea 60:
 
* Silex y doctrine: http://asiermarques.com/2013/silex-con-doctrine-dbal-y-orm/
 
* Silex y doctrine: http://asiermarques.com/2013/silex-con-doctrine-dbal-y-orm/
 
|Title=Más ...
 
|Title=Más ...
 +
|TOCdepth=2
 +
}}
 +
 +
{{Actividad|
 +
Sigue los pasos del siguiente tutorial:
 +
* http://whateverthing.com/blog/2013/06/28/quick-web-apps-part-one/
 +
* http://whateverthing.com/blog/2013/06/30/quick-web-apps-part-two/
 +
* Twig: http://whateverthing.com/blog/2013/07/01/quick-web-apps-part-three/
 +
* Bootstrap 3: http://whateverthing.com/blog/2013/08/21/bootstrap-3-demonstration/
 +
* Testing: http://whateverthing.com/blog/2013/09/01/quick-web-apps-part-five/
 +
* Ingegración: http://whateverthing.com/blog/2013/11/04/upthing-part-5/
 +
Código fuente: https://github.com/beryllium/UpThing
 
|TOCdepth=2
 
|TOCdepth=2
 
}}
 
}}

Revisión de 18:28 6 feb 2014


¿Qué es?

Icon objectives.jpg

¿Qué es?

  • Silex es un microframework desarrollado con PHP 5.3.
  • Se basa en los mismos principios que Symfony2 y Pimple
  • Inspirado en Sinatra (Ruby)


Documentación


Instalación

Icon objectives.jpg

Instalación

composer.json

 {
     "require": {
         "silex/silex": "1.0.*@dev"
     }
 }
  $ curl -s http://getcomposer.org/installer | php
  $ php composer.phar install


Inicialización

Icon objectives.jpg

Inicialización

// web/index.php
 require_once __DIR__.'/vendor/autoload.php';

 $app = new Silex\Application();
 $app['debug'] = true;

 // código de los controladores
 
 $app->run();


Más ...


Actividad