Downloads
Stars
Version
This package provides currencies with courses For Laravel
composer require artarts36/laravel-ru-currency
ArtARTs36\LaravelRuCurrency\Provider\CurrencyProvider::class
into your providers in app.phpphp artisan migrate
php artisan db:seed --class="\ArtARTs36\LaravelRuCurrency\Database\Seeders\RuCurrencySeeder"
php artisan ru-currency:fetch-courses
If you see the error Target [Psr\Http\Client\ClientInterface] is not instantiable while building [ArtARTs36\LaravelRuCurrency\Operation\Course\Fetcher\CourseFetcher, ArtARTs36\CbrCourseFinder\Finder]
, then add the following line to your provider:
$this->app->bind(ClientInterface::class, \GuzzleHttp\Client::class);
Command | Description |
---|---|
ru-currency:fetch-courses | Fetch actual courses |
ru-currency:fetch-courses --date=2020-02-03 | Fetch actual courses at date |
Command | Description |
---|---|
composer lint | Check code on PSR (PHP CS Sniffer) |
composer stat-analyse | Run stat-analyse (PHPStan) |
composer test | Run tests (PHPUnit) |