I want to learn how HTTP PUT method is used with PHP? I googled at the web and found some tutorials about it with cURL. But i dont know how to use it (Like REST API). Can anyone help me? Thank in advance

Hi, PHP does not have a $_PUT method (unfortunately) so, in order to accept such input you have to listen for stdin streams. The following documentation explains how you can upload a file through this method:

A part this solution, some frameworks and APIs use fake PUT (and DELETE) requests, which are usually POST requests, check for example the implementations on the old Dropbox API or in Laravel.