{"id":15167195,"url":"https://github.com/biurad/php-dependency-injection","last_synced_at":"2025-10-01T00:31:03.372Z","repository":{"id":53939968,"uuid":"314966730","full_name":"biurad/php-dependency-injection","owner":"biurad","description":"[Unmaintained]  A library that allows you to standardize and centralize the way objects are constructed in your application.","archived":true,"fork":false,"pushed_at":"2021-03-11T10:41:58.000Z","size":76,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-09-30T14:00:02.542Z","etag":null,"topics":["biurad","container","dependency-injection","nette","nette-di","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/biurad.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"patreon":"biurad","custom":["https://biurad.com/sponsor"]}},"created_at":"2020-11-22T05:28:57.000Z","updated_at":"2023-01-28T03:08:22.000Z","dependencies_parsed_at":"2022-08-13T05:10:24.723Z","dependency_job_id":null,"html_url":"https://github.com/biurad/php-dependency-injection","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":"biurad/php-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biurad%2Fphp-dependency-injection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biurad%2Fphp-dependency-injection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biurad%2Fphp-dependency-injection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biurad%2Fphp-dependency-injection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/biurad","download_url":"https://codeload.github.com/biurad/php-dependency-injection/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234796856,"owners_count":18888156,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["biurad","container","dependency-injection","nette","nette-di","php","psr-11"],"created_at":"2024-09-27T05:41:24.763Z","updated_at":"2025-10-01T00:31:03.057Z","avatar_url":"https://github.com/biurad.png","language":"PHP","funding_links":["https://patreon.com/biurad","https://biurad.com/sponsor","https://www.patreon.com/biurad"],"categories":[],"sub_categories":[],"readme":"# The Biurad PHP Dependency Injection\n\n[![Latest Version](https://img.shields.io/packagist/v/biurad/dependency-injection.svg?style=flat-square)](https://packagist.org/packages/biurad/dependency-injection)\n[![Software License](https://img.shields.io/badge/License-BSD--3-brightgreen.svg?style=flat-square)](LICENSE)\n[![Workflow Status](https://img.shields.io/github/workflow/status/biurad/php-dependency-injection/Tests?style=flat-square)](https://github.com/biurad/php-dependency-injection/actions?query=workflow%3ATests)\n[![Code Maintainability](https://img.shields.io/codeclimate/maintainability/biurad/php-dependency-injection?style=flat-square)](https://codeclimate.com/github/biurad/php-dependency-injection)\n[![Coverage Status](https://img.shields.io/codecov/c/github/biurad/php-dependency-injection?style=flat-square)](https://codecov.io/gh/biurad/php-dependency-injection)\n[![Quality Score](https://img.shields.io/scrutinizer/g/biurad/php-dependency-injection.svg?style=flat-square)](https://scrutinizer-ci.com/g/biurad/php-dependency-injection)\n[![Sponsor development of this project](https://img.shields.io/badge/sponsor%20this%20package-%E2%9D%A4-ff69b4.svg?style=flat-square)](https://biurad.com/sponsor)\n\n**biurad/php-dependency-injection** is a powerful tool for managing class dependencies and performing dependency injection for [PHP] 7.2+ created by [Divine Niiquaye][@divineniiquaye] based on The [Nette DI][nette-di]. This library provides a fancy phrase that essentially means this: class dependencies are \"injected\" into the class via the constructor or, in some cases, \"setter\" methods.\n\n## 📦 Installation \u0026 Basic Usage\n\nThis project requires [PHP] 7.2 or higher. The recommended way to install, is via [Composer]. Simply run:\n\n```bash\n$ composer require biurad/dependency-injection\n```\n\n### How To Use\n\nA deep understanding of the Dependency Injection is essential to building a powerful, large application, as well as for contributing to this library core itself. This README is focused on the new features added to [Nette Di][nette-di].\n\nThis dependency is an extended version of [Nette Di][nette-di] which has been simplified for developer's convenient. With this bridge, more features have been implemented to have a fast and flexible Dependency Injection Container.\n\n\u003e Container implementation is fully compatible with [PSR-11 Container](https://github.com/php-fig/container).\n\n### PSR-11 Container\n\nYou can always access container directly in your code by requesting `Psr\\Container\\ContainerInterface`:\n\n```php\nuse Psr\\Container\\ContainerInterface;\n\nclass HomeContoller\n{\n    public function index(ContainerInterface $container)\n    {\n        var_dump($container-\u003eget(App\\Kernel::class));\n    }\n}\n```\n\n## 📓 Documentation\n\nFor in-depth documentation before using this library. Full documentation on advanced usage, configuration, and customization can be found at [docs.biurad.com][docs].\n\n## ⏫ Upgrading\n\nInformation on how to upgrade to newer versions of this library can be found in the [UPGRADE].\n\n## 🏷️ Changelog\n\n[SemVer](http://semver.org/) is followed closely. Minor and patch releases should not introduce breaking changes to the codebase; See [CHANGELOG] for more information on what has changed recently.\n\nAny classes or methods marked `@internal` are not intended for use outside of this library and are subject to breaking changes at any time, so please avoid using them.\n\n## 🛠️ Maintenance \u0026 Support\n\nWhen a new **major** version is released (`1.0`, `2.0`, etc), the previous one (`0.19.x`) will receive bug fixes for _at least_ 3 months and security updates for 6 months after that new release comes out.\n\n(This policy may change in the future and exceptions may be made on a case-by-case basis.)\n\n**Professional support, including notification of new releases and security updates, is available at [Biurad Commits][commit].**\n\n## 👷‍♀️ Contributing\n\nTo report a security vulnerability, please use the [Biurad Security](https://security.biurad.com). We will coordinate the fix and eventually commit the solution in this project.\n\nContributions to this library are **welcome**, especially ones that:\n\n- Improve usability or flexibility without compromising our ability to adhere to ???.\n- Optimize performance\n- Fix issues with adhering to ???.\n- ???.\n\nPlease see [CONTRIBUTING] for additional details.\n\n## 🧪 Testing\n\n```bash\n$ composer test\n```\n\nThis will tests biurad/php-dependency-injection will run against PHP 7.2 version or higher.\n\n## 👥 Credits \u0026 Acknowledgements\n\n- [Divine Niiquaye Ibok][@divineniiquaye]\n- [All Contributors][]\n\n## 🙌 Sponsors\n\nAre you interested in sponsoring development of this project? Reach out and support us on [Patreon](https://www.patreon.com/biurad) or see \u003chttps://biurad.com/sponsor\u003e for a list of ways to contribute.\n\n## 📄 License\n\n**biurad/php-dependency-injection** is licensed under the BSD-3 license. See the [`LICENSE`](LICENSE) file for more details.\n\n## 🏛️ Governance\n\nThis project is primarily maintained by [Divine Niiquaye Ibok][@divineniiquaye]. Members of the [Biurad Lap][] Leadership Team may occasionally assist with some of these duties.\n\n## 🗺️ Who Uses It?\n\nYou're free to use this package, but if it makes it to your production environment we highly appreciate you sending us an [email] or [message] mentioning this library. We publish all received request's at \u003chttps://patreons.biurad.com\u003e.\n\nCheck out the other cool things people are doing with `biurad/php-dependency-injection`: \u003chttps://packagist.org/packages/biurad/dependency-injection/dependents\u003e\n\n[PHP]: https://php.net\n[Composer]: https://getcomposer.org\n[@divineniiquaye]: https://github.com/divineniiquaye\n[docs]: https://docs.biurad.com/php-dependency-injection\n[commit]: https://commits.biurad.com/php-dependency-injection.git\n[UPGRADE]: UPGRADE-1.x.md\n[CHANGELOG]: CHANGELOG-0.x.md\n[CONTRIBUTING]: ./.github/CONTRIBUTING.md\n[All Contributors]: https://github.com/biurad/php-dependency-injection/contributors\n[Biurad Lap]: https://team.biurad.com\n[email]: support@biurad.com\n[message]: https://projects.biurad.com/message\n[nette-di]: https://github.com/nette/di\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiurad%2Fphp-dependency-injection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbiurad%2Fphp-dependency-injection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiurad%2Fphp-dependency-injection/lists"}