{"id":18929444,"url":"https://github.com/thecodingmachine/stratigility-harmony","last_synced_at":"2025-06-18T14:38:02.009Z","repository":{"id":57067914,"uuid":"52956941","full_name":"thecodingmachine/stratigility-harmony","owner":"thecodingmachine","description":"Cross-framework module for Stratigility","archived":false,"fork":false,"pushed_at":"2018-08-23T13:21:42.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":9,"default_branch":"2.1","last_synced_at":"2025-06-13T15:03:49.643Z","etag":null,"topics":[],"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/thecodingmachine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-02T11:13:44.000Z","updated_at":"2016-03-02T11:14:06.000Z","dependencies_parsed_at":"2022-08-24T14:54:08.459Z","dependency_job_id":null,"html_url":"https://github.com/thecodingmachine/stratigility-harmony","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/thecodingmachine/stratigility-harmony","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fstratigility-harmony","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fstratigility-harmony/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fstratigility-harmony/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fstratigility-harmony/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thecodingmachine","download_url":"https://codeload.github.com/thecodingmachine/stratigility-harmony/tar.gz/refs/heads/2.1","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fstratigility-harmony/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260572135,"owners_count":23030013,"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-08T11:32:49.340Z","updated_at":"2025-06-18T14:37:56.984Z","avatar_url":"https://github.com/thecodingmachine.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stratigility universal module\n\nThis package integrates Stratigility in any [container-interop](https://github.com/container-interop/service-provider) compatible framework/container.\n\n## Installation\n\n```\ncomposer require thecodingmachine/stratigility-harmony\n```\n\nIf your container supports autodiscovery by thecodingmachine/discovery, there is nothing more to do.\nOtherwise, you need to register the [`TheCodingMachine\\StratigilityServiceProvider`](src/StratigilityServiceProvider.php) and the `TheCodingMachine\\MiddlewareListServiceProvider` into your container.\n\nRefer to your framework or container's documentation to learn how to register *service providers*.\n\n## Usage\n\nThis module registers 2 services in your container:\n\n- A Zend Diactoros Server under the `Zend\\Diactoros\\Server` key.\n  Use the `listen` method to answer calls:\n  ```php\n  $server = $container-\u003eget(Server::class);\n  $server-\u003elisten();\n  ```\n\n- A MiddlewarePipe instance under the `Zend\\Stratigility\\MiddlewarePipe` key.\n  Use this middleware pipe to add your own middlewares:\n  ```php\n  $middlewarePipe = $container-\u003eget(MiddlewarePipe::class);\n  $middlewarePipe-\u003epipe($myMiddleware);\n  ```\n\n\n## About the middlewares priority queue\n\nDepending on the middleware you are registering, you generally have a fairly good idea of the order your middleware should run compared to other middlewares.\nThe Stratigility service provider will use the middleware list provided by [thecodingmachine/middleware-list-universal-module](https://github.com/thecodingmachine/middleware-list-universal-module).\n\nPlease have a look at this package to see how to add middlewares automatically.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodingmachine%2Fstratigility-harmony","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthecodingmachine%2Fstratigility-harmony","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodingmachine%2Fstratigility-harmony/lists"}