Ported to Silex by M.PARAISO : mparaiso@online.fr
Live Demo : http://silex-ribbit.herokuapp.com/
- Apache Server : http://httpd.apache.org/
- PHP >= 5.3 : http://php.net/
- Mysql : http://www.mysql.com/
- Composer : http://getcomposer.org
- Install composer, install composer packages with command :
composer install
- create a apache server virtual host , the web root folder is /web
- create these environment variables , on the system level if you want to be able to use the console cli :
- RIBBIT_HOST
- RIBBIT_DATABASE
- RIBBIT_USERNAME
- RIBBIT_PASSWORD
- RIBBIT_DRIVER : should be "pdo_mysql"
- RIBBIT_ENVIRONMENT development or production
- change the index page of the htaccess in /web folder , to index_dev.php for development , or index.php for producion in development error will be displayed and you can check application logs in /log/silex.log
- create the database in mysql
- go the project root. use the console utility to create tables in the database :
console orm:schema-tool:create
- if it doesnt work , use the sql script file located in /database/ribbit.sql to create the database.
- chmod the following folders to +w : /cache , /log
- start or restart the server
check Ribbit tutorial on nettutsplus :
- http://net.tutsplus.com/tutorials/building-ribbit-in-rails/
- http://net.tutsplus.com/tutorials/php/building-ribbit-in-php/
- help learn Silex
- help learn Symfony framework
- help learn Doctrine ORM
- help learn PHP