http-php/payload
Composer 安装命令:
composer require http-php/payload
包简介
A simple OOP wrapper to work with HTTP message payloads in PHP
README 文档
README
This package is to allow you to create HTTP payloads in PHP, in a simple and reliable way.
Installation
composer require http-php/payload
Usage
To use this package, it is very simple. Create a payload using the following code:
use HttpPHP\Payload\Payload; $payload = Payload::make( body: '{"test": "test"}', // add your json content here. ); $payload->parse(); // ['test' => 'test'']; parse to get payload as an array.
This package currently supports the following payload types:
- JSON
Testing
To run the test suite:
composer run test
Credits
LICENSE
The MIT LIcense (MIT). Please see License File for more information.
统计信息
- 总下载量: 20
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-07-26