3 ms·
Hey OP I don't think I've seen this mentioned yet, but one important thing to consider is the collection of PSRs (PHP Standard Recommendations), several of whi
by 0x6c6f6c 3y ago
Hey OP I don't think I've seen this mentioned yet, but one important thing to consider is the collection of PSRs (PHP Standard Recommendations), several of which are around HTTP clients.
This is an important component to decoupling packages from specific underlying implementations like Guzzle.
You can even use the auto-discovery package to have whichever conforming HTTP client is installed (like Guzzle for example) be utilized, or allow via dependency injection an existing HTTP client to be passed in.
This would be a great enhancement since the PHP community has done a great job with these shared standards, it is a common expectation across packages to utilize them.
- joeymckenzie 3y agoThis is an excellent idea. I assume you're referring specifically to [PSR-18](https://www.php-fig.org/psr/psr-18/ https://www.php-fig.org/psr/psr-18/)? I wasn't aware of those PSRs around the HTTP client implementations, just digging into them now. I've got my Saturday morning reading covered!