phalcon / phalcon
Phalcon Framework
Requires
- php: >=8.1 <9.0
- ext-fileinfo: *
- ext-json: *
- ext-mbstring: *
- ext-pdo: *
- ext-xml: *
- matthiasmullie/minify: ^1.3
- phalcon/traits: ^4.1
Requires (Dev)
- ext-gettext: *
- ext-yaml: *
- friendsofphp/php-cs-fixer: ^3.95
- pds/composer-script-names: ^1.0
- pds/skeleton: ^1.0
- phalcon/annotations: 1.0.x-dev
- phalcon/code-quality: ^1.0
- phalcon/phql: 1.0.x-dev
- phalcon/quill: ^0.5.0
- phalcon/talon: ^1.0.0
- phalcon/volt: 1.0.x-dev
- phpbench/phpbench: ^1.4
- phpstan/phpstan: ^2.2
- phpunit/phpunit: ^10.5
- predis/predis: ^3.4
- squizlabs/php_codesniffer: ^4.0
- vlucas/phpdotenv: ^5.6
Suggests
- ext-apcu: to use Cache\Adapter\Apcu, Storage\Adapter\Apcu
- ext-gd: to use Image\Adapter\Gd
- ext-igbinary: to use Storage\Serializer\Igbinary
- ext-imagick: to use Image\Adapter\Imagick
- ext-memcached: to use Cache\Adapter\Libmemcached, Session\Adapter\Libmemcached, Storage\Adapter\Libmemcached
- ext-openssl: to use Encryption\Crypt
- ext-pcntl: to use signal-based graceful shutdown in Queue\Consumer\Worker
- ext-redis: to use Cache\Adapter\Redis, Session\Adapter\Redis, Storage\Adapter\Redis
- ext-yaml: to use Config\Adapter\Yaml
Provides
None
Conflicts
None
Replaces
None
- v6.0.x-dev
- v6.0.0RC3
- v6.0.0RC2
- v6.0.0RC1
- v6.0.0beta11
- v6.0.0beta10
- v6.0.0beta9
- v6.0.0beta8
- v6.0.0beta7
- v6.0.0beta6
- v6.0.0beta5
- v6.0.0beta4
- v6.0.0beta3
- v6.0.0beta2
- v6.0.0beta1
- v6.0.0alpha6
- v6.0.0alpha5
- v6.0.0alpha4
- v6.0.0alpha3
- v6.0.0alpha2
- v6.0.0alpha1
- v5.0.x-dev
- dev-v6.0.x-annotations-docblock
- dev-v6.0.x-annotations-attributes
- dev-v6.0.x-remove-psr14
- dev-v8.0.x-psr14-events
- dev-http-message-psr7
- dev-master
- dev-datamapper-advanced
This package is auto-updated.
Last update: 2026-10-12 01:22:50 UTC
README
Phalcon is an open-source, full-stack web framework for PHP, focused on high performance, low overhead and a clean, expressive API.
Important
This repository is the pure PHP implementation of Phalcon (v6). Unlike cphalcon, it is not a C extension: there is nothing to compile and no PECL/PIE installation required - just add it to your project with Composer. Phalcon v6 is currently in alpha; APIs may change before the stable release.
A big thank you to our Backers; you rock!
Getting Started
Phalcon is written in plain PHP with portability in mind, so it runs anywhere a supported PHP runtime is available - GNU/Linux, FreeBSD, macOS and Microsoft Windows.
Requirements
- PHP
>= 8.1 < 9.0 ext-fileinfo,ext-json,ext-mbstring,ext-pdo,ext-xml
Optional extensions enable additional adapters and features:
| Extension | Used by |
|---|---|
ext-apcu |
Cache\Adapter\Apcu, Storage\Adapter\Apcu |
ext-gd |
Image\Adapter\Gd |
ext-igbinary |
Storage\Serializer\Igbinary |
ext-imagick |
Image\Adapter\Imagick |
ext-memcached |
Cache\Adapter\Libmemcached, Session\Adapter\Libmemcached, Storage\Adapter\Libmemcached |
ext-openssl |
Encryption\Crypt |
ext-pcntl |
Queue\Consumer\Worker |
ext-redis |
Cache\Adapter\Redis, Session\Adapter\Redis, Storage\Adapter\Redis |
ext-yaml |
Config\Adapter\Yaml |
Installation
Install the framework with Composer:
composer require phalcon/phalcon
While v6 is in alpha you may need to allow pre-release versions:
composer require phalcon/phalcon:^6.0@alpha
For detailed instructions see the installation page in the docs.
Generating API Documentation
API documentation for the docs repository can be generated with the script in
bin/generate-api-docs.php:
- Clone the phalcon repository.
- Check out the tag you would like to generate docs for.
- Run
php bin/generate-api-docs.php. - The generated
*.mdfiles contain the documentation, ready for publishing to the Phalcon docs repository.
Testing
Tests run with PHPUnit:
composer test-unit # unit tests composer test-db-mysql # MySQL database tests composer test-db-pgsql # PostgreSQL database tests composer test-db-sqlite # SQLite database tests composer test-all # everything
Static analysis and coding standards:
composer analyze # PHPStan composer cs # PHP_CodeSniffer (PSR-12)
Sponsors and backers
These sponsors and backers support Phalcon and Zephir. To join them, become a sponsor or a backer on Open Collective or GitHub Sponsors.
Sponsors
Partners
Supporters
Backers
Core Team
Links
General
- Contributing to Phalcon
- Official Documentation
- Incubator - community-driven plugins and classes that extend the framework
Support
Social Media
License
Phalcon is open-source software licensed under the MIT License.
Copyright © 2020-present, The Phalcon PHP Framework.
See the LICENSE file or license.phalcon.io for details.