{"id":18929608,"url":"https://github.com/thecodingmachine/csrf-header-check-middleware-universal-module","last_synced_at":"2026-03-16T15:30:17.340Z","repository":{"id":57067848,"uuid":"93772620","full_name":"thecodingmachine/csrf-header-check-middleware-universal-module","owner":"thecodingmachine","description":"Cross-framework module for thecodingmachine/csrf-header-check-middleware","archived":false,"fork":false,"pushed_at":"2018-02-27T16:56:23.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-02-16T12:30:25.899Z","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":"2017-06-08T16:57:19.000Z","updated_at":"2017-06-08T16:57:43.000Z","dependencies_parsed_at":"2022-08-24T14:54:08.326Z","dependency_job_id":null,"html_url":"https://github.com/thecodingmachine/csrf-header-check-middleware-universal-module","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fcsrf-header-check-middleware-universal-module","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fcsrf-header-check-middleware-universal-module/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fcsrf-header-check-middleware-universal-module/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fcsrf-header-check-middleware-universal-module/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thecodingmachine","download_url":"https://codeload.github.com/thecodingmachine/csrf-header-check-middleware-universal-module/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239927825,"owners_count":19719835,"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:33:59.355Z","updated_at":"2026-03-16T15:30:17.274Z","avatar_url":"https://github.com/thecodingmachine.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Latest Stable Version](https://poser.pugx.org/thecodingmachine/csrf-header-check-middleware-universal-module/v/stable)](https://packagist.org/packages/thecodingmachine/csrf-header-check-middleware-universal-module)\n[![Latest Unstable Version](https://poser.pugx.org/thecodingmachine/csrf-header-check-middleware-universal-module/v/unstable)](https://packagist.org/packages/thecodingmachine/csrf-header-check-middleware-universal-module)\n[![License](https://poser.pugx.org/thecodingmachine/csrf-header-check-middleware-universal-module/license)](https://packagist.org/packages/thecodingmachine/csrf-header-check-middleware-universal-module)\n\n# TheCodingMachine's CSRF header checker middleware universal module\n\nThis package integrates the [TheCodingMachine's CSRF header checker middleware](https://github.com/thecodingmachine/csrf-header-check-middleware) in any [container-interop](https://github.com/container-interop/service-provider) compatible framework/container.\n\n## Installation\n\n```\ncomposer require thecodingmachine/csrf-header-check-middleware-universal-module\n```\n\nOnce installed, you need to register the [`TheCodingMachine\\Middlewares\\CsrfHeaderCheckMiddlewareServiceProvider`](src/CsrfHeaderCheckMiddlewareServiceProvider.php) into your container.\n\nIf your container supports [thecodingmachine/discovery](https://github.com/thecodingmachine/discovery) 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 middleware checks HTTP header to prevent CSRF attacks.\nThis service provider adds the middleware at the beginning of the stack.\n\n## Provided services\n\nThis *service provider* provides the following services:\n\n| Service name                | Description                          |\n|-----------------------------|--------------------------------------|\n| `TheCodingMachine\\Middlewares\\CsrfHeaderCheckMiddlewareServiceProvider`              | The CSRF checker middleware                           |\n\n## Extended services\n\nThis *service provider* extends those services:\n\n| Name                        | Compulsory | Description                            |\n|-----------------------------|------------|----------------------------------------|\n| `MiddlewareListServiceProvider::MIDDLEWARES_QUEUE`              | *no*      | This service providers inserts the CSRF middleware in the middleware queue.                             |\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodingmachine%2Fcsrf-header-check-middleware-universal-module","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthecodingmachine%2Fcsrf-header-check-middleware-universal-module","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodingmachine%2Fcsrf-header-check-middleware-universal-module/lists"}