PHP code example of cancio-labs / cep-value-object
1. Go to this page and download the library: Download cancio-labs/cep-value-object 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/ */
cancio-labs / cep-value-object example snippets
use CancioLabs\ValueObject\Cep\Cep;
$cep = new Cep('20710-305'); // or '20710305'
echo $cep; // outputs 22710305
echo $cep->getRaw(); // outputs 22710305
echo $cep->getFormatted(); // outputs 22710-305