高性能 PHP 框架,Phalcon 2.0.8 发布

jopen 9年前

PhalconPHP 是一个使用 C 扩展开发的 PHP Web 框架,提供高性能和低资源占用。

Phalcon 是一个开源的、全堆栈的 PHP 5 框架,使用 C 扩展编写,专门为高性能优化。无需学习和使用 C 语言,所有函数都以 PHP 类的方式曾现。Phalcon 是一个松耦合的框架。

使用时需在 php.ini 中添加:extension=phalcon.so

Phalcon 2.0.8 发布,此版本更新内容如下:

  • Added Phalcon\Security\Random::base58 - to generate a random base58 string

  • Added Phalcon\Logger\Adapter::isTransaction() to check whether the logger is currently in transaction mode or not (Phalcon 1.3 behavior)

  • Phalcon\Session\Adapter now closes the session when the adapter is destroyed (Phalcon 1.3 behavior)

  • Fixed fetching of data in modes FETCH_CLASS, FETCH_INTO and FETCH_FUNC in Phalcon\Db

  • Added missing code property in Phalcon\Validation\Message available in Phalcon 1.3.x

  • Added Phalcon\Db\Column::TYPE_TIMESTAMP to allow migrations on these kind of columns

  • Added Phalcon\Db\ColumnInterface::hasDefault to check if a column has a default value declared in its database column definition

  • Fixed determining of default value for column in Phalcon\Db\Dialect\MySQL, Phalcon\Db\Dialect\Sqlite andPhalcon\Db\Dialect\Postgresql classes

  • Now Phalcon\Mvc\Model::__call invokes finders as in __callStatic

  • Fixed Phalcon\Db\Dialect\Postgresql::getColumnDefinition for BIGINT and BOOLEAN data types

  • Fixed BOOLEAN default value in Phalcon\Db\Dialect\Postgresql

  • Added Phalcon\Validation\Validator\CreditCard - validation credit card number using luhn algorithm

下载:https://github.com/phalcon/cphalcon/archive/phalcon-v2.0.8.zip