PHP code example of rogeriopradoj / box-calculator
1. Go to this page and download the library: Download rogeriopradoj/box-calculator 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/ */
rogeriopradoj / box-calculator example snippets
vendor/autoload_52.php if you are in PHP 5.2
// apf dv
$apf = '1234567';
$calculatorApf = new RogerioPradoJ_BoxCalculator_Apf();
$dvApf = $calculatorApf->dvApf($apf);
$empregado = 'C222222'
$calculatorEmpregado = new RogerioPradoJ_BoxCalculator_Empregado();
$dvMatricula = $calculatorEmpregado->dvMatricula($empregado);
$unidade = '1234'
$calculatorUnidade = new RogerioPradoJ_BoxCalculator_Unidade();
$dvCodigo = $calculatorUnidade->dvCodigo($unidade);