deso-smart/laravel-deso-client

v0.2.1 2022-09-16 17:07 UTC

This package is not auto-updated.

Last update: 2024-10-26 03:11:10 UTC


README

License Latest Stable Version Total Downloads

Installation

Require this package with composer.

composer require deso-smart/laravel-deso-client

Laravel >=5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.

Copy the package config to your local config with the publish command:

php artisan vendor:publish --provider="DesoSmart\DesoClient\DesoClientServiceProvider" --tag=config

Usage example

use DesoSmart\DesoClient\DesoClient;
// ...
public function handler(DesoClient $client)
{
    $payload = $client->getExchangeRate();

    dd($payload);
}
// ...