PHP Classes

File: src/Helpers.php

Recommend this page to a friend!
  Classes of Moamen Eltouny   Multiple Currency Laravel Service   src/Helpers.php   Download  
File: src/Helpers.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Multiple Currency Laravel Service
Manage product prices in multiple currencies
Author: By
Last change:
Date: 4 years ago
Size: 208 bytes
 

Contents

Class file image Download
<?php

use RaggiTech\Laravel\Currency\Currency;

function
currenciesList()
{
   
$data = [];
    foreach (
Currency::list() as $code => $info) {
       
$data[$code] = $info['name'];
    }
    return
$data;
}