承接 sam-it/symfony-http-psr18 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

sam-it/symfony-http-psr18

最新稳定版本:v2.1.0

Composer 安装命令:

composer require sam-it/symfony-http-psr18

包简介

Provides a Symfony HttpClientInterface that wraps PSR17 and PSR18

README 文档

README

This package wraps the relevant PSR interfaces to provide Symfony's HttpClientInterface.

  • It is not complete with respect to the supported options
  • It will throw exceptions when it encounters unsupported options as required by the contract
  • It DOES NOT use lazy responses and which explicitly VIOLATES the contract.

Why is this needed

Currently packages like symfony/mailer require an implementation of Symfony's HttpClientInterface. With the PSR standards related to sending HTTP requests maturing projects not using these components in a standalone fashion might be forced into using Symfony's HTTP Client when they already have another HTTP Client implementation set up.

This package provides a lightweight adapter that allows you to use your existing PSR18 Http Client and pass it to Symfony components that require Symfony's HttpClientInterface. Since we do not support lazy responses you should evaluate what kind of usage you expect before using this adapter.

统计信息

  • 总下载量: 19.24k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-11-18