PHPackages                             ordent/cache-url-redis - 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. ordent/cache-url-redis

ActiveLibrary

ordent/cache-url-redis
======================

AIO Cache Management based on URL and Auth Implementation

v1.0.0(5y ago)02MITPHPPHP &gt;=7.2

Since Aug 22Pushed 5y ago2 watchersCompare

[ Source](https://github.com/ordent/cache-url-redis)[ Packagist](https://packagist.org/packages/ordent/cache-url-redis)[ RSS](/packages/ordent-cache-url-redis/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

ORDENT / CACHE-URL-REDIS
========================

[](#ordent--cache-url-redis)

AIO cache management service based on URL and Auth JWT Implementation.

How To Use
----------

[](#how-to-use)

1. Install the package via composer

```
composer require ordent/cache-url-redis
```

2. Implement the providers in your app configurations at `config/app.php`

```
'providers' => [
  Ordent\CacheURLRedis\Providers\URLCacheProvider::class
]
```

3. Add a constant in the start of your `bootstart/app.php` to measure the execution time of your api.

```
define('EXEC_TIME_START', microtime(true));
```

4. Add our middleware in `App\Http\Kernel` to short circuit the computation process to redis when the URL key is found.

```
protected $middleware = [
  Ordent\CacheURLRedis\Middleware\URLCacheMiddleware::class
]
```

5. Don't forget to set up your `CACHE` env implementation.

```
  CACHE_DRIVER=redis
```

Output
------

[](#output)

1. We measure and deliver the endpoint execution time via response header `X-Elapsed-Time`.
2. You need to send a Header in order to use the caching mechanism. If the header is not found on the request, the request will be computed normally. The header you need to set is `X-Cache-URL` with either value of `with-auth` or `without-auth`.
3. When the value `without-auth` is being used, the application will short circuit the computation process to Redis with finding the key of request URL.
4. However if the value `with-auth` is used, the application will use the Redis with key format : `{application-url}:{authorization-header-value}` with `authorization-header-value` is your JWT token with Bearer format removed.
5. As of now the cache will last 60 minutes and won't cache another value unless you use header `X-Cache-URL-Invalidate`, you can use it to invalidate the cache value after transaction or any other database change.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

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

2087d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/ordent-cache-url-redis/health.svg)

```
[![Health](https://phpackages.com/badges/ordent-cache-url-redis/health.svg)](https://phpackages.com/packages/ordent-cache-url-redis)
```

PHPackages © 2026

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