Sebuah full-stack PHP framework dibuat sebagai ektensi-C

arsitektur yang inovatif membuat Phalcon menjadi framework PHP tercepat yang pernah dibangun! Lihat sendiri...

Disponsori oleh

Fitur-fitur Dasar

  • Low overhead

    Low overhead

    Low memory consumption and CPU compared to traditional frameworks

  • MVC & HMVC

    MVC & HMVC

    Modules, components, models, views and controllers

  • Depndensi injeksi

    Depndensi injeksi

    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)

  • Ekstensi Zephir/C dijalankan bersama dengan PHP pada saat proses awal daemon web server
  • 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
  • Berkat arsitektur tingkat rendahnya dan optimasi Phalcon memberikan overhead terendah untuk aplikasi berbasis MVC

Data & storage

  • ORM

    ORM

    Object Relational Mapping

  • PHQL

    PHQL

    The powerful and secure Phalcon Query Language, PHQL

  • ODM untuk Mongo

    ODM untuk Mongo

    Object Document Mapping for MongoDB

  • Transaksi

    Transaksi

    Transaksi di Phalcon memungkinkan untuk menjaga integritas data tetap aman.

  • Cache

    Cache

    Tingkatkan performa dengan banyak backend cache yang phalcon sediakan

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)

    Sebuah template engine terinspirasi oleh Jinja tapi dibangun dari C untuk PHP

  • i18n

    i18n

    Menerjemahkan aplikasi Anda ke banyak bahasa dengan mudah

  • Forms Builder

    Forms Builder

    Mudah untuk membuat form HTML

  • Flash Messages

    Flash Messages

    Flash messages digunakan untuk memberitahu pengguna tentang keadaan sebuah tindakan.

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

  • ACL

    ACL

    Access Control List memungkinkan pengguna mengakses modul mereka untuk

  • Sharding

    Sharding

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

  • Crypt

    Crypt

    Mengenkripsi / mendekripsi data penting untuk menjaga mereka aman dari pihak lain

  • 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

Ini adalah bagaimana kamu membangun "Access Control List" (ACL):

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

// Buat ACL
$acl = new AclList();

// Aksi bawaan adalah "Akses Ditolak"
$acl->setDefaultAction(Acl::DENY);

// Mendaftar dua aturan, Pengguna adalah pengguna terdaftar
// dan tamu adalah pengguna tanpa identitas
$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

Menonton video demo

Come join our vibrant developer community!

kontribusi komunitas dalam Extensions, Plugins, Adapter, VM, contoh, kode sumber ... dan lainnya