Phalcon is a web framework delivered as a C extension providing high performance and lower resource consumption.
This is a repository to publish/share/experiment with new adapters, prototypes or functionality that can potentially be incorporated into the framework.
We also welcome submissions of snippets from the community, to further extend the framework.
The code in this repository is written in PHP.
Install composer in a common location or in your project:
curl -s http://getcomposer.org/installer | php
Create the composer.json file as follows:
{
"require": {
"phalcon/incubator": "dev-master"
}
}
If you are still using Phalcon 1.3.x, create a composer.json with the following instead:
{
"require": {
"phalcon/incubator": "v1.3.5"
}
}
Run the composer installer:
php composer.phar install
Just clone the repository in a common location or inside your project:
git clone https://github.com/phalcon/incubator.git
For a specific Git branch (eg 1.3.5) please use:
git clone -b 1.3.5 git@github.com:phalcon/incubator.git
Add or register the following namespace strategy to your Phalcon\Loader in order to load classes from the incubator repository:
$loader = new Phalcon\Loader();
$loader->registerNamespaces(array(
'Phalcon' => '/path/to/incubator/Library/Phalcon/'
));
$loader->register();
Incubator is built under Travis CI service. Every commit pushed to this repository will queue a build into the continuous integration service and will run all PHPUnit tests to ensure that everything is going well and the project is stable. The current build status is:
See CONTRIBUTING.md
- Phalcon\Acl\Adapter\Database - ACL lists stored in database tables
- Phalcon\Acl\Adapter\Mongo - ACL lists stored in Mongo collections
- Phalcon\Acl\Adapter\Redis - ACL lists stored in a Redis cluster
- Phalcon\Acl\Factory\Memory - ACL factory class intended for use with Memory adapter (digitronac)
- Phalcon\Annotations\Adapter\Memcached - Memcached adapter for storing annotations (igusev)
- Phalcon\Mvc\Model\Behavior\Blameable - logs with every created or updated row in your database who created and who updated it.
- Phalcon\Mvc\Model\Behavior\NestedSet - Nested Set behavior for models (braska)
- Phalcon\Cache\Backend\Database - Database backend for caching data (phalcon)
- Phalcon\Cache\Backend\Redis - Redis backend for caching data (kenjikobe)
- Phalcon\Cache\Backend\Wincache - Wincache backend for caching data (nazwa)
- Phalcon\Config\Adapter\ExtendedYaml - YAML adapter (freekzy)
- Phalcon\Db\Adapter\Cacheable\Mysql - MySQL adapter that agressively caches all the queries executed (phalcon)
- Phalcon\Debug\Dump - Variable dumper (digitronac)
- Phalcon\Logger\Adapter\Database - Adapter to store logs in a database table (phalcon)
- Phalcon\Logger\Adapter\Firelogger - Adapter to log messages in the Firelogger console in Firebug (phalcon)
- Phalcon\Logger\Adapter\File\Multiple - Adapter to log to multiple files (Richard Laffers)
- Phalcon\Mailer\Manager - Mailer wrapper over SwiftMailer (KorsaR-ZN)
- Phalcon\Mvc\View\Engine\Mustache - Adapter for Mustache (phalcon)
- Phalcon\Mvc\View\Engine\Twig - Adapter for Twig (phalcon)
- Phalcon\Mvc\View\Engine\Smarty - Adapter for Smarty (phalcon)
- Phalcon\Mvc\Model\Validator\ConfirmationOf - Allows to validate if a field has a confirmation field with the same value (suxxes)
- Phalcon\Mvc\Model\Validator\CardNumber - Allows to validate credit cadrd number using Luhn algorithm (parshikov)
- Phalcon\Mvc\Model\Validator\IP - Validates that a value is ip (v4 or v6) address in valid range (parshikov)
- Phalcon\Mvc\Model\Validator\Decimal - Allows to validate if a field has a valid number in proper decimal format (negative and decimal numbers allowed) (sergeyklay)
- Phalcon\Mvc\Model\Validator\Between - Validates that a value is between a range of two values (sergeyklay)
- Phalcon\Error - Error handler used to centralize the error handling and displaying clean error pages (theDisco)
- Phalcon\Utils\PrettyExceptions - Pretty Exceptions is an utility to show exceptions/errors/warnings/notices using a nicely visualization. (phalcon/kenjikobe)
- Phalcon\Queue\Beanstalk\Extended - Extended class to access the beanstalk queue service (endeveit)
- Phalcon\Test\FunctionalTestCase - Mvc app test case wrapper (thecodeassassin)
- Phalcon\Test\ModelTestCase - Model test case wrapper (thecodeassassin)
- Phalcon\Test\UnitTestCase - Generic test case wrapper (thecodeassassin)
- Phalcon\Translate\Adapter\Gettext - Translation adapter for Gettext (phalcon)
- Phalcon\Translate\Adapter\Database - Translation adapter using relational databases (phalcon)
- Phalcon\Translate\Adapter\ResourceBundle - Translation adapter using ResourceBundle (phalcon)
- Phalcon\Session\Adapter\Database - Database adapter for storing sessions (phalcon)
- Phalcon\Session\Adapter\Memcache - Memcache adapter for storing sessions (meets-ecommerce)
- Phalcon\Session\Adapter\Mongo - MongoDb adapter for storing sessions (phalcon)
- Phalcon\Session\Adapter\Redis - Redis adapter for storing sessions (phalcon)
- Phalcon\Session\Adapter\HandlerSocket - HandlerSocket adapter for storing sessions (Xrymz)
- Phalcon\Utils\Slug - Creates a slug for the passed string taking into account international characters. (niden)