2017 © Pedro Peláez
 

library guzzle-description-loader

Load guzzle service description from various file formats

image

gimler/guzzle-description-loader

Load guzzle service description from various file formats

  • Wednesday, January 27, 2016
  • by gimler
  • Repository
  • 2 Watchers
  • 13 Stars
  • 39,005 Installations
  • PHP
  • 12 Dependents
  • 1 Suggesters
  • 5 Forks
  • 3 Open issues
  • 5 Versions
  • 19 % Grown

The README.md

Build Status Dependency Status, (*1)

Guzzle Service Description Loader

A stand-alone Service Description loader for Guzzle 5.x., (*2)

Installation

If you are using Composer, and you should, just run the following command:, (*3)

``` sh composer require "gimler/guzzle-description-loader", (*4)


## Supported File Formats * Yaml * Php * Json ## Usage ``` 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);

Sample

json { "operations": { "certificates.list": { "httpMethod": "GET", "uri": "certificates", "description": "Lists and returns basic information about all of the management certificates associated with the specified subscription.", "responseModel": "CertificateList" } }, "models": { "CertificateList": { "type": "array", "name": "certificates", "sentAs": "SubscriptionCertificate", "location": "xml", "items": { "type": "object" } } }, "imports": [ "description_import.json" ] }, (*5)

The Versions

27/01 2016

dev-master

9999999-dev

Load guzzle service description from various file formats

  Sources   Download

MIT

The Requires

 

27/01 2016

v0.0.4

0.0.4.0

Load guzzle service description from various file formats

  Sources   Download

MIT

The Requires

 

15/12 2015

v0.0.3

0.0.3.0

Load guzzle service description from various file formats

  Sources   Download

MIT

The Requires

 

15/12 2015

v0.0.2

0.0.2.0

Load guzzle service description from various file formats

  Sources   Download

MIT

The Requires

 

10/09 2015

v0.0.1

0.0.1.0

Load guzzle service description from various file formats

  Sources   Download

MIT

The Requires