ownego/laravel-shopify-currency
Introduction
This package created for convert between 2 currencies by using currencies.js file provided by Shopify.
Installation
-
Install package
composer require ownego/laravel-shopify-currency -
Optional: add the service provider
'providers' => [ // ... Ownego\LaravelShopifyCurrency\LaravelShopifyCurrencyServiceProvider::class, ], -
Optional: publish config
php artisan vendor:publish --provider=Ownego\LaravelShopifyCurrency\LaravelShopifyCurrencyServiceProvider -
Optional: add facade
'alias' => [ // ... 'ShopifyCurrency' => Ownego\LaravelShopifyCurrency\Facades\ShopifyCurrency::class, ],
Usage
- Convert
use Ownego\LaravelShopifyCurrency\Facades\ShopifyCurrency; $result = ShopifyCurrency::convert(100, 'eur', 'usd'); - Get rate
use Ownego\LaravelShopifyCurrency\Facades\ShopifyCurrency; $result = ShopifyCurrency::rate('eur', 'usd');
Command
If you want to manually update currencies from cache, then run:
php artisan shopify-currency:cache
Related Packages
linkthrow/ffmpeg
A laravel audio and video conversion, thumbnail generator and metadata editor pa...
40,762
29
anam/phantommagick
PhantomMagick provides a simple API to ease the process of converting HTML to PD...
470,344
160
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 1.0.0 | >=5.5.1 | >=5.1 | MIT | |
| 0.5 | >=5.5.1 | >=5.1 | MIT | |
| 0.4 | >=5.5.1 | >=5.1 | MIT | |
| 0.3 | >=5.5.1 | >=5.1 | MIT | |
| 0.2 | >=5.5.1 | >=5.1 | MIT | |
| 0.1 | >=5.5.1 | >=5.1 | MIT |