PHPackages                             rikta/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. [Database &amp; ORM](/categories/database)
4. /
5. rikta/repository

ActiveLibrary[Database &amp; ORM](/categories/database)

rikta/repository
================

A basic abstraction for a repository/data-storage.

0.1.1(4y ago)12372MITPHPPHP ^7.4|^8.0CI failing

Since Sep 28Pushed 4y ago2 watchersCompare

[ Source](https://github.com/RiktaD/repository)[ Packagist](https://packagist.org/packages/rikta/repository)[ RSS](/packages/rikta-repository/feed)WikiDiscussions main Synced 5d ago

READMEChangelogDependencies (3)Versions (3)Used By (2)

Repository
==========

[](#repository)

[![packagist name](https://camo.githubusercontent.com/7c4fe71ec7e19df7a53af04aa1f30415523e689766212a067619b1ad3d91898c/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f6e616d652f72696b74612f7265706f7369746f7279)](https://packagist.org/packages/rikta/repository)[![version](https://camo.githubusercontent.com/e808d4d26463849a0455f84d0289c63b8b53ad097525c5dcce8c809a2b8e9973/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f762f72696b74612f7265706f7369746f72792f6c61746573743f6c6162656c26636f6c6f723d677265656e)](https://github.com/RiktaD/repository/releases)[![php version](https://camo.githubusercontent.com/fc75631a93cbe451c5a628775aa3d96624d9ab7c1aa498e9b430aa1ed899d509/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f7068702f72696b74612f7265706f7369746f7279)](https://github.com/RiktaD/repository/blob/main/composer.json)

[![license](https://camo.githubusercontent.com/a5fa07a08531d1bf29d1f7a724f1ab7f8b6871ea79413b271c5c99d439cb39c0/68747470733a2f2f62616467656e2e6e65742f6769746875622f6c6963656e73652f72696b7461642f7265706f7369746f7279)](https://github.com/RiktaD/repository/blob/main/LICENSE.md)[![GitHub commit activity](https://camo.githubusercontent.com/cafdb81cac18ee906ad172ad3f2a27e0f798912a29fcb99d2ec81da345556071/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6d6d69742d61637469766974792f6d2f72696b7461642f7265706f7369746f7279)](https://github.com/RiktaD/repository/graphs/commit-activity)[![open issues](https://camo.githubusercontent.com/a4c886a9a7d56c82bf8c02df64e26896909f2a6d010fd175fb324ad9c811a98d/68747470733a2f2f62616467656e2e6e65742f6769746875622f6f70656e2d6973737565732f72696b7461642f7265706f7369746f7279)](https://github.com/RiktaD/repository/issues?q=is%3Aopen+is%3Aissue)[![closed issues](https://camo.githubusercontent.com/2a88bdee7f263c8a8d5bdb8a501632f71abe14babeac310434e54636a33fc0b0/68747470733a2f2f62616467656e2e6e65742f6769746875622f636c6f7365642d6973737565732f72696b7461642f7265706f7369746f7279)](https://github.com/RiktaD/repository/issues?q=is%3Aissue+is%3Aclosed)

[![ci](https://camo.githubusercontent.com/5b15b4c4d97ed28535d13124a710d967abb02936914d65a5e21691ff2db8d9dc/68747470733a2f2f62616467656e2e6e65742f6769746875622f636865636b732f72696b7461642f7265706f7369746f72793f6c6162656c3d6369)](https://github.com/RiktaD/repository/actions?query=branch%3Amain+workflow%3A%22Testing+Query%22+workflow%3Acreate-release++)[![dependabot](https://camo.githubusercontent.com/50e3303ca20a0f28d899994d5421de442eb82737b44f612344be94f955d84d27/68747470733a2f2f62616467656e2e6e65742f6769746875622f646570656e6461626f742f72696b7461642f7265706f7369746f7279)](https://dependabot.com)[![maintainability score](https://camo.githubusercontent.com/55302cd18fbaaf65cdfe36ded520ce2c9d0b9993075306dc8cdfdb9a13722f1a/68747470733a2f2f62616467656e2e6e65742f636f6465636c696d6174652f6d61696e7461696e6162696c6974792f52696b7461442f7265706f7369746f7279)](https://codeclimate.com/github/RiktaD/repository)[![tech debt %](https://camo.githubusercontent.com/e057d13032be7d3ed8b0a2b9fc898b36d870780f4893b9cad11a20722f02fa6e/68747470733a2f2f62616467656e2e6e65742f636f6465636c696d6174652f746563682d646562742f52696b7461442f7265706f7369746f7279)](https://codeclimate.com/github/RiktaD/repository/issues)[![maintainability issues](https://camo.githubusercontent.com/c90d90e46a28a173c51c0d6b095c1cef162bde1e009344d1ed97f2ec3e345298/68747470733a2f2f62616467656e2e6e65742f636f6465636c696d6174652f6973737565732f52696b7461442f7265706f7369746f72793f6c6162656c3d6d61696e7461696e6162696c697479253230697373756573)](https://codeclimate.com/github/RiktaD/repository/issues)

A basic abstraction for a repository/data-storage.

Essentially `get`,`set`&amp;`delete` in one Interface that could use be any data-source.

Includes implementations for array-based &amp; file-based (with &amp; w/o caching) storage.

(mostly intended to be used alongside `rikta/query`)

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

[](#installation)

`composer require rikta/repository`

Usage
-----

[](#usage)

Take a look into [./tests/AbstractRepositoryTestCase.php](tests/AbstractRepositoryTestCase.php) until I have refined the Readme ;)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% 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 ~0 days

Total

2

Last Release

1689d ago

### Community

Maintainers

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

---

Top Contributors

[![MadWillow](https://avatars.githubusercontent.com/u/16151453?v=4)](https://github.com/MadWillow "MadWillow (10 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (2 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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