PHPackages                             lenius/economic-php-client - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. lenius/economic-php-client

ActiveLibrary[HTTP &amp; Networking](/categories/http)

lenius/economic-php-client
==========================

PHP-SDK to communicate with E-Conomic

v2.0.2(2mo ago)17132.6k↑53.1%72MITPHPPHP ^8.2CI passing

Since Jul 20Pushed 2mo ago3 watchersCompare

[ Source](https://github.com/Lenius/economic-php-client)[ Packagist](https://packagist.org/packages/lenius/economic-php-client)[ Docs](https://github.com/lenius/economic-php-client)[ RSS](/packages/lenius-economic-php-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (9)Versions (7)Used By (2)

E-conomic PHP REST CLIENT
=========================

[](#e-conomic-php-rest-client)

[![PHP Tests](https://github.com/Lenius/economic-php-client/actions/workflows/php.yml/badge.svg)](https://github.com/Lenius/economic-php-client/actions/workflows/php.yml) [![Code Coverage](https://camo.githubusercontent.com/5097bd792ba0d376a4216449bef1af6846531ae1acd88fecc78a4f1e8d67cefe/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4c656e6975732f65636f6e6f6d69632d7068702d636c69656e742f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Lenius/economic-php-client/?branch=master) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/aa9e5fd9e061f7fa39a77277b592dff364c2e2e4c80950828681d69627dde550/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4c656e6975732f65636f6e6f6d69632d7068702d636c69656e742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Lenius/economic-php-client/?branch=master) [![Latest Stable Version](https://camo.githubusercontent.com/4e3118fdbfb4f7e5870e3f1036fc99a162750e9d182e3697b3443a55d2364072/68747470733a2f2f706f7365722e707567782e6f72672f4c656e6975732f65636f6e6f6d69632d7068702d636c69656e742f762f737461626c65)](https://packagist.org/packages/Lenius/economic-php-client) [![Total Downloads](https://camo.githubusercontent.com/5f47193138f510e9d8ff523518a7fe1d62b824af38d08ed6c648aa1afe7a65c0/68747470733a2f2f706f7365722e707567782e6f72672f4c656e6975732f65636f6e6f6d69632d7068702d636c69656e742f646f776e6c6f616473)](https://packagist.org/packages/Lenius/economic-php-client) [![License](https://camo.githubusercontent.com/b72ec8e6b7a4489deedc9132cf4f5226eb752e279e7b0f1400b6a5cd568f1db1/68747470733a2f2f706f7365722e707567782e6f72672f4c656e6975732f65636f6e6f6d69632d7068702d636c69656e742f6c6963656e7365)](https://packagist.org/packages/Lenius/economic-php-client)

Install
-------

[](#install)

Via Composer

```
$ composer require lenius/economic-php-client
```

Documentation
-------------

[](#documentation)

Please see the [official e-conomic documentation](https://restdocs.e-conomic.com).

Access all debitors
-------------------

[](#access-all-debitors)

Call the Customers url /Customers

```
$appToken = 'demo';
$grant    = 'demo';

$client = new Lenius\Economic\RestClient($appToken, $grant);

$parms = ['pagesize' => 100];

$response = $client->request->get('customers', $parms);

$status = $response->httpStatus();

if ($status == 200) {
    // Successful request
    $data = $response->asArray();
    print_r($data);
}
```

Testing
-------

[](#testing)

Tests kræver PHP 8.2+ med Xdebug til code coverage. Den nemmeste måde er via Docker.

### Docker (anbefalet)

[](#docker-anbefalet)

Byg image:

```
docker build -t economic-php-test .
```

Kør alle checks (tests, PHPStan og Psalm):

```
docker run --rm economic-php-test
```

Kør med code coverage HTML-rapport:

```
docker run --rm -v "$(pwd)/build:/app/build" economic-php-test
```

Åbn `build/logs/phpunit-html/index.html` i en browser for at se rapporten.

Kør enkeltvis:

```
docker run --rm economic-php-test composer test
docker run --rm economic-php-test composer stan
docker run --rm economic-php-test composer psalm
```

### Lokalt

[](#lokalt)

Forudsætter PHP 8.2+, Composer og Xdebug installeret:

```
composer test   # PHPUnit med code coverage
composer stan   # PHPStan statisk analyse
composer psalm  # Psalm statisk analyse
composer check  # Alle ovenstående på én gang
```

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

[](#contributing)

All PR's are welcome, just throw me one, and i take a look at it :)

License
-------

[](#license)

This code is release under the MIT License, which means you can do pretty much whatever you wanna do with it. Take a look at the [LICENSE file](LICENSE) for more information.

Author
------

[](#author)

This packages is originally developed and maintained by [Carsten Jonstrup](https://twitter.com/cjonstrup).

###  Health Score

61

—

FairBetter than 99% of packages

Maintenance85

Actively maintained with recent releases

Popularity43

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 87.5% 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 ~877 days

Total

5

Last Release

77d ago

Major Versions

v1.0.1 → v2.0.02018-10-30

PHP version history (4 changes)v1.0.0PHP &gt;=5.3.3

v2.0.0PHP ~7.0

v2.0.1PHP &gt;=5.4.0

v2.0.2PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/8539c9af6113bdef769983294e463381bace6566ecc7c8daaa7dcfe1516c19de?d=identicon)[lenius](/maintainers/lenius)

---

Top Contributors

[![cjonstrup](https://avatars.githubusercontent.com/u/576584?v=4)](https://github.com/cjonstrup "cjonstrup (91 commits)")[![noir04](https://avatars.githubusercontent.com/u/5826699?v=4)](https://github.com/noir04 "noir04 (8 commits)")[![nea-tingstroem-dk](https://avatars.githubusercontent.com/u/55084026?v=4)](https://github.com/nea-tingstroem-dk "nea-tingstroem-dk (4 commits)")[![wsd-msp](https://avatars.githubusercontent.com/u/22809183?v=4)](https://github.com/wsd-msp "wsd-msp (1 commits)")

---

Tags

resteconomice-conomic

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/lenius-economic-php-client/health.svg)

```
[![Health](https://phpackages.com/badges/lenius-economic-php-client/health.svg)](https://phpackages.com/packages/lenius-economic-php-client)
```

###  Alternatives

[zircote/swagger-php

Generate interactive documentation for your RESTful API using PHP attributes (preferred) or PHPDoc annotations

5.3k132.9M468](/packages/zircote-swagger-php)[psr/link

Common interfaces for HTTP links

2.5k144.1M68](/packages/psr-link)[league/fractal

Handle the output of complex data structures ready for API output.

3.5k64.1M476](/packages/league-fractal)[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[lexik/jwt-authentication-bundle

This bundle provides JWT authentication for your Symfony REST API

2.6k58.7M210](/packages/lexik-jwt-authentication-bundle)[nelmio/api-doc-bundle

Generates documentation for your REST API from attributes

2.3k63.6M233](/packages/nelmio-api-doc-bundle)

PHPackages © 2026

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