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

This package is not auto-updated.

Last update: 2024-11-09 16:16:54 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);

$unidade           = '1234'
$calculatorUnidade = new RogerioPradoJ_BoxCalculator_Unidade();
$dvCodigo          = $calculatorUnidade->dvCodigo($unidade);

Versioning

Semantic 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