{"id":20681182,"url":"https://github.com/gemberphp/cache-psr","last_synced_at":"2025-04-22T11:36:30.886Z","repository":{"id":257813840,"uuid":"840359072","full_name":"GemberPHP/cache-psr","owner":"GemberPHP","description":"[Dependency adapter] Gember Event Sourcing Cache adapter based on psr/simple-cache (PSR-16)","archived":false,"fork":false,"pushed_at":"2024-10-12T13:44:39.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T14:41:28.377Z","etag":null,"topics":["cache","cqrs","ddd","domain-driven-design","event-sourcing","gember","php-fig","psr-16","simple-cache"],"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/GemberPHP.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-09T14:23:04.000Z","updated_at":"2024-12-16T20:44:54.000Z","dependencies_parsed_at":"2024-10-07T18:38:46.810Z","dependency_job_id":"a141d65e-581c-4002-8f76-fb580effaf95","html_url":"https://github.com/GemberPHP/cache-psr","commit_stats":null,"previous_names":["gemberphp/cache-psr"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GemberPHP%2Fcache-psr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GemberPHP%2Fcache-psr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GemberPHP%2Fcache-psr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GemberPHP%2Fcache-psr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GemberPHP","download_url":"https://codeload.github.com/GemberPHP/cache-psr/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250233774,"owners_count":21396868,"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":["cache","cqrs","ddd","domain-driven-design","event-sourcing","gember","php-fig","psr-16","simple-cache"],"created_at":"2024-11-16T22:10:01.409Z","updated_at":"2025-04-22T11:36:30.842Z","avatar_url":"https://github.com/GemberPHP.png","language":"PHP","readme":"# 🫚 Gember Cache: PSR SimpleCache (PSR-16)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat)](LICENSE)\n[![PHP Version](https://img.shields.io/badge/php-%5E8.3-8892BF.svg?style=flat)](http://www.php.net)\n\n[Gember Event Sourcing](https://github.com/GemberPHP/event-sourcing) Cache adapter based on [psr/simple-cache](https://github.com/php-fig/simple-cache) (PSR-16).\n\n\u003e All external dependencies in Gember Event Sourcing are organized into separate packages,\n\u003e making it easy to swap out a vendor adapter for another.\n\n## Installation\nInstall with Composer:\n```bash\ncomposer require gember/cache-psr\n```\n\n## Configuration\nBind this adapter to the `Cache` interface in your service definitions.\n\n### Examples\n\n#### Vanilla PHP\n```php\nuse Gember\\CachePsr\\PsrSimpleCache;\n\n$cache = new PsrSimpleCache(\n    new SomeSimpleCacheAdapter(), // An implementation of Psr\\SimpleCache\\CacheInterface of your choice \n);\n```\nYou will need to install a PSR-16 Cache implementation as well. Some available packages:\n- [symfony/cache](https://github.com/symfony/cache)\n- [laminas/laminas-cache](https://github.com/laminas/laminas-cache)\n- [phpfastcache/phpfastcache](https://github.com/PHPSocialNetwork/phpfastcache)\n\n#### Symfony\nIt is recommended to use the [Symfony bundle](https://github.com/GemberPHP/event-sourcing-symfony-bundle) to configure Gember Event Sourcing.\nWith this bundle, the adapter is automatically set as the default for Cache.\n\nIf you're not using the bundle, you can bind it directly to the `Cache` interface.\n\n```yaml\nGember\\EventSourcing\\Util\\Cache\\Cache:\n  class: Gember\\CachePsr\\PsrSimpleCache\\PsrSimpleCache\n  arguments:\n    - '@cache.app' # or any other Symfony Cache definition of your choice\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgemberphp%2Fcache-psr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgemberphp%2Fcache-psr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgemberphp%2Fcache-psr/lists"}