rogeriopradoj / box-calculator
Série de cálculos usados na Box, some calculations done at Box
1.1.0
2014-02-11 03:48 UTC
Requires
- php: >5.2.6
Requires (Dev)
- phpunit/phpunit: ~3.7
Suggests
- xrstf/composer-php52: Allow composer's autoload to be used in PHP 5.2
This package is not auto-updated.
Last update: 2024-12-21 17:06:32 UTC
README
Série de cálculos usados na Box / some calculations done at Box
Install
# Install Composer # https://getcomposer.org/ # Add BoxCalculator composer require "rogeriopradoj/box-calculator=*"
Usage
After installing, you need to require Composer's autoloader:
<?php require 'vendor/autoload.php'; // or 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);
Versioning
Changelog
1.2.0 - 2016-03-04
- Unidade, código DV
1.1.0 - 2014-02-11
- Empregado, matrícula DV
- Fix tests in PHP 5.2
- Run tests in HHVM
1.0.0 - 2014-02-10
- Apf, DV
License
MIT