{"id":18702560,"url":"https://github.com/mayocream/simple-di","last_synced_at":"2025-11-09T01:30:35.235Z","repository":{"id":103330419,"uuid":"119341232","full_name":"mayocream/Simple-DI","owner":"mayocream","description":"A Simple PHP DI (Service Container).","archived":false,"fork":false,"pushed_at":"2018-01-29T06:34:13.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-15T11:37:29.733Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mayocream.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2018-01-29T06:26:41.000Z","updated_at":"2018-01-29T06:35:28.000Z","dependencies_parsed_at":"2023-05-01T11:03:07.990Z","dependency_job_id":null,"html_url":"https://github.com/mayocream/Simple-DI","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mayocream%2FSimple-DI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mayocream%2FSimple-DI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mayocream%2FSimple-DI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mayocream%2FSimple-DI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mayocream","download_url":"https://codeload.github.com/mayocream/Simple-DI/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239565645,"owners_count":19660154,"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-07T11:46:17.660Z","updated_at":"2025-11-09T01:30:35.189Z","avatar_url":"https://github.com/mayocream.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple-DI\n\n## Usage\n\n```php\n\ninclude \"DI.php\";\n\n$app = Di::instance();\n\n共享 Share\n$app-\u003eset('db', function() {\n\treturn new Medoo\\Medoo;\n});\n\n单例 Singleton\n$app-\u003enew('md', function() {\n\t// ...\n});\n\n获取服务\n$app-\u003eget('db');\n$app-\u003eget('md');\n\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmayocream%2Fsimple-di","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmayocream%2Fsimple-di","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmayocream%2Fsimple-di/lists"}