PHP code example of ppluigui / numberstoletters
1. Go to this page and download the library: Download ppluigui/numberstoletters 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/ */
ppluigui / numberstoletters example snippets
composer
'ppLuiGui\Numbertoletter\NumbertoletterServiceProvider',
'Numbertoletter' => 'ppLuiGui\Numbertoletter\Facades\NumbertoletterFacade',
$num = "10008000.00";
$letras = Numbertoletter::convert($num);
var_dump($letras); // string 'Doce mil pesos 12/100 M.N.' (length=26)