marcusirgens/jsend-factory
Composer 安装命令:
composer require marcusirgens/jsend-factory
包简介
JSend factories for PSR-7
README 文档
README
JSendFactory is a PHP library for creating JSend-compliant PSR-7 requests.
Installation
Use the package manager composer to install the package.
composer require marcusirgens/jsend-factory
You will also need some PSR-17 implementation. You can find a list of packages providing this at packagist.org. If you're unsure, go for nyholm/psr7.
Usage
$responseFactory = new Psr17ResponseFactory(); $streamFactory = new Psr17StreamFactory(); $jsendFactory = \MarcusIrgens\JSendFactory\JSendFactory( $responseFactory, $streamFactory ); $successResponse = $jsendFactory->getSuccess(["message" => "hello"]);
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
统计信息
- 总下载量: 177
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-09-25