Phalcon Incubator
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 potentially can be incorporated to the C-framework.
Also we welcome submissions from the community of snippets that could extend the framework more.
The code in this repository is written in PHP.
Installation
Installing via Composer
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-ext/mvc": "dev-1.3.x"
}
}
Run the composer installer:
php composer.phar install
Installing via Github
Just clone the repository in a common location or inside your project:
git clone https://github.com/phalcon-ext/mvc.git
Autoloading from the Incubator
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\Mvc' => '/path/to/mvc-library/src/'
));
$loader->register();
Contributions Index
Behaviors
- 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)
Template Engines
- 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)
ORM Validators
- 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\IPv4 - Validates that a value is ipv4 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)
Current Build Status
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: