PHPackages                             bluzphp/container - 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. bluzphp/container

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

bluzphp/container
=================

Container package

1.2.0(1y ago)022MITPHPPHP &gt;=8.2

Since Jul 17Pushed 1y ago2 watchersCompare

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

READMEChangelog (4)Dependencies (1)Versions (6)Used By (0)

Container Component
===================

[](#container-component)

Achievements
------------

[](#achievements)

[![PHP >= 8.2+](https://camo.githubusercontent.com/86ae1b2f3a764e43b10f97ff1847f00d41097690f6accd52028973a8be0ea36e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f626c757a7068702f636f6e7461696e65722e7376673f7374796c653d666c6174)](https://php.net/)

[![Latest Stable Version](https://camo.githubusercontent.com/04518b48c2fda2f16b1c47dc68c81cf38f9940c196c0df8fe3d9fcb36069830d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f626c757a7068702f636f6e7461696e65722e7376673f6c6162656c3d76657273696f6e267374796c653d666c6174)](https://packagist.org/packages/bluzphp/container)

[![Build Status](https://camo.githubusercontent.com/1ad02a54a77fb7f9b8c59bdc6699ecfd429ed07c937865bb1616c18ffbe7d748/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f6275696c642f672f626c757a7068702f636f6e7461696e6572)](https://scrutinizer-ci.com/g/bluzphp/container/build-status/master)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/8130152b0905c91e98ede369a2e5d7b7d7c55d6e7d1f4e9228b0bee8b9f52137/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f626c757a7068702f636f6e7461696e65722e7376673f7374796c653d666c6174)](https://scrutinizer-ci.com/g/bluzphp/container/)

[![Total Downloads](https://camo.githubusercontent.com/429cd2c30dfe7d73a55bb5a9eac254e99dde45befa9d78ab419a2c5d823b3122/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f626c757a7068702f636f6e7461696e65722e7376673f7374796c653d666c6174)](https://packagist.org/packages/bluzphp/container)

[![License](https://camo.githubusercontent.com/416a9de5d43ff4172a03b3234ea33fa2661b74358a1e8acf9f738843dd242565/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f626c757a7068702f636f6e7461696e65722e7376673f7374796c653d666c6174)](https://packagist.org/packages/bluzphp/container)

Usage
-----

[](#usage)

Example of the Registry class:

```
namespace Bluz\Registry;

use Bluz\Container;

class Registry {
    use Container\Container;
    use Container\JsonSerialize;
    use Container\RegularAccess;
}

```

### Methods

[](#methods)

Public methods of the `Container\Container`:

- `setFromArray(array $data)`
- `toArray()`
- `resetArray()`
-

Protected methods of the `Container\Container`:

- `doSetContainer(string $key, mixed $value)` - set the `value` by the `key`
- `doGetContainer(string $key)` – if the container has the `key`, then it returns the `value`, otherwise `null`
- `doContainsContainer(string $key)` - check the container for the `key`
- `doDeleteContainer(string $key)` - remove the `value` by the `key`

Methods of the `Container\ArrayAccess` (implementation of the interface `ArrayAccess`):

- `offsetSet($offset, $value)`
- `offsetExists($offset)`
- `offsetUnset($offset)`
- `offsetGet($offset)`

Methods of the `Container\MagicAccess`:

- `__set($key, $value)`
- `__get($key)`
- `__isset($key)`
- `__unset($key)`

Methods of the `Container\RegularAccess`:

- `set($key, $value)`
- `get($key)`
- `has($key)`
- `remove($key)`

Methods of the `Container\JsonSerialize`

- `jsonSerialize()` - implementation of the interface `JsonSerializable`

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

Total

4

Last Release

615d ago

PHP version history (3 changes)1.0.0PHP &gt;=8.0

1.1.0PHP &gt;=8.1

1.2.0PHP &gt;=8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/142057?v=4)[Anton Shevchuk](/maintainers/AntonShevchuk)[@AntonShevchuk](https://github.com/AntonShevchuk)

---

Top Contributors

[![AntonShevchuk](https://avatars.githubusercontent.com/u/142057?v=4)](https://github.com/AntonShevchuk "AntonShevchuk (14 commits)")

---

Tags

bluz-packagephpphp-library

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bluzphp-container/health.svg)

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

###  Alternatives

[freshbitsweb/laratables

Ajax support of DataTables for Laravel

4871.1M3](/packages/freshbitsweb-laratables)[ahand/mobileesp

Since 2008, MobileESP provides web site developers an easy-to-use and lightweight API for detecting whether visitors are using a mobile device, and if so, what kind. The APIs provide simple boolean results ('true' or 'false') for identifying individual device categories (such as iPhone, BlackBerry, Android, and Windows Mobile), device capabilities (e.g., J2ME), and broad classes of devices, such as 'iPhone Tier' (iPhone/Android/Tizen) or 'Tablet Tier.' APIs are available in PHP, JavaScript, Java, C#, Ruby Python, and more.

174491.4k7](/packages/ahand-mobileesp)

PHPackages © 2026

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