If you're looking for executing the request with cURL in a forked system process, then I created a library for that, it's built for Laravel but you could copy the logic and use it in any PHP application. https://packagist.org/packages/oliverlundquist/laravel-http-background