cloudinary / cloudinary/cloudinary_php

Drop Guzzle requirement and replace with any PSR-18 HttpClient

未關閉
#396 0 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
PHP
星號
399
分支
151
PR 合併指標
30 天內沒有已合併 PR

描述

The current version of this SDK requires Guzzle. My application uses Symfony's HttpClient (which allows for automatic retries and integration with the debug toolbar, compelling reasons for me to use it).

Rather than recommending this library switch, better would be use only require that any PSR-18 http client be installed, and use it.

Here's an article about how and why: https://medium.com/php-fig/psr-18-the-php-standard-for-http-clients-3254c58752bb

At a minimum, even if Guzzle is installed, the developer should be able to choose what client they want to use for the requests.

Thanks!

貢獻指南

開啟貢獻指南

研究方向

檢查相依性設定和 SDK 的請求路徑,以找出在哪些地方需要 Guzzle,以及如何選取 HTTP 用戶端。完成的標準是 SDK 可以使用任何 PSR-18 用戶端,包括 Symfony's HttpClient,同時在已安裝 Guzzle 時保留選取用戶端的方式。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
php, symfony
領域
api, backend
Issue 類型
功能
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。