PHPackages                             codeofdigital/cache-repository - 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. codeofdigital/cache-repository

ActiveLibrary[Caching](/categories/caching)

codeofdigital/cache-repository
==============================

Laravel Repository Package with Caching

v1.1.2(3y ago)14.3kMITPHP

Since Jul 5Pushed 3y ago1 watchersCompare

[ Source](https://github.com/codeofdigital/cache-repository)[ Packagist](https://packagist.org/packages/codeofdigital/cache-repository)[ Docs](https://github.com/codeofdigital/cache-repository)[ RSS](/packages/codeofdigital-cache-repository/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (10)Versions (6)Used By (0)

Laravel Cache Repository
========================

[](#laravel-cache-repository)

Laravel Repository design pattern package that comes with caching features

[![Latest Version on Packagist](https://camo.githubusercontent.com/cb18ba7b29b835a9db7e14a4635ab7d5d87e42f118a6dda9539209c6c722fadb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f64656f666469676974616c2f63616368652d7265706f7369746f7279)](https://packagist.org/packages/codeofdigital/cache-repository)[![Latest Release on GitHub](https://camo.githubusercontent.com/34fa34f19d2f598091d5563e1736384fff73778cf199ea96e7e238fa95b3d9de/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f636f64656f666469676974616c2f63616368652d7265706f7369746f7279)](https://github.com/codeofdigital/cache-repository)[![GitHub license](https://camo.githubusercontent.com/4dc63d2bdce7263c53fe1944276f354bc7da45f613455abcf523af791196e3eb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f636f64656f666469676974616c2f63616368652d7265706f7369746f7279)](https://github.com/codeofdigital/cache-repository/blob/master/LICENSE.md)[![Total downloads](https://camo.githubusercontent.com/12f3e4348b10393b9b493f3d8730cec8d4629487a634a67e50ce7b476cb9dbd9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f64656f666469676974616c2f63616368652d7265706f7369746f72793f636f6c6f723d677265656e)](https://packagist.org/packages/codeofdigital/cache-repository)

Overview
--------

[](#overview)

Laravel package that revolves around Repository design pattern to encapsulate database-related functions, making our application more flexible and classes are reusable. Comes with normal repository features and caching features as well.

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
    - [Composer](#composer)

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

[](#installation)

### Composer

[](#composer)

Execute the following command to get the latest version of the package:

```
composer require codeofdigital/cache-repository

```

### Publish Config

[](#publish-config)

You can then publish the package's config file and database migrations file with the following command:

```
php artisan vendor:publish --provider="CodeOfDigital\CacheRepository\CacheRepositoryServiceProvider"

```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.6% 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

Every ~69 days

Total

5

Last Release

1183d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7fe71fc868e6e3ffa09607fd744450bb66e13bcf79b7da3ff63b7beae9491fae?d=identicon)[codeofdigital](/maintainers/codeofdigital)

---

Top Contributors

[![bryanvimigo](https://avatars.githubusercontent.com/u/105771613?v=4)](https://github.com/bryanvimigo "bryanvimigo (35 commits)")[![bryanadamloh](https://avatars.githubusercontent.com/u/25056252?v=4)](https://github.com/bryanadamloh "bryanadamloh (1 commits)")[![codeofdigital](https://avatars.githubusercontent.com/u/84611908?v=4)](https://github.com/codeofdigital "codeofdigital (1 commits)")

---

Tags

cachingrepository-patternsolid-principleslaravelmodelcacherepositorydesign patternsolidcodeofdigital

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/codeofdigital-cache-repository/health.svg)

```
[![Health](https://phpackages.com/badges/codeofdigital-cache-repository/health.svg)](https://phpackages.com/packages/codeofdigital-cache-repository)
```

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k90.5k1](/packages/mike-bronner-laravel-model-caching)[prettus/l5-repository

Laravel 8|9|10|11|12|13 - Repositories to the database layer

4.3k11.3M157](/packages/prettus-l5-repository)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M150](/packages/laravel-mcp)

PHPackages © 2026

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