{"id":21714070,"url":"https://github.com/rstgroup/http-method-override","last_synced_at":"2025-04-12T19:05:53.841Z","repository":{"id":62537841,"uuid":"50654406","full_name":"rstgroup/http-method-override","owner":"rstgroup","description":"HTTP method override PSR-7 middleware","archived":false,"fork":false,"pushed_at":"2020-11-03T20:25:42.000Z","size":21,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-11-10T21:47:20.485Z","etag":null,"topics":["http","method-override","middleware","psr-7"],"latest_commit_sha":null,"homepage":"http://rst.com.pl/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rstgroup.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":"2016-01-29T10:00:22.000Z","updated_at":"2018-03-20T21:19:39.000Z","dependencies_parsed_at":"2022-11-02T15:16:40.917Z","dependency_job_id":null,"html_url":"https://github.com/rstgroup/http-method-override","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstgroup%2Fhttp-method-override","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstgroup%2Fhttp-method-override/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstgroup%2Fhttp-method-override/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstgroup%2Fhttp-method-override/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rstgroup","download_url":"https://codeload.github.com/rstgroup/http-method-override/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226422447,"owners_count":17622595,"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":["http","method-override","middleware","psr-7"],"created_at":"2024-11-26T00:30:40.931Z","updated_at":"2024-11-26T00:31:08.772Z","avatar_url":"https://github.com/rstgroup.png","language":"PHP","readme":"# http-method-override [![Build Status](https://travis-ci.org/rstgroup/http-method-override.svg?branch=master)](https://travis-ci.org/rstgroup/http-method-override)\nHTTP method override service\n\nThis library allows you to override HTTP method using HTTP header ie. `X-HTTP-Method-Override`. Why? Because some clients\ncannot send non-standard methods like ie. `LINK`. It can be used as PSR-7 middeware or Zend Framework 2 module.\n\n## Installation\n\n```\ncomposer require rstgroup/http-method-override\n```\n\nCheck suggested dependencies in [composer.json](composer.json) and add it to your dependencies.\n\nYou need to configure how it's possible to override methods. To do that you need to create/modify configuration provided\nby service which must exists in your dependecy container (as `config` key):\n\n```php\nreturn [\n    'rst_group' =\u003e [\n        'http_method_override' =\u003e [\n            'map' =\u003e [\n                'POST' =\u003e ['LINK', 'PUT'],\n            ],\n            'override_headers' =\u003e [],\n        ],\n    ],\n];\n```\n\nIt will add ability to use POST method as LINK or PUT. You can override it using given request:\n\n```\nPOST http://example.com/page\nX-HTTP-Method-Override: PUT\n```\n\n`override_headers` allow you to define own header to override.\n\n### Specific installation for PSR-7 middeware\n\nUse [Expressive Configuration Manager](https://github.com/mtymek/expressive-config-manager) to add library config.\nAfter this you can enable middleware in your middleware-stack using `RstGroup\\HttpMethodOverride\\HttpMethodOverrideMiddleware`\nservice name in your container.\n\n### Specific installation for Zend Framework 2 \u0026 3\n\nAdd module `RstGroup\\HttpMethodOverride` to `application.config.php` file.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frstgroup%2Fhttp-method-override","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frstgroup%2Fhttp-method-override","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frstgroup%2Fhttp-method-override/lists"}