{"id":20388590,"url":"https://github.com/efureev/laravel-services","last_synced_at":"2026-04-22T05:33:51.797Z","repository":{"id":56975570,"uuid":"155609571","full_name":"efureev/laravel-services","owner":"efureev","description":null,"archived":false,"fork":false,"pushed_at":"2018-10-31T19:41:02.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T12:42:27.217Z","etag":null,"topics":["di","laravel","services"],"latest_commit_sha":null,"homepage":null,"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/efureev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-31T19:04:27.000Z","updated_at":"2018-10-31T19:41:03.000Z","dependencies_parsed_at":"2022-08-21T11:50:54.035Z","dependency_job_id":null,"html_url":"https://github.com/efureev/laravel-services","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/efureev/laravel-services","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efureev%2Flaravel-services","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efureev%2Flaravel-services/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efureev%2Flaravel-services/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efureev%2Flaravel-services/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/efureev","download_url":"https://codeload.github.com/efureev/laravel-services/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efureev%2Flaravel-services/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32122748,"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":"online","status_checked_at":"2026-04-22T02:00:05.693Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["di","laravel","services"],"created_at":"2024-11-15T03:11:44.821Z","updated_at":"2026-04-22T05:33:51.782Z","avatar_url":"https://github.com/efureev.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Introduction\n\nServices is collection of your inner services.\n\n**ONLY PHP 7.1 and upper**\n\n\n## Install\n```\ncomposer require efureev/services\n```\n\nInsert in `providers` sections into `config/app.php`:\n```\n\\Fureev\\Services\\ServiceProvider::class,\n```\n\n## Config (config/di.php)\nAll properties at your Provider class has defined into drivers section for concrete driver.\n\n```php\n \u003c?php\n \n return [\n     //'name'    =\u003e 'testing', // Name component in DI. Default = 'services' \n     'drivers' =\u003e [\n         'user'  =\u003e [\n             // Allow load driver into app DI. Expl: app('services.user')\n             'defer' =\u003e false\n         ],\n         'test'  =\u003e [\n             // if it's not defined - use class CustomProvider  \n             'provider' =\u003e \\App\\Services\\Test\\Provider::class,\n             'count'    =\u003e 1 // local property into class \\App\\Services\\Test\\Provider\n         ],\n         'defer' =\u003e [\n         ],\n     ]\n ];\n```\n\nYou may redefine ServiceManager and use build-in method:\n\n```php\n\u003c?php\n\nnamespace App\\Services;\n\nuse App\\Services\\User\\Provider as UserProvider;\n\nclass ServiceManager extends \\Fureev\\Services\\ServiceManager\n{\n    protected function createUserDriver(?array $driverConfig = [])\n    {\n        return $this-\u003ebuildProvider(UserProvider::class, $driverConfig);\n    }\n}\n``` \n\nand rebind `services` into DI. Example, in `\\App\\Providers\\AppServiceProvider` in register method:\n```php\n$this-\u003eapp-\u003einstance(app('config')-\u003eget(ServiceManager::configSection() . '.name'), new ServiceManager($this-\u003eapp));\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fefureev%2Flaravel-services","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fefureev%2Flaravel-services","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fefureev%2Flaravel-services/lists"}