Giter Site home page Giter Site logo

arkadiusjonczek / tax-de Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 29 KB

💸 Tax library for german tax calculation written in PHP.

License: GNU Lesser General Public License v3.0

PHP 100.00%
php library tax taxes german germany company business business-intelligence business-analytics

tax-de's Introduction

tax-de

Tax library for german tax calculation written in PHP.

Overview

  • Income Tax (Einkommensteuer)
  • Trade Tax / Business Tax (Gewerbesteuer)
  • Value Added Tax (Umsatzsteuer)
  • Solidarity Tax (Solidaritätszuschlag)
  • Rate Of Assessment / Trade Tax Factor (Hebesatz)
  • Corporation Tax (Körperschaftsteuer)
  • Cash Accounting (Einahmen-Überschuss-Rechnung)

Installation

composer install jonczek/tax-de

Usage

Value added tax calculation example

Add tax entries to a repository:

$repository = new GenericRepository();
$repository->add(new ValueAddedTaxEntry(119));
$repository->add(new ValueAddedTaxEntry(238));
$repository->add(new ValueAddedTaxEntry(107, ValueAddedTaxRate::REDUCED_RATE));
$repository->add(new ValueAddedTaxEntry(214, ValueAddedTaxRate::REDUCED_RATE));
$repository->add(new ValueAddedTaxEntry(100, ValueAddedTaxRate::REDUCED_RATE, true));
$repository->add(new ValueAddedTaxEntry(200, ValueAddedTaxRate::FULL_RATE, true));

Calculate value added tax using the repository:

$calculator = new ValueAddedTaxCalculator();
$result = $calculator->calculate($repository);

Result:

Jonczek\Tax\Model\ValueAddedTaxCalculationResult Object
(
    [net:protected] => 900
    [gross:protected] => 1023
    [tax:protected] => 123
)

tax-de's People

Contributors

arkadiusjonczek avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.