Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Sample application, creating an alternative web site for PHP
PHP JavaScript
branch: master

PHP Alternative Site

Phalcon PHP is a web framework delivered as a C extension providing high performance and lower resource consumption.

This is a sample application for the Phalcon PHP Framework. We wanted to create an alternative version of the PHP site powered by the C-extension framework.


Get Started


To run this application on your machine, you need at least:

  • PHP >= 5.3.6
  • Apache Web Server with mod rewrite enabled
  • Latest Phalcon Framework extension enabled (0.4.x)


Check your database configuration and website's base URI.


Then you'll need to create the database and initialize schema:

php -r '
require "app/config/config.php";

$n = $config->database->name;
$u = $config->database->username;
$p = $config->database->password;

echo `echo "CREATE DATABASE {$n}" | mysql -u {$u} -p {$p}`;
echo `cat schemas/php_site.sql | mysql -u {$u} -p {$p} {$n}`;
Something went wrong with that request. Please try again.