PHPackages                             mrboolean/store - 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. mrboolean/store

ActiveLibrary

mrboolean/store
===============

MrBoolean/store is a simple and flexible way to hold your data unified and access it easily.

116PHP

Since Nov 18Pushed 10y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

store
=====

[](#store)

[![Minimum PHP Version](https://camo.githubusercontent.com/0aa7445f06e06d72b9552b4ace117e3765a60fa64d6c973cac177557fd20368f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230352e352d3838393242462e7376673f7374796c653d666c61742d737175617265)](https://php.net/)[![Code Climate](https://camo.githubusercontent.com/66db520cfbfbca84c3da4740e6fd27a11386ce46079e43e6af5acc82bcdb8b95/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f4d72426f6f6c65616e2f73746f72652f6261646765732f6770612e737667)](https://codeclimate.com/github/MrBoolean/store)[![Test Coverage](https://camo.githubusercontent.com/a5218cc4ba1b338655d500306cd6380eac6b217fa8320a9ae57f5890c61c39bd/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f4d72426f6f6c65616e2f73746f72652f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/MrBoolean/store/coverage)[![Build Status](https://camo.githubusercontent.com/561f0a2738060a729018e7f3571cc0ec7364c692b6a0f2ad69c2f9cd35b2d21c/68747470733a2f2f7472617669732d63692e6f72672f4d72426f6f6c65616e2f73746f72652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/MrBoolean/store)[![Packagist](https://camo.githubusercontent.com/6281aac0f804c7501f0e5c29febaa9c3b8088b8537761dd61c57d7fbc9be4381/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f4d72426f6f6c65616e2f73746f72652e737667)](https://packagist.org/packages/MrBoolean/store)[![Packagist Downloads](https://camo.githubusercontent.com/e4b8a045a8443013c8880e45fd3755ac01800e0e2b80a3ea485df95a2b0dc110/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f4d72426f6f6c65616e2f73746f72652e737667)](https://packagist.org/packages/MrBoolean/store)[![Share](https://camo.githubusercontent.com/912300a09319ac17e5bf0130c25612d7af4abbbb15676afbdc849be690b30a16/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f75726c2f687474702f6769746875622e636f6d2f4d72426f6f6c65616e2f73746f72652e7376673f7374796c653d736f6369616c)](https://twitter.com/intent/tweet?status=http://github.com/MrBoolean/store)

`store` is a simple and flexible way to hold your data unified and handle it with methods `store` comes with. You decide which of those "special" methods you need and inject them by using traits ([list of all plugins](https://github.com/MrBoolean/store/tree/master/src/Store/Plugin)). A bunch of methods like `set`, `get`, `has` or for example `pushToEnd` are available by default. Read the [API docs](https://github.com/MrBoolean/store/blob/master/API.md) to get additional information!

**Arguments to use `store`**

1. Unfortunately, `PHP` uses an unclean argument acceptance. The function names are not clean enough to determine which one is the correct one for my behaviour (e.g. `array_push` and `array_unshift`). Sometimes a function accepts the `$haystack` as the first argument, sometimes a similar function does not. is possible.
2. Easy to extend.
3. Build the store you need using the above-mentioned [list of plugins](https://github.com/MrBoolean/store/tree/master/src/Store/Plugin).

Install
-------

[](#install)

```
{
  "require": {
    "mrboolean/store": "*"
  }
}

```

License
=======

[](#license)

The MIT License (MIT)

Copyright (c) 2015 Marc Binder

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/6186407a327d741890a2f0799951b8e0db26fd55648b24a1135c69df8d3ecc42?d=identicon)[MrBoolean](/maintainers/MrBoolean)

---

Top Contributors

[![m19c](https://avatars.githubusercontent.com/u/345551?v=4)](https://github.com/m19c "m19c (43 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")

### Embed Badge

![Health badge](/badges/mrboolean-store/health.svg)

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

PHPackages © 2026

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