-
-
Notifications
You must be signed in to change notification settings - Fork 9
Home
The Fetch API provides an interface for fetching resources, typically across the network. It will seem familiar to anyone who has used XMLHttpRequest
, but the new API provides a more powerful and flexible feature set.
This project brings the fetch API to the server in PHP, so you can use the same syntax that you are used to in JavaScript to perform blocking or non-blocking HTTP requests within your PHP applications.
Although PHP is a general purpose programming language, it has such deep ties with the web platform. PHP.Gt's mission is to bring well known web technologies to server side web development and drive PHP development forward into the modern day.
There are plenty of other more widely adopted PHP HTTP clients, but outside of PHP they are not known by web developers at all. Fetch is a standard API for making HTTP requests and handling their responses as streams. This is the PHP implementation.
PHP.Gt/Fetch is a separately maintained component of PHP.Gt/WebEngine.