spiral/csrf

GitHub: spiral/csrf

专为 Spiral 框架设计的 CSRF 中间件,用于生成和校验令牌以防御跨站请求伪造攻击。

Stars: 0 | Forks: 1

# Spiral Framework: CSRF 中间件 [![PHP Version Require](https://poser.pugx.org/spiral/csrf/require/php)](https://packagist.org/packages/spiral/csrf) [![Latest Stable Version](https://poser.pugx.org/spiral/csrf/v/stable)](https://packagist.org/packages/spiral/csrf) [![phpunit](https://static.pigsec.cn/wp-content/uploads/repos/2026/04/f10f7efd5c052232.svg)](https://github.com/spiral/csrf/actions) [![psalm](https://static.pigsec.cn/wp-content/uploads/repos/2026/04/2278b0ba16052233.svg)](https://github.com/spiral/csrf/actions) [![Codecov](https://codecov.io/gh/spiral/csrf/branch/master/graph/badge.svg)](https://codecov.io/gh/spiral/csrf/) [![Total Downloads](https://poser.pugx.org/spiral/csrf/downloads)](https://packagist.org/packages/spiral/csrf) [![type-coverage](https://shepherd.dev/github/spiral/csrf/coverage.svg)](https://shepherd.dev/github/spiral/csrf) [![psalm-level](https://shepherd.dev/github/spiral/csrf/level.svg)](https://shepherd.dev/github/spiral/csrf) [文档](https://spiral.dev/docs/http-csrf) | [框架包](https://github.com/spiral/framework) ## 许可证: MIT License (MIT)。请参阅 [`LICENSE`](./LICENSE) 以获取更多信息。由 [Spiral Scout](https://spiralscout.com) 维护。
标签:CSRF, DNS解析, Middleware, MIT协议, OpenVAS, PHP, Session, Spiral Framework, Syscall, Token, Web安全, Web开发, 中间件, 后端开发, 安全防护, 开源项目, 网络安全, 蓝队分析, 表单保护, 跨站请求伪造, 防御性编程, 隐私保护