Are you a fan of the Javascript fetch api but like using PHP, then you're in luck!
This port of the fetch supports the following:
- GET
- POST
- PUT
- PATCH
- DELETE
How to install: To include the fetch api in your code all you need to include is the fetch.php file.
Examples: Inside example-code.php you can find examples how the fetch api is used and what the response object contains.
If you feel like adding functionality, feel free to submit a pull request.