定制 alex-kalanis/remote-request-psr 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

Build Status Scrutinizer Code Quality Latest Stable Version Minimum PHP Version Downloads License Code Coverage

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2023-05-26