How to call asynchronous request in PHP ? Because I want return data without having to wait response of that request

I have a request to create data that has a lot of images, so I want to make one more request to download those images without having to wait for the request to finish. I have learned about fsockopen but it doesn't support https request. Hope you will help me, thanks so much.

Answer

Solution:

Developers can program synchronously, just like traditional PHP but benefit from the performance of asynchronous IO that is provided by coroutines

You can try swoole.

Source