{"id":24332584,"url":"https://github.com/mqwerty/dependency-injection","last_synced_at":"2026-04-24T14:32:15.532Z","repository":{"id":37050754,"uuid":"277083687","full_name":"mqwerty/dependency-injection","owner":"mqwerty","description":"Simple PSR-11 DI container with autowiring","archived":false,"fork":false,"pushed_at":"2023-01-21T01:01:33.000Z","size":161,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-18T06:47:36.897Z","etag":null,"topics":["dependency-injection","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/mqwerty.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-04T09:59:45.000Z","updated_at":"2021-07-03T19:15:41.000Z","dependencies_parsed_at":"2023-01-25T20:16:40.379Z","dependency_job_id":null,"html_url":"https://github.com/mqwerty/dependency-injection","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/mqwerty/dependency-injection","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mqwerty%2Fdependency-injection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mqwerty%2Fdependency-injection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mqwerty%2Fdependency-injection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mqwerty%2Fdependency-injection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mqwerty","download_url":"https://codeload.github.com/mqwerty/dependency-injection/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mqwerty%2Fdependency-injection/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32116514,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T00:31:26.853Z","status":"ssl_error","status_checked_at":"2026-04-22T00:30:22.894Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["dependency-injection","php","psr-11"],"created_at":"2025-01-18T02:28:55.783Z","updated_at":"2026-04-24T14:32:15.516Z","avatar_url":"https://github.com/mqwerty.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Test](https://github.com/mqwerty/dependency-injection/workflows/Test/badge.svg)](https://github.com/mqwerty/dependency-injection/actions?query=workflow%3ATest)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=mqwerty_dependency-injection\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=mqwerty_dependency-injection)\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=mqwerty_dependency-injection\u0026metric=coverage)](https://sonarcloud.io/dashboard?id=mqwerty_dependency-injection)\n[![Minimum PHP Version](https://img.shields.io/packagist/php-v/mqwerty/dependency-injection)](https://php.net/)\n[![Latest Stable Version](https://img.shields.io/packagist/v/mqwerty/dependency-injection)](https://packagist.org/packages/mqwerty/dependency-injection)\n\nSimple PSR-11 DI container with autowiring\n\n```php\n\u003c?php\n\nuse Monolog\\Handler\\StreamHandler;\nuse Monolog\\Logger;\nuse Psr\\Log\\LoggerInterface;\n\nclass Foo\n{\n    public function __construct(LoggerInterface $logger)\n    {\n    }\n}\n\n$config = [\n    'logLevel' =\u003e 'info',\n    'shared' =\u003e [LoggerInterface::class],\n    LoggerInterface::class =\u003e fn($c) =\u003e (new Logger('log'))-\u003epushHandler(\n        new StreamHandler(STDERR, $c-\u003eget('logLevel'))\n    ),\n];\n\n$container = new Mqwerty\\DI\\Container($config);\n$container-\u003eget(Foo::class);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmqwerty%2Fdependency-injection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmqwerty%2Fdependency-injection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmqwerty%2Fdependency-injection/lists"}