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

ActiveLibrary[API Development](/categories/api)

ramlev/economic
===============

Wrapper to call economic API.

v0.6-alpha(5y ago)017MITPHPPHP &gt;=7.1

Since Dec 2Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ramlev/Economic)[ Packagist](https://packagist.org/packages/ramlev/economic)[ RSS](/packages/ramlev-economic/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (1)Versions (7)Used By (0)

E-conomicPHPWrapper
===================

[](#e-conomicphpwrapper)

PHP Wrapper for E-conomic REST API

This E-conomic PHP Wrapper supports following options:

1. Customers - Create, Show, Update, Delete &amp; Filter by filterable options.
2. Currency - Get all &amp; Get one by currency code fx. "DKK".
3. Units - Create, Show, Update, Delete.
4. Products - Create, Show, Update, Delete.
5. Payment types - Get all &amp; Get one by ID.
6. Layouts - Get all &amp; Get one by ID.
7. Invoice(draft) - Create with empty invoicelines, create with invoicelines where products are assigned &amp; You can book invoice.

1. Getting Started
------------------

[](#1-getting-started)

In order to work with this E-conomic wrapper you'll need to provide a AppSecretToken &amp; AgreementGrantToken key - look at the following code to understand how you should begin.

Be sure to set the correct namespaces.

```
$economic = new Economic(
    'AppSecretToken key',
    'AgreementGrantToken key'
);

```

### 2. Customers

[](#2-customers)

There are two different customer objects, they are listed below.

- **Customer**
- **CustomerCollection**

    #### 2.1. Customer

    [](#21-customer)

    **Read** - You can retrieve customers one by one with this object, aswell this object is the one you use when you wan't to create, update &amp; delete a specific customer.

    ```
    $customer = $economic
                ->customer()
                ->get('ID'); // This will give you all information about this customer.

    ```

    **Create** - If you wan't to create a customer there are five properties that are required before you can do that, they are *name, currency, paymentTerms, customerGroup, vatZone*.

    ```
    $customer = $economic
                ->customer()
                ->setCurrency('DKK') // You can retrive one list with all available currencies.
                ->setName('Test Company')
                ->setPaymentTermsNumber(1)
                ->setCustomerGroupNumber(1)
                ->setVatZoneNumber(1)
                ->create();
                ->getCustomerNumber(); After you have created this customer you can retrieve its ID by doing this.

    ```

    **Update** - To update a customer the process is almost identical, however you are not required to provide any properties, you can simply choose to update any property.

    ```
    $customer = $economic
                ->customer()
                ->setName('Test Company')
                ->setCustomerGroupNumber(2)
                ->setVatZoneNumber(1)
                ->update(); // Updates customer.

    ```

    **Delete** - You can delete any customer, with a simple method.

    ```
    $customer = $economic
                ->customer()
                ->get('ID')
                ->delete(); // Deletes customer.

    ```

    #### 2.2. CustomerCollection

    [](#22-customercollection)

    **Read** - This will give you an entire list of all customers, another option there is, is that you can filter on customer names.

    ```
    $customer = $economic
                ->customerCollection()
                ->all();

    ```

    **Filter** - Filter on filterable properties, incase something match it will return object with information about the given customer, make sure to read through the documentation in order to see which properties you can filter on, I do also recommend read through the Filter documentation to see which operators they support.

    Filterable properties:

    Filter operators:

    ```
    $customer = $economic
                ->customerCollection()
                ->all(new Filter(['name'], ['$like:'], ['Mikkel'])); // Bear in mind you can filter on more properties, you simply add                                                                           them to the array.

    ```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 62.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 ~252 days

Recently: every ~315 days

Total

6

Last Release

1827d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/12f9b4f96bea66a808f1e1c3eb5fcd95c3211c13cc69e899c3ad36f8f607404e?d=identicon)[ramlev](/maintainers/ramlev)

---

Top Contributors

[![ramlev](https://avatars.githubusercontent.com/u/74152?v=4)](https://github.com/ramlev "ramlev (5 commits)")[![mbseasy1997](https://avatars.githubusercontent.com/u/31537872?v=4)](https://github.com/mbseasy1997 "mbseasy1997 (3 commits)")

### Embed Badge

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

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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