PHPackages                             tobiasfp/economics-php - 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. [API Development](/categories/api)
4. /
5. tobiasfp/economics-php

ActiveLibrary[API Development](/categories/api)

tobiasfp/economics-php
======================

A wrapper for the E-conomics api

0.7.4(4y ago)0172MITPHPPHP &gt;=7.4

Since Jan 11Pushed 4y ago1 watchersCompare

[ Source](https://github.com/TobiasFP/economic-php)[ Packagist](https://packagist.org/packages/tobiasfp/economics-php)[ RSS](/packages/tobiasfp-economics-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (3)Versions (6)Used By (0)

1. economic-php
===============

[](#1-economic-php)

1.1. What is it
---------------

[](#11-what-is-it)

A basic wrapper around the Economics api, with input &amp; output validation/verification.

1.2. How to install/use
-----------------------

[](#12-how-to-installuse)

Simply add it via composer:

```
composer require tobiasfp/economics-php

```

Then use:

```
$econ = new Economics\Economics("demo", "demo");
$econ->createCustomer("DKK", $econ->customerGroup(1), "test" $econ->paymentTerms(1), $econ->vatZone(1));

```

For better documentation on how to use it, see the economicsTest.php file. Everything has at least one test, so it should give you a good overview.

1.3. Why no docblocks?
----------------------

[](#13-why-no-docblocks)

I hate docblocks.! If a programming language does not support something, it should be fixed in the language, not by addition of features outside the scope of the language. In my opinion, PHP8 completely removed the need for docblocks. Also, docblocks makes PHP less readable.! TypeHint everything instead.!

If you want to add docblocks to this project for your own use, I will allow it, since we are all different, however, I will not maintain them.!

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 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

Every ~4 days

Total

5

Last Release

1562d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1e9708411782167c6bf4d1971fe4e861232e3af89da73b49917294d8140ada0f?d=identicon)[TobiasFP](/maintainers/TobiasFP)

---

Top Contributors

[![TobiasFP](https://avatars.githubusercontent.com/u/8199606?v=4)](https://github.com/TobiasFP "TobiasFP (25 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tobiasfp-economics-php/health.svg)

```
[![Health](https://phpackages.com/badges/tobiasfp-economics-php/health.svg)](https://phpackages.com/packages/tobiasfp-economics-php)
```

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.2M720](/packages/statamic-cms)[ashallendesign/laravel-exchange-rates

A wrapper package for interacting with the exchangeratesapi.io API.

485677.8k](/packages/ashallendesign-laravel-exchange-rates)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[vluzrmos/slack-api

Wrapper for Slack.com WEB API.

102589.1k3](/packages/vluzrmos-slack-api)[smodav/mpesa

M-Pesa API implementation

16363.7k1](/packages/smodav-mpesa)[codebar-ag/laravel-docuware

DocuWare integration with Laravel

1221.1k](/packages/codebar-ag-laravel-docuware)

PHPackages © 2026

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