A full-stack PHP framework delivered as a C-extension

Its innovative architecture makes Phalcon the fastest PHP framework ever built! See for yourself...

Patrocinado por

Basic Features

  • Low overhead

    Low overhead

    Low memory consumption and CPU compared to traditional frameworks

  • MVC & HMVC

    MVC & HMVC

    Modules, components, models, views and controllers

  • Dependency Injection

    Dependency Injection

    Dependency Injection and Location of services and it's itself a container for them.

  • Rest

    Rest

    In this case, you can use either a micro or full stack application to meet your goal. In addition, a powerful set of HTTP helpers.

  • Autoloader

    Autoloader

    Provides the autoloading mechanism of PHP classes following PSR-4.

  • Router

    Router

    Phalcon\Mvc\Router provides advanced routing capabilities.

Low overhead

PHP C-extension (Phalcon)

  • Las extensiones en Zephir/C son cargadas con PHP una sola vez cuando el proceso del servidor web arranca
  • Classes and functions provided by the extension are ready to use for any application
  • The code is compiled and isn't interpreted because it's already compiled to a specific platform and processor
  • Gracias a sus optimizaciones y arquitectura bajo nivel, Phalcon tiene una de las sobre cargas mas baja para aplicaciones basadas en MVC

Data & storage

  • ORM

    ORM

    Object Relational Mapping

  • PHQL

    PHQL

    The powerful and secure Phalcon Query Language, PHQL

  • ODM para Mongo

    ODM para Mongo

    Object Document Mapping for MongoDB

  • Transacciones

    Transacciones

    Transactions in Phalcon allows to keep the data integrity safe.

  • Cache

    Cache

    Improve your performance with many of the backend caches that Phalcon provides

ORM

A powerful ORM is provided by Phalcon allowing you to manipulate database records as classes and objects. MySQL, PostgreSQL and SQLite are supported out of the box.

                    
use Phalcon\Mvc\Model;

class Robots extends Model
{
    public $id;

    public $name;

    public function initialize()
    {
        $this->hasMany('id', 'RobotsParts', 'robots_id');
    }
}
                    
                

Views & frontend

  • Motores de Plantillas

    Motores de Plantillas

    Las Vistas representas la interfaz de usuario de tu aplicación.

  • Motor de plantillas (Volt)

    Motor de plantillas (Volt)

    A template engine inspired by Jinja but built in C for PHP

  • i18n

    i18n

    Translate your applications to many languages easily

  • Constructor de Formularios

    Constructor de Formularios

    Easily create HTML forms

  • Flash Messages

    Flash Messages

    Flash messages are used to notify the user about the state of actions.

Motores de Plantillas

Views represent the user interface of your application. Views are often HTML files with embedded PHP code that perform tasks related solely to the presentation of the data. Views handle the job of providing data to the web browser or other tool that is used to make requests from your application.

                    
<html>
    <body>
    <div class='top'><?php $this->partial('shared/ad_banner'); ?></div>
    <div class='content'>
        <h1>Robots</h1>
        <p>Check out our specials for robots:</p>
        ...
    </div>
    <div class='footer'><?php $this->partial('shared/footer'); ?></div>
    </body>
</html>                    
                

MORE...

  • ACL

    ACL

    Access Control List allows users to access the modules they're authorized to

  • Sharding

    Sharding

    Connect, store and retrieve data from many database systems at the same time

  • Crypt

    Crypt

    Cifrar / descifrar datos importantes para mantenerlos a salvo de terceros no autorizados

  • Eventos

    Eventos

    Extend the most of the framework components by setting 'hook points'. Create your own events and make your application more flexible and powerful

  • Queueing - background process

    Queueing - background process

    Use the built-in queueing system in Phalcon to schedule jobs and reduce the load of your web server

ACL

This is how you can built the access control list (ACL):

                    
use Phalcon\Acl;
use Phalcon\Acl\Role;
use Phalcon\Acl\Adapter\Memory as AclList;

// Create the ACL
$acl = new AclList();

// The default action is DENY access
$acl->setDefaultAction(Acl::DENY);

// Register two roles, Users is registered users
// and guests are users without a defined identity
$roles = array(
    'users'  => new Role('Users'),
    'guests' => new Role('Guests')
);

foreach ($roles as $role) {
    $acl->addRole($role);
}
                    
                

A polling app built from scratch in < 15 min

Ve el video de demostración

Come join our vibrant developer community!

Contribuciones de la comunidad en extensiones, complementos, adaptadores, VM, ejemplos, código fuente ... y más