adhocore/phalcon-ext
Useful phalcon adapters, middlewares, extensions and utilities!
Installation
composer require adhocore/phalcon-ext
What's included
Cache
Cli
Db
Di
Http
Logger
Util
Validation
View
Cache.Redis
Extends Phalcon\Cache\Backend\Redis
to allow access over the underlying redis binding.
Setup
$di->setShared('redis', function () {
return new \PhalconExt\Cache\Redis(new \Phalcon\Cache\Frontend\None(['lifetime' => 0]));
});
// Call native \Redis methods like:
$di->get('redis')->getConnection()->hGet();
$di->get('redis')->getConnection()->info();
Cli.Extension
Definitely check how it works in adhocore/cli and how it is integrated & used in example/cli, example/MainTask.php