Open
Description
http://docs.php-http.org/en/latest/clients/curl-client.html
I just followed steps on the page.
And there are 2 packages now in my composer.json
:
"require": {
"php-http/curl-client": "^2.0",
"php-http/message": "^1.7"
}
http://docs.php-http.org/en/latest/clients/curl-client.html#usage
I've copied one of these code snippets and I noticed there is an incompatibility.
use Http\Client\Curl\Client;
use Http\Message\MessageFactory\DiactorosMessageFactory;
use Http\Message\StreamFactory\DiactorosStreamFactory;
$client = new Client(new DiactorosMessageFactory(), new DiactorosStreamFactory());
php-http/curl-client
package is working with Psr\Http\Message\...
interfaces. But php-http/message
package implements Http\Message\...
interfaces.
When I changed the version "php-http/curl-client": "^2.0"
to "^1.7"
, the incompatibility is solved. Curl client works with Http\Message\...
interfaces on ^1.7
version.
So, what is standard?
Which versions of php-http
packages work compatible with each other?
Metadata
Metadata
Assignees
Labels
No labels