Download the PHP package glacier/widgets without Composer
On this page you can find all versions of the php package glacier/widgets. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package widgets
widgets
- Tool 小工具函数集合
- curl curl类
- FileCache 文件缓存类
- Validator 验证数据的格式是否符合要求
- SysInfo 获取Linux基本硬件信息
- FIleManger 管理操作系统文件
更多使用方法详见文件注释
curl
修改自 php-mod/curl https://github.com/php-mod/curl post方式增加了queryString 无报错情况下直接返回获得的数据
Tool
Tool::getPrivateValue
: 动态的获得实例的私有属性值
Tool::responseNow($outputString)
- !!!重要,此功能对部分httpServer无效,比如IIS和其他小的build-in webServer.Apache2.4.X测试有效
- 将输出传入的数据,并断开与客户端的连接,然后再执行后面的语句。这样即使后面的语句有输出也将无法显示给客户端
- 可以用作先输出再做记录日志等耗时操作。
例子:
proc_exec
:Linux下可以获得程序错误信息的方法
FileCache
文件缓存类,利用文件系统作为缓存
- 原作者Author: Jenner
-
基于http://www.huyanping.cn/php%E6%96%87%E4%BB%B6%E7%BC%93%E5%AD%98%E5%AE%9E%E7%8E%B0/ 上文档修改
实例化的时候应传入一个缓存路径,否则默认把缓存放在这个类文件所在的目录
Validator
validate( $array,$filterRules)
参数:
- @param array $filterRules 要验证的规则可多选用
|
分隔 - @param array $array 要验证的数组() 格式如下
- $filterRules="required|max:6";
- $var=123456;
- 新增验证规则新增一个函数即可
返回值:通过true
失败false
例子:
All versions of widgets with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.0
The package glacier/widgets contains the following files
Loading the files please wait ....