{"id":18929568,"url":"https://github.com/thecodingmachine/slim-universal-module","last_synced_at":"2025-07-29T06:34:27.320Z","repository":{"id":57067895,"uuid":"58950580","full_name":"thecodingmachine/slim-universal-module","owner":"thecodingmachine","description":"Cross-framework module for slim framework","archived":false,"fork":false,"pushed_at":"2017-01-05T21:24:16.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":3,"subscribers_count":7,"default_branch":"1.0","last_synced_at":"2025-07-28T21:57:18.184Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thecodingmachine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-16T17:00:01.000Z","updated_at":"2017-10-11T07:49:53.000Z","dependencies_parsed_at":"2022-08-24T14:54:08.552Z","dependency_job_id":null,"html_url":"https://github.com/thecodingmachine/slim-universal-module","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thecodingmachine/slim-universal-module","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fslim-universal-module","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fslim-universal-module/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fslim-universal-module/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fslim-universal-module/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thecodingmachine","download_url":"https://codeload.github.com/thecodingmachine/slim-universal-module/tar.gz/refs/heads/1.0","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fslim-universal-module/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267639581,"owners_count":24119783,"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","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"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":[],"created_at":"2024-11-08T11:33:42.673Z","updated_at":"2025-07-29T06:34:27.276Z","avatar_url":"https://github.com/thecodingmachine.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/thecodingmachine/slim-universal-provider.svg?branch=master)](https://travis-ci.org/thecodingmachine/slim-universal-provider)\n[![Coverage Status](https://coveralls.io/repos/thecodingmachine/slim-universal-provider/badge.svg?branch=master\u0026service=github)](https://coveralls.io/github/thecodingmachine/slim-universal-provider?branch=master)\n\n\n# Slim framework universal module\n\nThis package integrates the Slim framework (v3) in any [container-interop/service-provider](https://github.com/container-interop/service-provider) compatible framework/container.\n\n## Installation\n\n```\ncomposer require thecodingmachine/slim-universal-module\n```\n\nOnce installed, you need to register the [`TheCodingMachine\\SlimServiceProvider`](src/SlimServiceProvider.php) into your container.\n\nIf your container supports Puli integration, you have nothing to do. Otherwise, refer to your framework or container's documentation to learn how to register *service providers*.\n\n## Introduction\n\nThis service provider is meant to create a base `Slim/App` instance.\nYou can later play with this instance to add routes, etc...\n\n## Expected values / services\n\nThis *service provider* expects the following configuration / services to be available:\n\n| Name            | Compulsory | Description                            |\n|-----------------|------------|----------------------------------------|\n| `settings`       | *no*       | The Slim settings (see [Slim documentation about settings](http://www.slimframework.com/docs/objects/application.html#application-configuration) for more details) |\n\n\n## Provided services\n\n**Note**: Sadly, Slim uses containers as service locators instead of dependency injection containers. This means that the name of the instances is [dictated by Slim](http://www.slimframework.com/docs/concepts/di.html). The names could collide with some of your services! Be wary of this!\n\nThis *service provider* provides the following services:\n\n| Service name                | Description                          |\n|-----------------------------|--------------------------------------|\n| `App::class`  | The Slim app   |\n| `settings`  | The Slim default settings   |\n| `environment`  |  Instance of `\\Slim\\Interfaces\\Http\\EnvironmentInterface`.  |\n| `request`  |  Instance of `\\Psr\\Http\\Message\\ServerRequestInterface`.  |\n| `response`  | Instance of `\\Psr\\Http\\Message\\ResponseInterface`.   |\n| `router`  |  Instance of `\\Slim\\Interfaces\\RouterInterface`.  |\n| `foundHandler`  | Instance of `\\Slim\\Interfaces\\InvocationStrategyInterface`.   |\n| `phpErrorHandler`  | Callable invoked if a PHP 7 Error is thrown. See [Slim doc](http://www.slimframework.com/docs/concepts/di.html)   |\n| `errorHandler`  | Callable invoked if an Exception is thrown. See [Slim doc](http://www.slimframework.com/docs/concepts/di.html)   |\n| `notFoundHandler`  | Callable invoked if the current HTTP request URI does not match an application route. See [Slim doc](http://www.slimframework.com/docs/concepts/di.html)  |\n| `notAllowedHandler`  | Callable invoked if an application route matches the current HTTP request path but not its method. See [Slim doc](http://www.slimframework.com/docs/concepts/di.html)   |\n| `callableResolver`  |  Instance of `\\Slim\\Interfaces\\CallableResolverInterface`. |\n\n\n## Extended services\n\nThis *service provider* registers the `Slim\\App` in the `MiddlewareListServiceProvider::MIDDLEWARES_QUEUE`.\n\n| Service name                | Description                          |\n|-----------------------------|--------------------------------------|\n| `MiddlewareListServiceProvider::MIDDLEWARES_QUEUE`  | Adds the Slim app to this queue (to be used by external routers)  |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodingmachine%2Fslim-universal-module","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthecodingmachine%2Fslim-universal-module","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodingmachine%2Fslim-universal-module/lists"}