Download the PHP package phalcon/bridge-psr16 without Composer
On this page you can find all versions of the php package phalcon/bridge-psr16. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package bridge-psr16
Phalcon Framework - Bridge PSR-16
Phalcon is an open source web framework delivered as a C extension for the PHP language providing high performance and lower resource consumption.
Bridge PSR-16 connects the Phalcon cache and the PSR-16 (Psr\SimpleCache\CacheInterface) standard in both directions:
Cache- a PSR-16 cache backed by a Phalcon cache adapter. Use it wherever aPsr\SimpleCache\CacheInterfaceis expected.Adapter- a Phalcon cache adapter that forwards to a PSR-16 cache. Use it to make any PSR-16 cache (e.g. Symfony Cache) act as a Phalcon cache backend.
Installation
You can install the package using composer
Usage
Cache - use a Phalcon cache through a PSR-16 interface
Phalcon\Bridge\Psr16\Cache is a Psr\SimpleCache\CacheInterface, backed by a Phalcon
cache adapter. Hand it to any code that expects a PSR-16 cache.
Adapter - use a PSR-16 cache as a Phalcon cache backend
Phalcon\Bridge\Psr16\Adapter is a Phalcon cache adapter that forwards to a wrapped
PSR-16 cache. Use it to back a Phalcon\Cache\Cache with any PSR-16 implementation.
Development
The repository ships a Docker setup for local development and testing. You only need Docker + Docker Compose; the PHP runtime and Phalcon are provided inside the container.
Quick start
appis the Compose service name. The running container isbridge-psr16-app(override withPROJECT_PREFIX). It stays up via asleep infinitykeepalive, so you candocker compose exec app <cmd>freely (e.g.composer update).
Choosing the PHP version
The image is built for one PHP version at a time, selected with the PHP_VERSION build arg
(default 8.5; supported 8.1–8.5). Because it is a build arg, changing it requires a
rebuild (--build):
The container keeps the same name, so each rebuild replaces the previous one. To run several versions side by side, give each its own Compose project and prefix:
Choosing the backend
The bridge works against either Phalcon runtime, selected with the PHALCON_VARIANT build arg:
Tip: drop PHP_VERSION / PHALCON_VARIANT into a .env file in the repo root to avoid prefixing
every command — Compose reads it automatically.
Composer scripts
Run them inside the container, e.g. docker compose exec app composer cs:
| Script | Description |
|---|---|
composer cs |
PHP_CodeSniffer (PSR-12) |
composer cs-fix |
Auto-fix coding-standard issues (phpcbf) |
composer cs-fixer |
PHP CS Fixer (dry-run) |
composer cs-fixer-fix |
Apply PHP CS Fixer |
composer analyze |
PHPStan static analysis |
composer test / composer test-unit |
Unit tests via phalcon/talon |
composer test-coverage |
Tests + Clover coverage (tests/_output/coverage.xml) |