PHP code example of fatal-error / guzzle-description-loader
1. Go to this page and download the library: Download fatal-error/guzzle-description-loader 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/ */
fatal-error / guzzle-description-loader example snippets
php
use Guzzle\Service\Loader\JsonLoader;
use GuzzleHttp\Command\Guzzle\Description;
use Symfony\Component\Config\FileLocator;
$configDirectories = array(DESCRIPTION_PATH);
$this->locator = new FileLocator($configDirectories);
$this->jsonLoader = new JsonLoader($this->locator);
$description = $this->jsonLoader->load($this->locator->locate('description.json'));
$description = new Description($description);