Phalcon is a web application framework, written in C, PHP
Phalcon: High Performance PHP Framework
Phalcon is the first framework that implements ORM in C-programming language.
- Low Overhead: Low memory consumption and CPU compared to traditional frameworks
- MVC & HMVC Pattern: Modules, components, models, views and controllers
- Dependency Injection: Dependency Injection and Location of services and it's itself a container for them
- Support for 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: Provides the autoloading mechanism of PHP classes following PSR-4.
- Router: Phalcon\Mvc\Router provides advanced routing capabilities.
You may also like - Core PHP Interview Questions
Phalcon's Dependency injection initializes or define services once – and use them virtually anywhere throughout the application
Loader is a class found under Phalcon\Loader directory.
Phalcon\Loader allows you to load project classes automatically, based on some predefined rules. Since this component is written in C, it provides the lowest overhead in reading and interpreting external PHP files.
In Loader if a class is added according to its need in program, performance is increased as only specific file is included. This technique is known as lazy initialization.
You may also like - React Js Interview Questions Answers
PHQL stands for - Phalcon Query Language.
PHQL (Phalcon Query Language) allows user to implement query language similar to SQL query language.
PHQL is implemented as a parser which connects to RDBMS.
Zephir stands for - Ze(nd Engine) Ph(p) I(nt)r(mediate).
Zephir is an open source, high-level language designed to ease the creation and maintainability of extensions for PHP.
Volt templating Engine.
Volt provides Phalcon fast execution as it is very fast and designer friendly templating language written in C for PHP.
Volt is inspired by Jinja and written by Armin Ronacher.
If a service container (DI) is available for Volt, you can use the services by only accessing the name of the service in the template.
ODM stands for Object Document Mapper
It offers a CRUD functionality, events and validations among other services in Phalcon.
Phalcon CSRF tokens use sessions, so if you increase your session timeout it will automatically increase the token time as well.
By using - setVar() method
Phalcon uses PDO_ to connect to databases.
Following are the some database engines supported by Phalcon:
- Phalcon\Db\Adapter\Pdo\Mysql : Mysql
- Phalcon\Db\Adapter\Pdo\Postgresql : Postgresql
- Phalcon\Db\Adapter\Pdo\Sqlite : SQLite
You may also like - MySQL Interview Questions