{"id":17087380,"url":"https://github.com/dakujem/sleeve","last_synced_at":"2026-02-12T22:01:50.416Z","repository":{"id":56961452,"uuid":"195298548","full_name":"dakujem/sleeve","owner":"dakujem","description":"A trivial extension of Pimple Container with PSR-11 compatibility and convenience methods.","archived":false,"fork":false,"pushed_at":"2025-02-14T10:05:22.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"trunk","last_synced_at":"2025-09-25T22:41:57.253Z","etag":null,"topics":["dependency-injection-container","pimple","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":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dakujem.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-04T20:36:56.000Z","updated_at":"2025-02-14T10:02:51.000Z","dependencies_parsed_at":"2025-02-14T11:20:19.698Z","dependency_job_id":"608e8233-e35e-47be-b445-29a784e926d0","html_url":"https://github.com/dakujem/sleeve","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/dakujem/sleeve","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dakujem%2Fsleeve","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dakujem%2Fsleeve/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dakujem%2Fsleeve/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dakujem%2Fsleeve/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dakujem","download_url":"https://codeload.github.com/dakujem/sleeve/tar.gz/refs/heads/trunk","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dakujem%2Fsleeve/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29382864,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T20:34:40.886Z","status":"ssl_error","status_checked_at":"2026-02-12T20:23:00.490Z","response_time":55,"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-container","pimple","psr-11"],"created_at":"2024-10-14T13:32:53.275Z","updated_at":"2026-02-12T22:01:50.394Z","avatar_url":"https://github.com/dakujem.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Sleeve\n\n![PHP from Packagist](https://img.shields.io/packagist/php-v/dakujem/sleeve)\n[![Coverage Status](https://coveralls.io/repos/github/dakujem/sleeve/badge.svg?branch=trunk)](https://coveralls.io/github/dakujem/sleeve?branch=trunk)\n![Nature Friendly](https://img.shields.io/badge/nature%20%F0%9F%8C%B3-friendly%20%F0%9F%92%9A-green)\n\nA lightweight PSR-11 service container.\\\nA trivial extension of [Symfony Pimple container](https://pimple.symfony.com).\n\n\u003e 💿 `composer require dakujem/sleeve`\n\nSleeve...\n- is dead simple\n- is PSR-11 compatible\n- extends [Pimple](https://github.com/silexphp/Pimple) ([pimple/pimple](https://packagist.org/packages/pimple/pimple)), a simple Dependency Injection Container by Symfony\n- only adds a couple of convenience methods (accessors) on top of the original\n- works well with [Slim v4](https://github.com/slimphp/Slim)\n  and other micro frameworks and stacks\n\n\n## Usage\n\nAdded on top of Pimple:\n- methods `get`, `set`, `has`, `unset`\n- magic accessors `__get`, `__set`, `__isset`, `__unset`\n\nExamples:\n```php\n$dic = new Dakujem\\Sleeve;\n\n// the following are equivalent\n$service = $dic-\u003eget('service');    // getter\n$service = $dic['service'];         // array accessor\n$service = $dic-\u003eservice;           // magic accessor\n\n// it works for setting services as well\n$factory = function(Container $dic) {\n               return new Acme\\MyService($dic-\u003eget('dependency'));\n           };\n$dic-\u003eset('service', $factory);     // setter\n$dic['service'] = $factory;         // array accessor\n$dic-\u003eservice = $factory;           // magic accessor\n```\n\nSleeve supports (through Pimple):\n- singleton services (global)\n- factory services (factories)\n- parameters (with protection too)\n- extensions (service providers)\n\n📖 For full documentation, read the [Pimple container usage documentation](https://github.com/silexphp/Pimple). It's quite short, in fact.\n\n\n## Testing\n\n```\ncomposer test\n```\n\nTested for PHP versions 7.1 onwards.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdakujem%2Fsleeve","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdakujem%2Fsleeve","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdakujem%2Fsleeve/lists"}