PHPackages                             webtheory/context - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. webtheory/context

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

webtheory/context
=================

Simple library for accessing collection items by definable contexts

0.1.1(4y ago)1913MITPHPPHP ^7.4 || ^8.0

Since Dec 22Pushed 4y ago1 watchersCompare

[ Source](https://github.com/spider-mane/context)[ Packagist](https://packagist.org/packages/webtheory/context)[ Docs](https://github.com/spider-mane/context)[ RSS](/packages/webtheory-context/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (14)Versions (3)Used By (3)

context
=======

[](#context)

[![Latest Version on Packagist](https://camo.githubusercontent.com/97c5a7c9a574439f8dd1c15147dc2d96fa0ec3a3e151affa869ef9f75cc003fb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7765627468656f72792f636f6e746578742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/webtheory/context)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/8f9a5001c5d426096c32ca38f4486377cc82cd6ce5a441cdc2ec5154430f0c4a/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7370696465722d6d616e652f636f6e746578742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/spider-mane/context)[![Coverage Status](https://camo.githubusercontent.com/d6f060f07adb96a65b79ec745f00a626c992d932890cfa6cc6a0145fef2ee17f/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f7370696465722d6d616e652f636f6e746578742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/spider-mane/context/code-structure)[![Quality Score](https://camo.githubusercontent.com/49cc220782a66f6e2d41d44fed9cf54dc276c97be5b5215dc259c2a76241d543/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7370696465722d6d616e652f636f6e746578742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/spider-mane/context)[![Total Downloads](https://camo.githubusercontent.com/7eb6ccc29d9db399c962104642a187bfa5dc510d1e217e7278ee09f36aa9e827/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7765627468656f72792f636f6e746578742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/webtheory/context)

Simple library for accessing collection items by definable contexts

Install
-------

[](#install)

Via Composer

```
composer require webtheory/context
```

Change log
----------

[](#change-log)

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

Testing
-------

[](#testing)

```
composer test
```

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Chris Williams](https://github.com/spider-mane)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity46

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 ~12 days

Total

2

Last Release

1595d ago

PHP version history (2 changes)0.1.0PHP &gt;=7.4

0.1.1PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/42c6c17a141acad92bd90ad7b7e574ea19ecb332f33272a041261566670576cf?d=identicon)[webtheory](/maintainers/webtheory)

---

Top Contributors

[![spider-mane](https://avatars.githubusercontent.com/u/17187449?v=4)](https://github.com/spider-mane "spider-mane (2 commits)")

---

Tags

Contextwebtheory

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/webtheory-context/health.svg)

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

###  Alternatives

[kartik-v/yii2-nav-x

An extended bootstrap Nav widget for Yii 2 with submenu drilldown.

27564.8k6](/packages/kartik-v-yii2-nav-x)

PHPackages © 2026

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