{"id":15735015,"url":"https://github.com/icanhazstring/optimus-middleware","last_synced_at":"2026-02-16T00:03:01.294Z","repository":{"id":56988478,"uuid":"134154684","full_name":"icanhazstring/optimus-middleware","owner":"icanhazstring","description":"PSR-15/PSR-7 compliant middleware using jenssegers/optimus","archived":false,"fork":false,"pushed_at":"2018-05-20T16:20:05.000Z","size":10,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-06T14:42:21.030Z","etag":null,"topics":["expressive","middleware","optimus","psr-15","psr-7"],"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/icanhazstring.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}},"created_at":"2018-05-20T13:51:25.000Z","updated_at":"2019-05-06T08:42:47.000Z","dependencies_parsed_at":"2022-08-21T09:40:47.007Z","dependency_job_id":null,"html_url":"https://github.com/icanhazstring/optimus-middleware","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/icanhazstring/optimus-middleware","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icanhazstring%2Foptimus-middleware","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icanhazstring%2Foptimus-middleware/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icanhazstring%2Foptimus-middleware/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icanhazstring%2Foptimus-middleware/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/icanhazstring","download_url":"https://codeload.github.com/icanhazstring/optimus-middleware/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icanhazstring%2Foptimus-middleware/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266614306,"owners_count":23956341,"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-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["expressive","middleware","optimus","psr-15","psr-7"],"created_at":"2024-10-04T01:07:06.016Z","updated_at":"2025-10-07T23:05:24.694Z","avatar_url":"https://github.com/icanhazstring.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# expressive-optimus-middleware\nPSR-15 compliant middleware using jenssegers/optimus\n\n[![Build Status](https://api.travis-ci.org/icanhazstring/optimus-middleware.svg?branch=master)](https://travis-ci.org/icanhazstring/optimus-middleware)\n\n## Install\n\nYou can install the *optimus-middleware* library with composer:\n```bash\n$ composer require icanhazstring/optimus-middleware\n```\n\n## Configuration\n\n### General dependencies\n\nFor the middleware to work, your `Container` needs a dependency to `Optimus`.\nYou need to provide an instance with the configuration you need.\n\nHow to configure see: https://github.com/jenssegers/optimus\n\n### Using expressive\n\nInclude the `OptimusConfigProvider` inside your `config/config.php`:\n\n```php\n$aggregator = new ConfigAggregator([\n    ...\n    \\icanhazstring\\Middleware\\OptimusConfigProvider::class,\n    ...\n]);\n```\n\nMake sure the `OptimusConfigProvider` is included before your autoload files!\n\n#### Change decoded attributes\n\nIf you want to change the attributes the middleware should decode, simply provide the\n`OptimusMiddleware::CONFIG_KEY` inside your autoload configuration.\n\n```php\nreturn [\n    \\icanhazstring\\Middleware\\OptimusMiddleware::CONFIG_KEY =\u003e ['id']\n];\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficanhazstring%2Foptimus-middleware","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ficanhazstring%2Foptimus-middleware","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficanhazstring%2Foptimus-middleware/lists"}