{"id":19716667,"url":"https://github.com/rwillians/simple-di","last_synced_at":"2025-02-27T16:56:52.174Z","repository":{"id":62538600,"uuid":"60474739","full_name":"rwillians/simple-di","owner":"rwillians","description":"Simple PHP7 DI alternative to Pimple","archived":false,"fork":false,"pushed_at":"2017-04-13T04:58:52.000Z","size":28,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-10T15:24:42.890Z","etag":null,"topics":[],"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/rwillians.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":"2016-06-05T18:32:33.000Z","updated_at":"2023-03-05T00:47:03.000Z","dependencies_parsed_at":"2022-11-02T16:15:30.846Z","dependency_job_id":null,"html_url":"https://github.com/rwillians/simple-di","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwillians%2Fsimple-di","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwillians%2Fsimple-di/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwillians%2Fsimple-di/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwillians%2Fsimple-di/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rwillians","download_url":"https://codeload.github.com/rwillians/simple-di/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241037177,"owners_count":19898294,"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":[],"created_at":"2024-11-11T22:43:01.316Z","updated_at":"2025-02-27T16:56:52.153Z","avatar_url":"https://github.com/rwillians.png","language":"PHP","readme":"# SimpleDI\n\nSimple PHP7 DI container.\n\n## Usage\n\n```php\nuse Rwillians\\SimpleDI\\Container;\nuse Rwillians\\SimpleDI\\Contracts\\ServiceLocatorInterface;\n\n$container = new Container([\n    'foo' =\u003e 'bar',\n    'bar' =\u003e 'baz',\n    'baz' =\u003e 10,\n]);\n\n$container-\u003eset('awsome.number', function (ServiceLocatorInterface $serviceLocator) {\n    return $serviceLocator-\u003eget('baz') + 5;\n});\n\necho $container-\u003eresolve('awsome.number'); // Outputs 15 (10 + 5)\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frwillians%2Fsimple-di","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frwillians%2Fsimple-di","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frwillians%2Fsimple-di/lists"}