PHPackages                             rollerworks/uri-encoder-doctrine-cache - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. rollerworks/uri-encoder-doctrine-cache

AbandonedArchivedLibrary[Caching](/categories/caching)

rollerworks/uri-encoder-doctrine-cache
======================================

Provides a Doctrine Cache adapter for the Rollerworks URIEncoder Component

v1.0.0(10y ago)0245MITPHPPHP &gt;=5.4

Since Sep 19Pushed 10y agoCompare

[ Source](https://github.com/rollerworks/uri-encoder-doctrine-cache)[ Packagist](https://packagist.org/packages/rollerworks/uri-encoder-doctrine-cache)[ RSS](/packages/rollerworks-uri-encoder-doctrine-cache/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Doctrine Cache adapter for the Rollerworks URIEncoder Component
===============================================================

[](#doctrine-cache-adapter-for-the-rollerworks-uriencoder-component)

This package provides a Doctrine Cache adapter for the [Rollerworks URIEncoder Component](https://github.com/rollerworks/rollerworks-uri-encoder).

Installation
------------

[](#installation)

To install this package, add `rollerworks/uri-encoder-doctrine-cache` to your composer.json

```
$ php composer.phar require rollerworks/uri-encoder-doctrine-cache
```

Then, you can install the new dependencies by running Composer's `update`command from the directory where your `composer.json` file is located:

```
$ php composer update rollerworks/uri-encoder-doctrine-cache
```

Now, Composer will automatically download all required files, and install them for you.

Usage
-----

[](#usage)

```
require 'vendor/autoload.php';

use Doctrine\Common\Cache\ArrayCache;
use Doctrine\Common\Cache\ChainCache;
use Rollerworks\Component\UriEncoder\Encoder as UriEncoder;
use Rollerworks\Component\UriEncoder\Cache\DoctrineCache;

// The Doctrine cache library.
$doctrineCache = new ChainCache(
    [
        // Include the ArrayCache as the ChainCache will populate all the previous cache layers.
        // So if the `FilesystemCache` has a match it will populate the faster ArrayCache.
        new ArrayCache(),

        // Add an simple cache for fast access, eg. the rollerworks session-cache library.
        // https://github.com/rollerworks/Cache
    ]
);

// Rollerworks\Component\UriEncoder\CacheAdapterInterface
$cacheDriver = new DoctrineCache($doctrineCache);

$stringEncode = 'This string is not safe, for direct usage & must encoded';

$base64Encoder = new UriEncoder\Base64UriEncoder();
$cacheEncoder = new UriEncoder\CacheEncoderDecorator($cacheDriver, $base64Encoder);

$safeValue = $cacheEncoder->encodeUri($stringEncode);

// $safeString now contains a base64 encoded string
// and the result is cached using the cacheDriver.

$originalValue = $cacheEncoder->decodeUri($safeValue);
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3942d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f0e812c04e848e9cc3afe6e966d2b81e81308124d96ce5f54eff4db0f8db0ea9?d=identicon)[sstok](/maintainers/sstok)

---

Top Contributors

[![sstok](https://avatars.githubusercontent.com/u/904790?v=4)](https://github.com/sstok "sstok (1 commits)")

---

Tags

rollerworks

### Embed Badge

![Health badge](/badges/rollerworks-uri-encoder-doctrine-cache/health.svg)

```
[![Health](https://phpackages.com/badges/rollerworks-uri-encoder-doctrine-cache/health.svg)](https://phpackages.com/packages/rollerworks-uri-encoder-doctrine-cache)
```

###  Alternatives

[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.1k17.8k](/packages/prestashop-prestashop)[cache/cache

Library of all the php-cache adapters

2722.7M22](/packages/cache-cache)[roave/doctrine-simplecache

Doctrine Cache adapter for PSR-16 Simple Cache

551.4M1](/packages/roave-doctrine-simplecache)[metamodels/core

MetaModels core

10156.4k68](/packages/metamodels-core)[contao-community-alliance/dc-general

Universal data container for Contao

1680.8k92](/packages/contao-community-alliance-dc-general)[chh/cache-service-provider

Provides easy to use caching for Silex applications, built on top of the doctrine/cache package

23164.1k1](/packages/chh-cache-service-provider)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
