PHP code example of oseias / extenso

1. Go to this page and download the library: Download oseias/extenso 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/ */

    

oseias / extenso example snippets


	
	use Oseias\Extenso;
	$extenso = new Extenso;
	try {
		$extenso->setValue('123,12');
		$extenso->setCurrency('BRL');
		$resExtenso = $extenso->getInFull($extenso);
		echo '$resExtenso';
	} catch (\Throwable $e) {
		echo $e->getMessage();
		echo $e->getCode();
	}