{"id":28099122,"url":"https://github.com/technically-php/null-container","last_synced_at":"2026-02-16T14:07:07.758Z","repository":{"id":54255701,"uuid":"341944010","full_name":"technically-php/null-container","owner":"technically-php","description":"🕳️  Always-empty PSR-11 container implementation. :elephant: PHP8-ready :fire: ","archived":false,"fork":false,"pushed_at":"2025-08-04T12:13:44.000Z","size":24,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-07T01:57:40.278Z","etag":null,"topics":["container","null","null-object","php","psr-11"],"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/technically-php.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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":"2021-02-24T15:25:57.000Z","updated_at":"2025-08-04T12:10:02.000Z","dependencies_parsed_at":"2025-05-13T18:09:36.917Z","dependency_job_id":null,"html_url":"https://github.com/technically-php/null-container","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/technically-php/null-container","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technically-php%2Fnull-container","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technically-php%2Fnull-container/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technically-php%2Fnull-container/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technically-php%2Fnull-container/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/technically-php","download_url":"https://codeload.github.com/technically-php/null-container/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technically-php%2Fnull-container/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29509318,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T09:05:14.864Z","status":"ssl_error","status_checked_at":"2026-02-16T08:55:59.364Z","response_time":115,"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":["container","null","null-object","php","psr-11"],"created_at":"2025-05-13T17:59:30.580Z","updated_at":"2026-02-16T14:07:07.738Z","avatar_url":"https://github.com/technically-php.png","language":"PHP","readme":"# Technically Null Container\n\n`Technically\\NullContainer` is a [PSR-11][1] container implementation that is always empty.\n\nThis is a [NullObject][2] pattern implementation for PSR-11.\n\nThis is useful when you want to provide an optional `ContainerInterface` dependency, \nbut don't want to deal with nullable values.\n\n![Tests Status][status-badge]\n\n\n## Features\n\n- PSR-11\n- PHP 8.0+\n- Semver\n- Tests\n- Changelog\n\n\n## Installation\n\nUse [Composer][3] package manager to add *NullContainer* to your project:\n\n```\ncomposer require technically/null-container\n```\n\n\n## Example\n\n```php\nuse Psr\\Container\\ContainerInterface;\nuse Technically\\NullContainer\\NullContainer;\n\nfinal class MyServiceContainer implements ContainerInterface\n{\n    private ContainerInterface $parent;\n\n    /**\n     * @param ContainerInterface|null $parent\n     */\n    public function __construct(ContainerInterface $parent = null)\n    {\n        $this-\u003eparent = $parent ?? new NullContainer();\n    }\n\n    // ... your code, where you don't need to deal with $parent set to `null`.\n}\n```\n\n\n## Changelog\n\nAll notable changes to this project will be documented in the [CHANGELOG][changelog] file.\n\n\n## Credits\n\n- Implemented by [Ivan Voskoboinyk][4]\n\n\n[1]: https://www.php-fig.org/psr/psr-11/\n[2]: https://en.wikipedia.org/wiki/Null_object_pattern\n[3]: https://getcomposer.org/\n[4]: https://github.com/e1himself?utm_source=web\u0026utm_medium=github\u0026utm_campaign=technically/null-container\n[status-badge]: https://github.com/technically-php/null-container/actions/workflows/test.yml/badge.svg\n[changelog]: ./CHANGELOG.md\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechnically-php%2Fnull-container","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechnically-php%2Fnull-container","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechnically-php%2Fnull-container/lists"}