phalcon/incubator-annotations

Phalcon Incubator Annotations

Maintainers

👁 Jeckerson

Package info

github.com/phalcon/incubator-annotations

Homepage

Issues

Forum

pkg:composer/phalcon/incubator-annotations

Fund package maintenance!

phalcon

Open Collective

Statistics

Installs: 51

Dependents: 0

Suggesters: 0

Stars: 2

v1.0.0 2021-03-28 13:56 UTC

Requires

  • php: >=7.2
  • ext-phalcon: ^4.0

Suggests

None

Provides

None

Conflicts

None

Replaces

None

BSD-3-Clause 027b6d9ac5a45b877e33fe765f53e4a92e2fdbd2

frameworkannotationsphalconincubator

This package is auto-updated.

Last update: 2026-06-20 03:06:21 UTC


README

Usage examples of the adapters available here:

Memcached

Stores the parsed annotations to Memcached. This adapter uses a Phalcon\Cache\Adapter\Libmemcached backend to store the cached content:

use Phalcon\Incubator\Annotations\Adapter\Memcached;

$di->set(
 'annotations',
 function () {
 return new Memcached(
 [
 'lifetime' => 8600,
 'host' => 'localhost',
 'port' => 11211,
 'weight' => 1,
 'prefix' => 'prefix.',
 ]
 );
 }
);

Redis

Stores the parsed annotations to Redis. This adapter uses a Phalcon\Cache\Adapter\Redis backend to store the cached content:

use Phalcon\Incubator\Annotations\Adapter\Redis;

$di->set(
 'annotations',
 function () {
 return new Redis(
 [
 'lifetime' => 8600,
 'host' => 'localhost',
 'port' => 6379,
 'prefix' => 'annotations_',
 ]
 );
 }
);