承接 alkhwlani/xss-middleware 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

alkhwlani/xss-middleware

最新稳定版本:4.0.0

Composer 安装命令:

composer require alkhwlani/xss-middleware

包简介

A Laravel 5.5+ Middleware to filter user inputs from XSS and iframes and other embed elements.

README 文档

README

Latest Version on Packagist Software License Build Status StyleCI Coverage Status Quality Score Total Downloads

A Laravel middleware to cleaning all inputs/data of request from XSS and embed elements, its used Security Core package by Graham Campbell under the hook.

Support version

Laravel laravel-modules
5.8 ^1.0
6.X-8.X ^2.0
9.X ^3.0
10.X ^4.0

Install

composer require alkhwlani/xss-middleware

Usage

That's it! by default package automatic register a global middleware to cleaning all string inputs for all requests.

if you are not using automatic package discovery, then add the service provider in config/app.php:

\Alkhwlani\XssMiddleware\ServiceProvider::class,

Optional

if you want customizes configuration you can publish the configuration

$ php artisan vendor:publish --provider="\Alkhwlani\XssMiddleware\ServiceProvider"

Then check the content of the published config file config/xss-middleware.php.

Testing

Run the tests with:

vendor/bin/phpunit

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security-related issues, please email alkhwlani@yandex.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 510.4k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-02-23