C 확장 모듈로 개발된 풀스택 PHP 프레임워크

팔콘은 혁신적인 아키텍처를 가진 가장 빠른 PHP 프레임워크입니다! See for yourself...

Sponsored by

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)

  • Zephir/C extensions are loaded together with PHP one time on the web server's daemon start process
  • 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
  • Thanks to its low-level architecture and optimizations Phalcon provides the lowest overhead for MVC-based applications

Data & storage

  • ORM

    ORM

    Object Relational Mapping

  • PHQL

    PHQL

    The powerful and secure Phalcon Query Language, PHQL

  • ODM for MongoDB

    ODM for MongoDB

    Object Document Mapping for MongoDB

  • Transactions

    Transactions

    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

  • Template Engines

    Template Engines

    Views represent the user interface of your application

  • Template Engine (Volt)

    Template Engine (Volt)

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

  • i18n

    i18n

    Translate your applications to many languages easily

  • Forms Builder

    Forms Builder

    Easily create HTML forms

  • Flash messages

    Flash messages

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

Template Engines

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...

  • 접근제어목록

    접근제어목록

    접근 제어 목록은 사용자들이 권한이 있는 곳에만 접근하도록 허용합니다.

  • Sharding

    Sharding

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

  • Crypt

    Crypt

    Encrypt/Decrypt important data to keep them safe from unauthorized third-parties

  • Events

    Events

    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)을 만드는 방법입니다.

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

// 접근제어목록(ACL) 만들기
$acl = new AclList();

// 기본 동작은 접근 거부 방식입니다
$acl->setDefaultAction(Acl::DENY);

// 두개의 롤을 등록하세요. Users는 등록된 사용자이며
// Guests는 인증되지 않은 사용자입니다.
$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

Watch the demo video

Come join our vibrant developer community!

Community contributions in Extensions, Plugins, Adapters, VM, examples, source code... and more