tacoberu/php-naiacode
Composer 安装命令:
composer require tacoberu/php-naiacode
包简介
De/Serialization text with meta from/to human readable text string.
README 文档
README
De/Serialization text with meta from/to human readable text string.
$str =
"Any-Header: with value
Meta: {"vendor":"zim","ver":"0.4"}
Content-Type: text/x-zim-wiki
And Lorem ipsum doler ist.";
(new Decoder())->decode($str) == [
"And Lorem ipsum doler ist.",
[
'any-header' => "with value",
'meta' => (object) [
'vendor' => 'zim',
'ver' => '0.4',
],
'content-type' => "text/x-zim-wiki",
]
]
And encoding similarly.
统计信息
- 总下载量: 56
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-03-15