| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente |
| slam4:php:phalcon:installation [2016/01/27 19:53] – [5.2- Phalcon debugbar] jcheron | slam4:php:phalcon:installation [2019/08/31 14:21] (Version actuelle) – modification externe 127.0.0.1 |
|---|
| === apt-get === | === apt-get === |
| |
| <sxh bash:tilte:Terminal;gutter:false> | Ajouter les dépôts à votre distribution : |
| sudo apt-add-repository ppa:phalcon/stable | |
| |
| sudo apt-get update | <sxh bash> |
| | # Stable releases |
| | curl -s https://packagecloud.io/install/repositories/phalcon/stable/script.deb.sh | sudo bash |
| |
| | # Nightly releases |
| | curl -s https://packagecloud.io/install/repositories/phalcon/nightly/script.deb.sh | sudo bash |
| | </sxh> |
| | |
| | Puis installer : |
| | <sxh bash:tilte:Terminal;gutter:false> |
| sudo apt-get install php5-phalcon | sudo apt-get install php5-phalcon |
| | |
| | # or for PHP 7 |
| | |
| | sudo apt-get install php7.0-phalcon |
| |
| </sxh> | </sxh> |
| | |
| === Compilation === | === Compilation === |
| Il est aussi possible de compiler la dernière version Phalcon : | Il est aussi possible de compiler la dernière version Phalcon : |
| === -- Instanciation === | === -- Instanciation === |
| |
| | |
| | <sxh php;title:public/index.php> |
| | ... |
| | /** |
| | * Handle the request |
| | */ |
| | $application = new \Phalcon\Mvc\Application($di); |
| | $di['app'] = $application; |
| | |
| | (new ServiceProvider( APP_PATH .'/app/config/debugbar.php'))->start(); |
| | echo $application->handle()->getContent(); |
| | ... |
| | </sxh> |