php-extended/php-api-com-duckduckgo-spice-object

An implementation of the php-extended/php-api-com-duckduckgo-spice-interface library


README

An implementation of the php-extended/php-api-com-duckduckgo-spice-interface library.

coverage build status

Installation

The installation of this library is made via composer and the autoloading of all classes of this library is made through their autoloader.

  • Download composer.phar from their website.
  • Then run the following command to install this library as dependency :
  • php composer.phar php-extended/php-api-com-duckduckgo-spice-object ^7

Basic Usage

This library may be used the following way :


use PhpExtended\Duckduckgo\DuckduckgoComSpiceApiEndpoint;

/* @var $client         \Psr\Http\Client\ClientInterface */

$endpoint = new DuckduckgoComSpiceApiEndpoint($client);

$rates = $endpoint->getRateInformation('EUR', 'USD');	// returns DuckduckgoComSpiceApiResponse

License

MIT (See license file).