http-client-contracts
http-client
http-client-contracts | http-client | |
---|---|---|
1 | 2 | |
1,881 | 1,885 | |
0.9% | 1.1% | |
4.7 | 7.7 | |
15 days ago | 4 days ago | |
PHP | PHP | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
http-client-contracts
-
A minimal library that defines primitive building blocks of PHP code.
I have to disagree. To me, declaring a method via the @method tag (in rare cases) is equivalent to actually declaring it in a class/interface. Due to PHP limitations, the obvious lack of generics, and what I wrote earlier, I simply couldn't do it any other way. Take eg. HttpClientInterface from symfony/http-client-contracts or InputInterface from symfony/console, they had different reasons but the outcome is the same.
http-client
-
Does a generic third party api connector package exist? A swiss army knife for connecting to various apis?
I like this one personality: https://github.com/symfony/http-client
-
Another PHP 8++ cheat sheet
There are many ways but I prefer using the http-client package: composer require symfony/http-client.
What are some alternatives?
console - Eases the creation of beautiful and testable command line interfaces
http-foundation - Defines an object-oriented layer for the HTTP specification
Guzzle - Guzzle, an extensible PHP HTTP client
illuminate-adapter - [READ-ONLY] An adapter for Laravel
Requests - Requests for PHP is a humble HTTP request library. It simplifies how you interact with other sites and takes away all your worries.
attoparsec-conduit - A streaming data library
HTTPlug - HTTPlug, the HTTP client abstraction for PHP
saloon - 🤠Build beautiful API integrations and SDKs with Saloon
common - A minimal library that defines primitive building blocks of PHP code.
php-ast - Extension exposing PHP 7 abstract syntax tree
conduit-audio - Use conduit to process/manipulate/convert audio