php-extended / php-api-com-duckduckgo-spice-object
An implementation of the php-extended/php-api-com-duckduckgo-spice-interface library
4.0.0
2022-05-31 08:55 UTC
Requires
Requires (Dev)
This package is auto-updated.
Last update: 2022-07-31 00:21:35 UTC
README
An implementation of the php-extended/php-api-com-duckduckgo-spice-interface library.
Installation
The installation of this library is made via composer.
Download composer.phar
from their website.
Then add to your composer.json :
"require": {
...
"php-extended/php-api-com-duckduckgo-spice-object": "^3",
...
}
Then run php composer.phar update
to install this library.
The autoloading of all classes of this library is made through composer's autoloader.
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).