PHPackages                             silencenjoyer/silence-collection - 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. silencenjoyer/silence-collection

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

silencenjoyer/silence-collection
================================

A collection for storing data in a structured and typed form.

0.0.3(9mo ago)0101MITPHPPHP ^8.3.0

Since Jul 21Pushed 9mo agoCompare

[ Source](https://github.com/silencenjoyer/silence-collection)[ Packagist](https://packagist.org/packages/silencenjoyer/silence-collection)[ RSS](/packages/silencenjoyer-silence-collection/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (4)Used By (1)

Silence Collection
==================

[](#silence-collection)

[![Latest Stable Version](https://camo.githubusercontent.com/d8fd7d012bb2164c3b6620ef0c56f77297d7a6ddff0ec9f20f6b119e52a9205d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73696c656e63656e6a6f7965722f73696c656e63652d636f6c6c656374696f6e2e737667)](https://packagist.org/packages/silencenjoyer/silence-collection)[![PHP Version Require](https://camo.githubusercontent.com/1b02e12c3f78847bde9607f4d7de277de2e44b0db4199a4d67e9183f7ee4ad37/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f73696c656e63656e6a6f7965722f73696c656e63652d636f6c6c656374696f6e2e737667)](https://packagist.org/packages/silencenjoyer/silence-collection)[![License](https://camo.githubusercontent.com/f2c5dc11a57b2bdb27711337ebcffb6be2ccb3ecbbc19debb0d26f67e8e84963/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f73696c656e63656e6a6f7965722f73696c656e63652d636f6c6c656374696f6e)](LICENSE.md)

A collection for storing data in a structured and typed form, supplied as a component of the Silence PHP framework.

BaseCollection class is a generic, strongly-typed collection implementation in PHP. It provides a convenient and consistent interface for working with arrays as objects and supports array-like access, iteration, and other common operations.

This package is part of the monorepository [silencenjoyer/silence](https://github.com/silencenjoyer/silence), but can be used independently.

⚙️ Installation
---------------

[](#️-installation)

`composer require silencenjoyer/silence-collection`

🚀 Quick start
-------------

[](#-quick-start)

```
$collection = new BaseCollection();

$collection->set('test', new stdClass());
$collection->set('test_2', new stdClass());

$collection->count(); // 2
```

🧱 Features:
-----------

[](#-features)

- Generic Support
- Array-Like Behavior
- Iterable
- Countable

🧪 Testing
---------

[](#-testing)

`php vendor/bin/phpunit`

🧩 Use in the composition of Silence
-----------------------------------

[](#-use-in-the-composition-of-silence)

The package is used as the strongly-typed collection with generic support within the Silence ecosystem. If you are writing your own package, you can connect `silencenjoyer/silence-collection` for storing data in a structured and typed form.

📄 License
---------

[](#-license)

This package is distributed under the MIT licence. For more details, see [LICENSE](LICENSE.md).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance56

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

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

Total

3

Last Release

295d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2b7de643b35f682f4d64395444666af3fdb03945046413cdd9cc75c5241a81b7?d=identicon)[Silencenjoyer](/maintainers/Silencenjoyer)

---

Top Contributors

[![actions-user](https://avatars.githubusercontent.com/u/65916846?v=4)](https://github.com/actions-user "actions-user (8 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/silencenjoyer-silence-collection/health.svg)

```
[![Health](https://phpackages.com/badges/silencenjoyer-silence-collection/health.svg)](https://phpackages.com/packages/silencenjoyer-silence-collection)
```

###  Alternatives

[jeremykendall/php-domain-parser

Public Suffix List and IANA Root Zone Database based Domain parsing implemented in PHP.

1.2k13.0M77](/packages/jeremykendall-php-domain-parser)[prodigious/sonata-menu-bundle

This bundle provides menu management by sonata admin bundle (compatible with sonata page bundle).

1029.6k](/packages/prodigious-sonata-menu-bundle)[digimax/dot-env-editor

Super simple PHP package for updating .env files

121.4k](/packages/digimax-dot-env-editor)

PHPackages © 2026

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