PHP code example of pinoox / numera-laravel
1. Go to this page and download the library: Download pinoox/numera-laravel 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/ */
pinoox / numera-laravel example snippets
return [
'default_locale' => 'en',
'fallback_locale' => 'en',
];
use Pinoox\Numera\Laravel\Facades\Numera;
echo Numera::n2w(2024);
echo Numera::toYear(2024);
echo Numera::toCurrency(1500, 'USD');
Numera::setLocale('fa');
echo Numera::n2w('۱۲۳۴');
/** @var \Pino\Numera $numera */
$numera = app('numera');
bash
php artisan vendor:publish --tag=numera-config