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

ActiveLibrary

x/store
=======

v0.0.3(6y ago)030PHPPHP ^7.4CI failing

Since Jun 13Pushed 5y ago1 watchersCompare

[ Source](https://github.com/mink/store)[ Packagist](https://packagist.org/packages/x/store)[ RSS](/packages/x-store/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (4)Versions (4)Used By (0)

Store
=====

[](#store)

Store is an extension of Laravel's [Collection](https://laravel.com/docs/7.x/collections) that allows you to create and access your data however you like.

With Store, you can provide Collection's toolset to the entire scope of an existing set of data or create a new data set from the ground up, which you are able to get and assign items in both the context of a Collection object or an array.

When accessing data within a `StoreCollection`, this:

```
$user->name;
```

is the equivalent of:

```
$user['name'];
```

No matter how nested into the data structure you are, you will always have access to all of Collection's existing methods. You will also be able to access the upper hierarchy of the data by using the new `parent()` method.

```
$user->traits = ['frugal', 'kleptomaniac'];
$user->traits->first(); // 'frugal'
$user['traits']->parent(); // goes back up to $user
```

You can also use dot syntax in Collection's `get()` method as a shortcut to accessing nested items.

```
$config->site->settings->maintenance = true;
$config->get('site.settings.maintenance'); // bool(true)
```

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

[](#installation)

You can install Store using Composer.

Store requires PHP &gt;=7.4 and Laravel &gt;=7.0 if you are using Laravel.

```
composer require x/store

```

Anywhere you normally use a Collection instance you are able to use `StoreCollection` instead. you can also use the `store()` helper function to create an instance.

```
$array = ['testing' => 123];
$store = store($array); // or new X\Store\StoreCollection($array)
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Every ~317 days

Total

3

Last Release

2254d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0fce6d86f8eda2aced96bb7bac59027c32ce847ca2fa906871b58d3f3fe68542?d=identicon)[mink](/maintainers/mink)

---

Top Contributors

[![mink](https://avatars.githubusercontent.com/u/13795700?v=4)](https://github.com/mink "mink (40 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

44643.1k1](/packages/pressbooks-pressbooks)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[dragon-code/migrate-db

Easy data transfer from one database to another

15717.4k](/packages/dragon-code-migrate-db)

PHPackages © 2026

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