Download the PHP package fgsl/rest without Composer
On this page you can find all versions of the php package fgsl/rest. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor fgsl
Package rest
Short Description Fgsl RESTful Requester
License AGPL-3.0-only
Homepage https://github.com/fgsl/rest
Package rest
Short Description Fgsl RESTful Requester
License AGPL-3.0-only
Homepage https://github.com/fgsl/rest
Please rate this library. Is it a good library?
Informations about the package rest
FGSL rest
Component to make HTTP requests and test RESTful APIs
How to install
How to instance
Available methods
-
doGet
-
doPost
-
doPut
-
doDelete
-
doPatch
- doDelete
Examples
Below we have some examples about how to use the Rest
class.
We have used a page of the Brazilian National Observatory for GET method.
We have used Reqres for POST, PATCH and DELETE methods.
Testing a HTTP GET request
Testing a HTTP POST request
Testing a HTTP PUT request
Testing a HTTP PATCH request
Testing a HTTP DELETE request
You can allow more than one HTTP status code as a valid response. The code snippet below shows a request that allows 200 and 201 status code as valid responses.
All versions of rest with dependencies
PHP Build Version
Package Version
The package fgsl/rest contains the following files
Loading the files please wait ....