{"id":20911582,"url":"https://github.com/bluzphp/container","last_synced_at":"2026-02-14T05:31:27.561Z","repository":{"id":57711848,"uuid":"514814474","full_name":"bluzphp/container","owner":"bluzphp","description":"Container Package","archived":false,"fork":false,"pushed_at":"2024-09-10T11:39:42.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-19T00:03:27.774Z","etag":null,"topics":["bluz-package","php","php-library"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bluzphp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-07-17T10:40:23.000Z","updated_at":"2024-09-10T11:39:18.000Z","dependencies_parsed_at":"2024-09-10T12:04:05.525Z","dependency_job_id":"29fe452d-f93a-409b-b04b-4de62abc4da3","html_url":"https://github.com/bluzphp/container","commit_stats":{"total_commits":5,"total_committers":3,"mean_commits":"1.6666666666666667","dds":0.4,"last_synced_commit":"b32dc6ba0b3082eb3a4485018a3835753d3284e3"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/bluzphp/container","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluzphp%2Fcontainer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluzphp%2Fcontainer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluzphp%2Fcontainer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluzphp%2Fcontainer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bluzphp","download_url":"https://codeload.github.com/bluzphp/container/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluzphp%2Fcontainer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29438388,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T05:24:35.651Z","status":"ssl_error","status_checked_at":"2026-02-14T05:24:34.830Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bluz-package","php","php-library"],"created_at":"2024-11-18T14:22:37.639Z","updated_at":"2026-02-14T05:31:27.523Z","avatar_url":"https://github.com/bluzphp.png","language":"PHP","readme":"# Container Component\n## Achievements\n\n[![PHP \u003e= 8.2+](https://img.shields.io/packagist/php-v/bluzphp/container.svg?style=flat)](https://php.net/)\n\n[![Latest Stable Version](https://img.shields.io/packagist/v/bluzphp/container.svg?label=version\u0026style=flat)](https://packagist.org/packages/bluzphp/container)\n\n[![Build Status](https://img.shields.io/scrutinizer/build/g/bluzphp/container)](https://scrutinizer-ci.com/g/bluzphp/container/build-status/master)\n\n[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/bluzphp/container.svg?style=flat)](https://scrutinizer-ci.com/g/bluzphp/container/)\n\n[![Total Downloads](https://img.shields.io/packagist/dt/bluzphp/container.svg?style=flat)](https://packagist.org/packages/bluzphp/container)\n\n[![License](https://img.shields.io/packagist/l/bluzphp/container.svg?style=flat)](https://packagist.org/packages/bluzphp/container)\n\n## Usage\n\nExample of the Registry class:\n\n```\nnamespace Bluz\\Registry;\n\nuse Bluz\\Container;\n\nclass Registry {\n    use Container\\Container;\n    use Container\\JsonSerialize;\n    use Container\\RegularAccess;\n}\n```\n\n### Methods\n\nPublic methods of the `Container\\Container`:\n\n* `setFromArray(array $data)`\n* `toArray()`\n* `resetArray()`\n* \nProtected methods of the `Container\\Container`:\n\n* `doSetContainer(string $key, mixed $value)` - set the `value` by the `key`\n* `doGetContainer(string $key)` – if the container has the `key`, then it returns the `value`, otherwise `null`\n* `doContainsContainer(string $key)` - check the container for the `key`\n* `doDeleteContainer(string $key)` - remove the `value` by the `key`\n\nMethods of the `Container\\ArrayAccess` (implementation of the interface `ArrayAccess`):\n* `offsetSet($offset, $value)`\n* `offsetExists($offset)`\n* `offsetUnset($offset)`\n* `offsetGet($offset)`\n\nMethods of the  `Container\\MagicAccess`:\n* `__set($key, $value)`\n* `__get($key)`\n* `__isset($key)`\n* `__unset($key)`\n\nMethods of the `Container\\RegularAccess`:\n* `set($key, $value)`\n* `get($key)`\n* `has($key)`\n* `remove($key)`\n\nMethods of the `Container\\JsonSerialize`\n* `jsonSerialize()` - implementation of the interface `JsonSerializable`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluzphp%2Fcontainer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbluzphp%2Fcontainer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluzphp%2Fcontainer/lists"}