PHP code example of phalcon / incubator-annotations
1. Go to this page and download the library: Download phalcon/incubator-annotations library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
phalcon / incubator-annotations example snippets
use Phalcon\Incubator\Annotations\Adapter\Memcached;
$di->set(
'annotations',
function () {
return new Memcached(
[
'lifetime' => 8600,
'host' => 'localhost',
'port' => 11211,
'weight' => 1,
'prefix' => 'prefix.',
]
);
}
);
use Phalcon\Incubator\Annotations\Adapter\Redis;
$di->set(
'annotations',
function () {
return new Redis(
[
'lifetime' => 8600,
'host' => 'localhost',
'port' => 6379,
'prefix' => 'annotations_',
]
);
}
);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.