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

README

Build Status

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);

Versioning

Semantic versioning.

Changelog

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