alex-kalanis/remote-request-psr
最新稳定版本:v1.1.0
Composer 安装命令:
composer require alex-kalanis/remote-request-psr
包简介
Remote Request adapter for PSR-7 and PSR-18
README 文档
README
PSR adapter for connecting Remote Request into your application with public interfaces.
PHP Installation
composer.phar require alex-kalanis/remote-request-psr
(Refer to Composer Documentation if you are not familiar with composer)
PHP Usage
1.) Use your autoloader (if not already done via Composer autoloader)
2.) Add some external packages with connection to the local or remote services.
3.) Connect the "\kalanis\RemoteRequestPsr\Processor\Simple" into your app.
5.) Just call request
Usages
Basic data sending through network. In this case just use php's internal streams.
$request = \kalanis\RemoteRequestPsr\Content\Request(); // ... $request is PSR request class WITHOUT immutability. So the most things works. $lib = new \kalanis\RemoteRequestPsr\Processor\Simple(); $response = $lib->process($request); // ... $response is PSR response class WITHOUT immutability. So the most things works. return strval($response->getBody());
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2023-05-26