PHPackages                             rbech/economic-api - 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. rbech/economic-api

ActiveLibrary[API Development](/categories/api)

rbech/economic-api
==================

Lightweight wrapper for the E-conomic REST API heavily inspired by drewm/mailchimp-api

1.1.0(8y ago)19901MITPHPPHP &gt;=5.4

Since May 26Pushed 8y ago1 watchersCompare

[ Source](https://github.com/RBech/economic-api)[ Packagist](https://packagist.org/packages/rbech/economic-api)[ RSS](/packages/rbech-economic-api/feed)WikiDiscussions master Synced today

READMEChangelog (2)DependenciesVersions (3)Used By (0)

E-conomic API
=============

[](#e-conomic-api)

Lightweight wrapper for the E-conomic REST API. Heavily inspired by the excellent [drewm/mailchimp-api](https://github.com/drewm/mailchimp-api) wrapper.

Installation
------------

[](#installation)

You can install economic-api using Composer:

```
composer require rbech/economic-api

```

Examples
--------

[](#examples)

Get a list of customers

```
use \RBech\Economic\Economic;

$economic = new Economic('your-app-secret', 'your-grant-token');
```

Then, get a list of all customers (by issuing `get` request to the `customers` endpoint)

```
$customers = $economic->get('customers');

print_r($customers);
```

Createa customer in e-conomic

```
$result = $economic->post('customers', [
    'address' => 'My fancy address',
    'city' => 'Fancyville',
    'zip' => '9999',
    'customernumber' => 900000000,
    'email' => 'test@example.com',
    'name' => 'John Doe',
    'telephoneAndFaxNumber' => '11223344',
    'currency' => 'DKK',
    'customerGroup' => [
        'customerGroupNumber' => 1,
    ],
    'vatZone' => [
        'vatZoneNumber' => 1,
    ],
    'paymentTerms' => [
        'paymentTermsNumber' => 1
    ]
]);
```

Test for a successful request with the `success()` method:

```
if ($economic->success()) {
    print_r($result);
} else {
    //getLastError will return a simple string
    echo $economic->getLastError();

    //getErrors returns an array of errors returned
    print_r($economic->getErrors());
}
```

Contributing
------------

[](#contributing)

Improvements and bug fixes are more than welcome, if come up with an improvement, please create an issue to discuss it before making a pull request.

If you find a bug please explain the bug throughly and the steps needed to reproduce it.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.7% 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 ~331 days

Total

2

Last Release

2992d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4bb71d8ad63b6bfbfba2e52af3bb60563263947513fce73dc8cfaf77f2f1e696?d=identicon)[RBech](/maintainers/RBech)

---

Top Contributors

[![RBech](https://avatars.githubusercontent.com/u/2500126?v=4)](https://github.com/RBech "RBech (6 commits)")[![DerJacques](https://avatars.githubusercontent.com/u/3896442?v=4)](https://github.com/DerJacques "DerJacques (1 commits)")

### Embed Badge

![Health badge](/badges/rbech-economic-api/health.svg)

```
[![Health](https://phpackages.com/badges/rbech-economic-api/health.svg)](https://phpackages.com/packages/rbech-economic-api)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k13](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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