phuedx/tnetstring
最新稳定版本:v2.0.1
Composer 安装命令:
composer require phuedx/tnetstring
包简介
A tagged netstring encoder/decoder for PHP.
关键字:
README 文档
README
A tagged netstring codec for PHP.
Installation
The recommended way to install TNetstring is with Composer.
composer.phar require phuedx/tnetstring
Usage
<?php require_once __DIR__.'/vendor/autoload.php'; $payload = array( 'authors' => array( array( 'name' => 'Sam Smith', 'email' => 'yo@samsmith.io', 'homepage' => 'https://github.com/phuedx', ), ), ); $codec = new \Phuedx\TNetstring\Codec(); $encoded = $codec->encode($payload); $decoded = $codec->decode($encoded);
There's also a JSON-like API:
$encoded = tnetstring_encode($payload); $decoded = tnetstring_decode($encoded);
Resources
tnetstrings.org had all of the information you'll need to get acquainted with tagged netstrings.
License
TNetstring is licensed under the MIT license and is copyright (c) 2011-2016 Sam Smith. See LICENSE for full copyright and license information.
统计信息
- 总下载量: 8.04k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 1
- 依赖项目数: 4
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2012-02-18