Phalcon PHP is a web framework delivered as a C extension providing high performance and lower resource consumption.
This is a very simple tutorial to understand the basis of work with Phalcon.
Check out a explanation article: http://phalconphp.com/documentation/tutorial
Running on CloudFoundry
Here are the changes for running the standrd Phalcon Tutorial app on CloudFoundry.
- Pull credentials from VCAP_SERVICES (use json_decode), setup \Phalcon\Db\Adapter\Pdo\Mysql or other with them.
.htaccessfiles. These are not needed with the php-buildpack.
- Add a manifest.yml file. Not strictly necessary, but makes pushing easier.
- Add a
.bp-config/options.jsonfile. This is necessary to enable the phalcon extension.
.bp-config/httpd/extra/httpd-php.confto override the build pack's default HTTPD's PHP configuration with one that will provide us with pretty url's for Phalcon. This is essentially the rules that were in the
.htaccessfiles combined into this file (with some slight adjustments).