PHP code example of ownego / laravel-shopify-currency

1. Go to this page and download the library: Download ownego/laravel-shopify-currency library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ownego / laravel-shopify-currency example snippets


   'providers' => [
      // ...
      Ownego\LaravelShopifyCurrency\LaravelShopifyCurrencyServiceProvider::class,
   ],
   

   'alias' => [
      // ...
      'ShopifyCurrency' => Ownego\LaravelShopifyCurrency\Facades\ShopifyCurrency::class,
   ],
   

   use Ownego\LaravelShopifyCurrency\Facades\ShopifyCurrency;

   $result = ShopifyCurrency::convert(100, 'eur', 'usd');
   

   use Ownego\LaravelShopifyCurrency\Facades\ShopifyCurrency;

   $result = ShopifyCurrency::rate('eur', 'usd');
   

   php artisan vendor:publish --provider=Ownego\LaravelShopifyCurrency\LaravelShopifyCurrencyServiceProvider
   

php artisan shopify-currency:cache