jp-toolkit/request-helper 问题修复 & 功能扩展

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

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

jp-toolkit/request-helper

Composer 安装命令:

composer require jp-toolkit/request-helper

包简介

A helper for fetching request data.

README 文档

README

This helper serves two purposes:

  1. It pre-processes global input data for security.
  2. It provides some helper methods for fetching input data and pre-processing it.

Accessing form data

Using POST, GET, COOKIE, or SERVER Data

This helper let to you fetch POST, GET, COOKIE or SERVER items. The main advantage of using the provided methods rather than fetching an item directly $_POST['something'] is that the methods will check to see if the item is set and return NULL if not. This lets you conveniently use data without having to test whether an item exists first. In other words, normally you might do something like this:

$something = isset($_POST['something']) ? $_POST['something'] : 'default value';

With this helper methods you can simply do this:

$something = Request::post('something', 'default value');

Please read our Wiki for more detailed information, advanced usage and shorthands.


Autoloading

You'll need to use an autoloader with this. Ideally, this would be Composer.

Composer

From the command line:

composer require jp-toolkit/request-helper

Bug tracker?

Have a bug? Please create an issue on GitHub at https://github.com/jprieton/jp-toolkit-request-helper/issues)

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2020-04-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固