monolyth/plumber
最新稳定版本:1.1.0
Composer 安装命令:
composer require monolyth/plumber
包简介
Utilities for the Monolyth unframework
README 文档
README
Utilities for the Monolyth unframework
Installation
Composer (recommended)
$ composer require monolyth/plumber
Manual
- Download or clone the repository;
- Add
/path/to/plumber/srcfor namespaceMonolyth\Plumberto your PSR-4 autoloader.
Usage
Currently only 2 utilities are included: Utf8 and Proxy. Statically call
the handle method on the classes to utilise them.
Utf8
The Utf8::handle method normalises PHP's UTF-8 handling.
Proxy
The Proxy::handle method attempts to normalise the X_HTTP_FORWARDED_FOR
header so you can just use REMOTE_ADDR everywhere. Note that not all proxies
handle this the same, so you might need to roll your own.
统计信息
- 总下载量: 277
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2016-07-16