Hello! There is a task, it is necessary sparsit several different requests simultaneously. Question: maybe there is some kind of fast ready class in php, if there is, you can show the class work with an example? Thank.

Closed due to the fact that it is necessary to reformulate the question so that it was possible to give an objectively correct answer by the participants cheops , aleksandr barakin , Streletz , user194374, Sergey Rufanov 26 Jun '16 at 10:16 .

The question gives rise to endless debates and discussions based not on knowledge, but on opinions. To get an answer, rephrase your question so that it can be given an unambiguously correct answer, or delete the question altogether. If the question can be reformulated according to the rules set out in the certificate , edit it .

    1 answer 1

    From the docs: http://guzzle3.readthedocs.org/http-client/client.html#sending-requests-in-parallel

    If you have any request, please see http://guzzle3.readthedocs.org/batching/batching.html#batching

    Short example:

    <?php $client->send(array( $client->get('http://www.example.com/foo'), $client->get('http://www.example.com/baz'), $client->get('http://www.example.com/bar') )); 

    https://stackoverflow.com/questions/19520185/how-to-perform-multiple-guzzle-requests-at-the-same-time