What library to use for REST?

Now we use the function file_get_contents to rest requests. But it works not very stable. Please advise the solution.
September 26th 19 at 06:09
1 answer
September 26th 19 at 06:11
it uses fsockopen? - Amiya14 commented on September 26th 19 at 06:14
it uses the functionality of threads. - Joel.Wisoky36 commented on September 26th 19 at 06:17
what is the difference between them? - Amiya14 commented on September 26th 19 at 06:20
technically - no. Just stream is a universal interface, and less code comes out. - Joel.Wisoky36 commented on September 26th 19 at 06:23
but file_get_contents is not suitable for this? - Amiya14 commented on September 26th 19 at 06:26
fit, you only need the context pass is configured correctly. For GET requests, even to do nothing. Guzzle is simply a convenient wrapper around a stream to work with HTTP. - Joel.Wisoky36 commented on September 26th 19 at 06:29

Find more questions by tags PHPRESTful API