{"id":18358758,"url":"https://github.com/phmlabs/init","last_synced_at":"2025-04-06T13:31:37.774Z","repository":{"id":32755897,"uuid":"36346982","full_name":"phmLabs/Init","owner":"phmLabs","description":"Lightweight dependency injection framework","archived":false,"fork":false,"pushed_at":"2020-12-30T09:36:57.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T00:44:15.020Z","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/phmLabs.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}},"created_at":"2015-05-27T06:10:32.000Z","updated_at":"2020-12-30T09:36:59.000Z","dependencies_parsed_at":"2022-09-12T14:04:13.658Z","dependency_job_id":null,"html_url":"https://github.com/phmLabs/Init","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phmLabs%2FInit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phmLabs%2FInit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phmLabs%2FInit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phmLabs%2FInit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phmLabs","download_url":"https://codeload.github.com/phmLabs/Init/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247488536,"owners_count":20946957,"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-05T22:19:21.368Z","updated_at":"2025-04-06T13:31:37.489Z","avatar_url":"https://github.com/phmLabs.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# phmLabs::Init\n\nThis library is a very lightweight dependency injection container. The special thing about `Init` is that it uses names parameters and fits perfectly with yaml files this way.\n\n````php\nclass MyClass {\n  public function __construct($firstParam, $secondParam = null) {\n    // ...\n  }\n}\n\n$options = [\n    'class' =\u003e 'MyClass',\n    'call' =\u003e [\n      '__construct' =\u003e ['secondParam' =\u003e 'foo', 'firstParam' =\u003e 'bar']\n    ]\n]\n\n$myClass = Init::initialize($options);\n````","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphmlabs%2Finit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphmlabs%2Finit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphmlabs%2Finit/lists"}