Download the PHP package houdunwang/request without Composer
On this page you can find all versions of the php package houdunwang/request. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download houdunwang/request
More information about houdunwang/request
Files in houdunwang/request
Download houdunwang/request
More information about houdunwang/request
Files in houdunwang/request
Vendor houdunwang
Package request
Short Description 客户端请求处理组件
License MIT
Homepage http://www.houdunwang.com/
Package request
Short Description 客户端请求处理组件
License MIT
Homepage http://www.houdunwang.com/
Please rate this library. Is it a good library?
Informations about the package request
响应组件
介绍
Request服务是用于获取请求数据与对请求终端设备进行判断的服务。
[TOC]
开始使用
安装组件
使用 composer 命令进行安装或下载源代码使用。
HDPHP 框架已经内置此组件,无需要安装
启动组件
常量定义
组件会定义一些常量
判断请求类型
获取数据
query 方法支持点语法操作,支持多层数据获取。第一个字符为数据类型。
不存在时返回默认值
返回默认值指当数据不存在时返回设置的值,并不会更改原数据。 以下示例当 $_GET['id']不存在时返回默认值9
对数据函数处理
query 方法的第三个参数是一个函数名组成的数组,将对获取的数据通过函数进行处理后返回。
根据类型获取
系统支持使用 get,post,request,server,session,cookie,global获取同名的php全局变量数据。
获得所有 $_GET 数据
获得所有 $_POST 数据
获得POST变量并对数据执行函数处理
获得POST变量, 不存时返回默认值
获得 $_SESSION['uid'] 值,并执行intval方法
获得 $_COOKIE['cart'] 值
设置
使用set 方法可以为$_GET,$_POST,$_REQUEST,$_SERVER设置数据,支持点语法设置多层数据,第一个参数为数据类型。 以下代码设置GET['a']['b'] 变量为后盾人
获取客户端IP地址
https请求检测
判断是否为手机访问
检测是否为微信客户端
判断请求来源是否为本站域名
All versions of request with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4.0
houdunwang/session Version ~1.0
houdunwang/cookie Version ~1.0
houdunwang/arr Version ~1.0
houdunwang/tool Version ~1.0
houdunwang/session Version ~1.0
houdunwang/cookie Version ~1.0
houdunwang/arr Version ~1.0
houdunwang/tool Version ~1.0
The package houdunwang/request contains the following files
Loading the files please wait ....