a way to perform http requests in parallel with php
$params = [
'pe_category' => 3, // "Faires Angebot"
'fregto' => 2019, // "Erstzulassung ab"
'fregfrom' => 2019, // "Erstzulassung bis"
...
];
$priceSearch = new PriceSearch('bmw', '320', 5, $this->params, $async=false);
$priceSearch = new PriceSearch('bmw', '320', 5, $this->params, $async=true);
There are usually 10 cars on one page, if you need more, you can set $pages param (default=1)
PriceSearch::getAveragePrice()
composer install
vendor/bin/phpunit tests/PriceSearchTest.php