PHPackages                             webforge/accounting - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. webforge/accounting

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

webforge/accounting
===================

A small library for some basics for invoices

1.0.0(12y ago)322[2 issues](https://github.com/webforge-labs/webforge-accounting/issues)MITPHP

Since Nov 18Pushed 12y ago1 watchersCompare

[ Source](https://github.com/webforge-labs/webforge-accounting)[ Packagist](https://packagist.org/packages/webforge/accounting)[ RSS](/packages/webforge-accounting/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependencies (5)Versions (2)Used By (0)

Accounting
==========

[](#accounting)

[![Build Status](https://camo.githubusercontent.com/b997a54683336cc6794f96136bbdf1922fbd874cb27a77ad2cb0c7b47c945edb/68747470733a2f2f7472617669732d63692e6f72672f776562666f7267652d6c6162732f776562666f7267652d6163636f756e74696e672e706e67)](https://travis-ci.org/webforge-labs/webforge-accounting)
[![Coverage Status](https://camo.githubusercontent.com/444453e7e44a317d04c9c56e53e1de0c80cb7571c7751de30148eab18cfe6b60/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f776562666f7267652d6c6162732f776562666f7267652d6163636f756e74696e672f62616467652e706e673f6272616e63683d6d6173746572)](https://coveralls.io/r/webforge-labs/webforge-accounting?branch=master)
[![Latest Stable Version](https://camo.githubusercontent.com/9aed41da42dac4be37ca18f27dc76b92587b8b5b92cab3826a65e377e4094322/68747470733a2f2f706f7365722e707567782e6f72672f776562666f7267652f6163636f756e74696e672f76657273696f6e2e706e67)](https://packagist.org/packages/webforge/accounting)

A small library for some basics for invoices

Prices
------

[](#prices)

The `Webforge\Accounting\Price` class will help you with some calculation basics:

```
$price = new Price(4284, Price::GROSS, 0.19);

$this->assertEquals(4284, $price->getGross());
$this->assertEquals(3600, $price->getNet());
$this->assertEquals(0.19, $price->getTax());
$this->assertEquals(684, $price->getTaxValue()); // = 4284-3600

// or construct it the other way round:
$price = new Price(3600, Price::NET, 0.19);
$this->assertEquals(4284, $price->getGross());
$this->assertEquals(3600, $price->getNet());
$this->assertEquals(0.19, $price->getTax());
$this->assertEquals(684, $price->getTaxValue()); // = 4284-3600
```

You can provide prices without taxes:

```
$price = new Price(4284, Price::GROSS, Price::NO_TAXES);

$this->assertEquals(4284, $price->getGross());
$this->assertEquals(4284, $price->getNet());
$this->assertEquals(0, $price->getTax());
$this->assertEquals(0, $price->getTaxValue());
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance7

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4563d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bc659f3d1fe2fd98e62c9ac16965126a8b2c7f3fe7fad3b7c6c5f548c46e0c27?d=identicon)[pscheit](/maintainers/pscheit)

---

Top Contributors

[![pscheit](https://avatars.githubusercontent.com/u/488189?v=4)](https://github.com/pscheit "pscheit (12 commits)")

### Embed Badge

![Health badge](/badges/webforge-accounting/health.svg)

```
[![Health](https://phpackages.com/badges/webforge-accounting/health.svg)](https://phpackages.com/packages/webforge-accounting)
```

###  Alternatives

[j0k3r/graby-site-config

Graby site config files

23365.8k3](/packages/j0k3r-graby-site-config)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
