1. Go to this page and download the library: Download nimbly/shuttle library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
nimbly / shuttle example snippets
use Nimbly\Shuttle\Shuttle;
$shuttle = new Shuttle;
$response = $shuttle->get("https://www.google.com");
$response = $shuttle->post("https://example.com/search", "Form data"));
// Build Request message with your favorite PSR-7 library.
$request = new Request("get", "https://www.example.com");
// Send the Request.
$shuttle = new Shuttle;
$response = $shuttle->sendRequest($request);
use Nimbly\Shuttle\Body\JsonBody;
$book = [
"title" => "Breakfast Of Champions",
"author" => "Kurt Vonnegut",
];
$shuttle->post("https://api.example.com/v1/books", new JsonBody($book));
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.