PHP code example of yurizoom / moonshine-currency
1. Go to this page and download the library: Download yurizoom/moonshine-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/ */
yurizoom / moonshine-currency example snippets
[
'currency' => [
// Код валюты по-умолчанию (ISO 4217)
'default' => 'RUB',
// Доступные коды валют. Используются, если код валюты хранится в БД
'currencies' => [
'RUB',
'USD',
'EUR',
],
]
]
use YuriZoom\MoonShineCurrency\Fields\Currency;
Currency::make('Label');
use YuriZoom\MoonShineCurrency\Fields\Currency;
Currency::make('Label')->currency('column');