jdrich/masticate 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

jdrich/masticate

最新稳定版本:1.0.0

Composer 安装命令:

composer require jdrich/masticate

包简介

Consume and contain request data

README 文档

README

Masticate https://jdrich@github.com/jdrich/masticate.git

About

Masticate is an MIT licensed PHP input filtering library that wraps the dangerous PHP superglobals ($_SERVER, $_GET, $_POST, $_FILES) to enforce some level of data sanitation.

Uses

Masticate (destroys superglobals)

$filter = Filter::masticate();

Register (preserves superglobals)

$filter = new Filter(['get' => $_GET]); $filter->register(['post' =>
$_POST]);

Retreiving

if($filter->has('get','param')) {
    $foo = $filter->get('param');
}

Filtering

$bar = $filter->get('param', 'SANITIZE_EMAIL');

Purpose

Masticate wraps the superglobals in a very simple layer of OO which implements the build-in PHP filter extension.

Author

Jonathan Rich jdrich@gmail.com

Feedback

Submit bugs to https://github.com/jdrich/masticate/issues.

License

Please see the file called LICENSE.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-12-04