PHPackages                             nanopkg/laravel-orm-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. nanopkg/laravel-orm-cache

ActiveLibrary

nanopkg/laravel-orm-cache
=========================

this packege will help you to cache the data of your website.

32[3 PRs](https://github.com/nanopkg/laravel-orm-cache/pulls)PHP

Since May 29Pushed 2y agoCompare

[ Source](https://github.com/nanopkg/laravel-orm-cache)[ Packagist](https://packagist.org/packages/nanopkg/laravel-orm-cache)[ RSS](/packages/nanopkg-laravel-orm-cache/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

Laravel ORM Cache
=================

[](#laravel-orm-cache)

With this package you can easily cache your database query. This packege will make faster your application.

[![Latest Version on Packagist](https://camo.githubusercontent.com/ba503e2e6c6bfecb023eadc3759accb3a2d89efa8cdb759195f73d83c95990c6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e616e6f706b672f6c61726176656c2d6f726d2d63616368652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nanopkg/laravel-orm-cache)[![GitHub Tests Action Status](https://camo.githubusercontent.com/95b73fd8c9722a484f2797a50e890714ead1adcb3c55518a038279637f8a3476/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6e616e6f706b672f6c61726176656c2d6f726d2d63616368652f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/nanopkg/laravel-orm-cache/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/a60bbf9ee8ea59e6eb4330bc06745c0329c753781b41c96e8c4f11598e00958b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6e616e6f706b672f6c61726176656c2d6f726d2d63616368652f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/nanopkg/laravel-orm-cache/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/1f9f38a616cba4151277e347815f61b7131e130eb63e228f000287d1f3a66b97/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e616e6f706b672f6c61726176656c2d6f726d2d63616368652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nanopkg/laravel-orm-cache)

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

[](#installation)

You can install the package via composer:

```
composer require nanopkg/laravel-orm-cache
```

Usage
-----

[](#usage)

Use OrmCache and set and orm cache key in your model

```
use Nanopkg\OrmCache\Traits\OrmCache;

class Model
{
    use OrmCache; // import this class
    protected static $orm_cache_key = 'your key name here';
}
```

Get cache data by DESC formate

```
Model::cacheData();
```

Get cache data by ASC formate

```
Model::cacheDataASC();
```

Get cache table first Data

```
Model::cacheDataFirst();
```

Get cache table Last Data

```
Model::cacheDataLast();
```

Get cache table query

```
Model::cacheDataQuery();
```

Forget cache

```
Model::forgetCache();
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [RABIUL HASSAN](https://github.com/rabiulhassandev)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/39612205?v=4)[IQBAL HASAN](/maintainers/iqbalhasandev)[@iqbalhasandev](https://github.com/iqbalhasandev)

![](https://www.gravatar.com/avatar/64d618d5ed5f5ff35960027eaf913e269292d638dd09f61fcdf65e961bef290c?d=identicon)[rabiulhassandev](/maintainers/rabiulhassandev)

---

Top Contributors

[![rabiulhassandev](https://avatars.githubusercontent.com/u/121891790?v=4)](https://github.com/rabiulhassandev "rabiulhassandev (5 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (4 commits)")

### Embed Badge

![Health badge](/badges/nanopkg-laravel-orm-cache/health.svg)

```
[![Health](https://phpackages.com/badges/nanopkg-laravel-orm-cache/health.svg)](https://phpackages.com/packages/nanopkg-laravel-orm-cache)
```

PHPackages © 2026

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