2017 © Pedro Peláez
 

library php-vat-helper

Handle simple VAT calculations.

image

rackbeat/php-vat-helper

Handle simple VAT calculations.

  • Saturday, June 23, 2018
  • by lasserafn
  • Repository
  • 2 Watchers
  • 1 Stars
  • 68 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

, (*1)

No more ugly math in your business logic. , (*2)

Build Status Coverage Total Downloads Latest Stable Version License , (*3)

Convert numbers to include or exclude VAT.

Installation

You just require using composer and you're good to go!, (*4)

composer require rackbeat/php-vat-helper

Usage

Rackbeat\VAT::include($amountExclVat = 100.0, 25); // 125.0
Rackbeat\VAT::exclude($amountInclVat = 100.0, 25); // 80.0
Rackbeat\VAT::amount($amountInclVat = 100.0, 25); // 25.0
Rackbeat\VAT::percentage($amountInclVat = 100.0, $amountExclVat = 80.0); // 0.25

Plans

  • Better documentation
  • Per-country/region defined vat zones

Requirements

  • PHP >= 7.1

The Versions

23/06 2018

dev-master

9999999-dev

Handle simple VAT calculations.

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

by Rackbeat

accounting invoice vat calculate mva moms

22/06 2018

1.0

1.0.0.0

Handle simple VAT calculations.

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

by Rackbeat

accounting invoice vat calculate mva moms