{"id":18834323,"url":"https://github.com/chubbyphp/chubbyphp-laminas-config","last_synced_at":"2025-07-16T18:06:59.004Z","repository":{"id":56952667,"uuid":"283220385","full_name":"chubbyphp/chubbyphp-laminas-config","owner":"chubbyphp","description":"Chubbyphp container adapter using laminas service manager configuration.","archived":false,"fork":false,"pushed_at":"2025-03-12T14:09:24.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T05:12:42.541Z","etag":null,"topics":["chubbyphp","chubbyphp-container","laminas","mezzio","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chubbyphp.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,"zenodo":null}},"created_at":"2020-07-28T13:27:54.000Z","updated_at":"2025-03-12T14:09:28.000Z","dependencies_parsed_at":"2025-01-21T06:22:38.021Z","dependency_job_id":"b368d3b6-f45b-410f-bd96-a2a01e9e3ccc","html_url":"https://github.com/chubbyphp/chubbyphp-laminas-config","commit_stats":{"total_commits":33,"total_committers":3,"mean_commits":11.0,"dds":0.5151515151515151,"last_synced_commit":"0c8b1a7fd99818ac8c2dff9097935933c8c1ca1a"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/chubbyphp/chubbyphp-laminas-config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chubbyphp%2Fchubbyphp-laminas-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chubbyphp%2Fchubbyphp-laminas-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chubbyphp%2Fchubbyphp-laminas-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chubbyphp%2Fchubbyphp-laminas-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chubbyphp","download_url":"https://codeload.github.com/chubbyphp/chubbyphp-laminas-config/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chubbyphp%2Fchubbyphp-laminas-config/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265529093,"owners_count":23782822,"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":["chubbyphp","chubbyphp-container","laminas","mezzio","psr-11"],"created_at":"2024-11-08T02:11:57.192Z","updated_at":"2025-07-16T18:06:58.989Z","avatar_url":"https://github.com/chubbyphp.png","language":"PHP","readme":"# chubbyphp-laminas-config\n\n[![CI](https://github.com/chubbyphp/chubbyphp-laminas-config/actions/workflows/ci.yml/badge.svg)](https://github.com/chubbyphp/chubbyphp-laminas-config/actions/workflows/ci.yml)\n[![Coverage Status](https://coveralls.io/repos/github/chubbyphp/chubbyphp-laminas-config/badge.svg?branch=master)](https://coveralls.io/github/chubbyphp/chubbyphp-laminas-config?branch=master)\n[![Mutation testing badge](https://img.shields.io/endpoint?style=flat\u0026url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fchubbyphp%2Fchubbyphp-laminas-config%2Fmaster)](https://dashboard.stryker-mutator.io/reports/github.com/chubbyphp/chubbyphp-laminas-config/master)\n[![Latest Stable Version](https://poser.pugx.org/chubbyphp/chubbyphp-laminas-config/v)](https://packagist.org/packages/chubbyphp/chubbyphp-laminas-config)\n[![Total Downloads](https://poser.pugx.org/chubbyphp/chubbyphp-laminas-config/downloads)](https://packagist.org/packages/chubbyphp/chubbyphp-laminas-config)\n[![Monthly Downloads](https://poser.pugx.org/chubbyphp/chubbyphp-laminas-config/d/monthly)](https://packagist.org/packages/chubbyphp/chubbyphp-laminas-config)\n\n[![bugs](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-laminas-config\u0026metric=bugs)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-laminas-config)\n[![code_smells](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-laminas-config\u0026metric=code_smells)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-laminas-config)\n[![coverage](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-laminas-config\u0026metric=coverage)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-laminas-config)\n[![duplicated_lines_density](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-laminas-config\u0026metric=duplicated_lines_density)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-laminas-config)\n[![ncloc](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-laminas-config\u0026metric=ncloc)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-laminas-config)\n[![sqale_rating](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-laminas-config\u0026metric=sqale_rating)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-laminas-config)\n[![alert_status](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-laminas-config\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-laminas-config)\n[![reliability_rating](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-laminas-config\u0026metric=reliability_rating)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-laminas-config)\n[![security_rating](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-laminas-config\u0026metric=security_rating)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-laminas-config)\n[![sqale_index](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-laminas-config\u0026metric=sqale_index)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-laminas-config)\n[![vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-laminas-config\u0026metric=vulnerabilities)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-laminas-config)\n\n## Description\n\nChubbyphp container adapter using laminas service manager configuration.\n\n## Requirements\n\n * php: ^8.2\n * [chubbyphp/chubbyphp-container][2]: ^2.3\n\n## Installation\n\nThrough [Composer](http://getcomposer.org) as [chubbyphp/chubbyphp-laminas-config][1].\n\n```sh\ncomposer require chubbyphp/chubbyphp-laminas-config \"^1.5\"\n```\n\n## Usage\n\n```php\n\u003c?php\n\ndeclare(strict_types=1);\n\nuse Chubbyphp\\Laminas\\Config\\Config;\nuse Chubbyphp\\Laminas\\Config\\ContainerFactory;\n\n$factory = new ContainerFactory();\n\n$container = $factory(\n    new Config([\n        'dependencies' =\u003e [\n            'services'   =\u003e [],\n            'invokables' =\u003e [],\n            'factories'  =\u003e [],\n            'aliases'    =\u003e [],\n            'delegators' =\u003e [],\n        ],\n        // ... other configuration\n    ])\n);\n```\n\nThe `dependencies` sub associative array can contain the following keys:\n\n- `services`: an associative array that maps a key to a specific service instance.\n- `invokables`: an associative array that map a key to a constructor-less\n  service; i.e., for services that do not require arguments to the constructor.\n  The key and service name usually are the same; if they are not, the key is\n  treated as an alias.\n- `factories`: an associative array that maps a service name to a factory class\n  name, or any callable. Factory classes must be instantiable without arguments,\n  and callable once instantiated (i.e., implement the `__invoke()` method).\n- `aliases`: an associative array that maps an alias to a service name (or\n  another alias).\n- `delegators`: an associative array that maps service names to lists of\n  delegator factory keys, see the\n  [Mezzio delegators documentation](https://docs.laminas.dev/laminas-servicemanager/delegators/)\n  for more details.\n\n\u003e Please note, that the whole configuration is available in the `$container`\n\u003e on `config` key:\n\u003e\n\u003e ```php\n\u003e $config = $container-\u003eget('config');\n\u003e ```\n\n### Using with Mezzio\n\nReplace the contents of `config/container.php` with the following:\n\n```php\n\u003c?php\n\ndeclare(strict_types=1);\n\nuse Chubbyphp\\Laminas\\Config\\Config;\nuse Chubbyphp\\Laminas\\Config\\ContainerFactory;\n\n$config  = require __DIR__ . '/config.php';\n$factory = new ContainerFactory();\n\nreturn $factory(new Config($config));\n```\n\n## Copyright\n\n2025 Dominik Zogg\n\n[1]: https://packagist.org/packages/chubbyphp/chubbyphp-laminas-config\n[2]: https://packagist.org/packages/chubbyphp/chubbyphp-container\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchubbyphp%2Fchubbyphp-laminas-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchubbyphp%2Fchubbyphp-laminas-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchubbyphp%2Fchubbyphp-laminas-config/lists"}