{"id":13622616,"url":"https://github.com/thephpleague/container","last_synced_at":"2025-06-18T08:08:27.680Z","repository":{"id":25693983,"uuid":"29130207","full_name":"thephpleague/container","owner":"thephpleague","description":"Small but powerful dependency injection container","archived":false,"fork":false,"pushed_at":"2025-06-12T15:58:09.000Z","size":1567,"stargazers_count":854,"open_issues_count":1,"forks_count":103,"subscribers_count":21,"default_branch":"5.x","last_synced_at":"2025-06-12T16:38:59.140Z","etag":null,"topics":["dependency-injection","php"],"latest_commit_sha":null,"homepage":"http://container.thephpleague.com","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/thephpleague.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","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},"funding":{"github":["philipobenito"]}},"created_at":"2015-01-12T10:22:38.000Z","updated_at":"2025-06-12T15:58:12.000Z","dependencies_parsed_at":"2024-03-13T11:26:16.647Z","dependency_job_id":"38b72e9f-05f0-4b72-a44f-4cee14b53a8a","html_url":"https://github.com/thephpleague/container","commit_stats":{"total_commits":298,"total_committers":38,"mean_commits":7.842105263157895,"dds":0.6275167785234899,"last_synced_commit":"388e992884ab75632d93dbaf4d29ec024d64b964"},"previous_names":[],"tags_count":45,"template":false,"template_full_name":null,"purl":"pkg:github/thephpleague/container","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thephpleague%2Fcontainer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thephpleague%2Fcontainer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thephpleague%2Fcontainer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thephpleague%2Fcontainer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thephpleague","download_url":"https://codeload.github.com/thephpleague/container/tar.gz/refs/heads/5.x","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thephpleague%2Fcontainer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260055454,"owners_count":22952329,"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":["dependency-injection","php"],"created_at":"2024-08-01T21:01:21.683Z","updated_at":"2025-06-18T08:08:22.665Z","avatar_url":"https://github.com/thephpleague.png","language":"PHP","readme":"# Container (Dependency Injection)\n\n[![Author](https://img.shields.io/badge/author-Phil%20Bennett-blue?style=flat-square)](https://github.com/philipobenito)\n[![Latest Version](https://img.shields.io/github/release/thephpleague/container.svg?style=flat-square)](https://github.com/thephpleague/container/releases)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)\n[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/thephpleague/container/test.yml?style=flat-square)](https://github.com/thephpleague/container/actions/workflows/test.yml)\n[![Coverage Status](https://img.shields.io/scrutinizer/coverage/g/thephpleague/container.svg?style=flat-square)](https://scrutinizer-ci.com/g/thephpleague/container/code-structure)\n[![Quality Score](https://img.shields.io/scrutinizer/g/thephpleague/container.svg?style=flat-square)](https://scrutinizer-ci.com/g/thephpleague/container)\n[![Total Downloads](https://img.shields.io/packagist/dt/league/container.svg?style=flat-square)](https://packagist.org/packages/league/container)\n\nThis package is compliant with [PSR-1], [PSR-2], [PSR-12], [PSR-4], [PSR-11] and [PSR-12]. If you notice compliance oversights, please send a patch via pull request.\n\n[PSR-1]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md\n[PSR-2]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md\n[PSR-12]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-12-extended-coding-style-guide.md\n[PSR-4]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md\n[PSR-11]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-11-container.md\n[PSR-12]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-12-extended-coding-style-guide.md\n\n## Install\n\nVia Composer\n\n``` bash\ncomposer require league/container\n```\n\n## Requirements\n\nThe following versions of PHP are supported by this version.\n\n* PHP 8.1\n* PHP 8.2\n* PHP 8.3\n* PHP 8.4\n\n## Documentation\n\nContainer has [full documentation](http://container.thephpleague.com), powered by [Jekyll](http://jekyllrb.com/).\n\nContribute to this documentation in the [docs/](https://github.com/thephpleague/container/tree/master/docs) sub-directory.\n\n## Testing\n\nTesting includes PHPUnit and PHPStan (Level 7).\n``` bash\n$ composer test\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](https://github.com/thephpleague/container/blob/master/CONTRIBUTING.md) for details.\n\n## Security\n\nIf you discover any security related issues, please email philipobenito@gmail.com instead of using the issue tracker.\n\n## Credits\n\n- [Phil Bennett](https://github.com/philipobenito)\n- [All Contributors](https://github.com/thephpleague/container/contributors)\n- `Orno\\Di` contributors\n\n## License\n\nThe MIT License (MIT). Please see [License File](https://github.com/thephpleague/container/blob/master/LICENSE.md) for more information.\n","funding_links":["https://github.com/sponsors/philipobenito"],"categories":["依赖注入 Dependency Injection","Table of Contents","PHP","目录","依赖注入( Dependency Injection )"],"sub_categories":["Dependency Injection","依赖注入 Dependency Injection"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthephpleague%2Fcontainer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthephpleague%2Fcontainer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthephpleague%2Fcontainer/lists"}