PHPackages                             econtract/compare - 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. econtract/compare

ActiveLibrary[API Development](/categories/api)

econtract/compare
=================

E-Contract BVBA comparison API package

3.1.0(3y ago)02.1k↓100%2proprietaryPHPPHP ^7.2|^8.0CI failing

Since Feb 24Pushed 3y ago6 watchersCompare

[ Source](https://github.com/econtract/compare)[ Packagist](https://packagist.org/packages/econtract/compare)[ Docs](http://aanbieders.be)[ RSS](/packages/econtract-compare/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (6)Versions (12)Used By (0)

E-Contract BVBA - Compare package
=================================

[](#e-contract-bvba---compare-package)

This package offers the integration of the Aanbieders.be comparison collection API. This API can be used by partners and affiliates of Aanbieders to leverage information from the Aanbieders comparison calculation engine on their own websites.

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

[](#installation)

Pull this package in through Composer:

```
    {
        "require": {
            "econtract/compare": "3.*"
        }
    }
```

Next, you will need to add several values to your `.env` file:

```

    API_staging=false                       // Is this a staging server?
    API_host=your_secret_api_key            // API host
    API_key=your_public_api_key             // Public API key
    API_secret=your_secret_api_key          // Private API key

```

In order to use the API (and thus this package), an API key is required. If you are in need of such a key, please get in touch with Aanbieders.be via [their website](https://www.aanbieders.be/contact).

### Laravel installation

[](#laravel-installation)

Add the service provider to your `config/app.php` file:

```
    'providers'             => array(

        //...
        \Econtract\Compare\CompareServiceProvider::class,

    )
```

Add the API as an alias to your `config/app.php` file

```
    'facades'               => array(

        //...
        'Api'                   => \Econtract\Compare\Facades\Compare::class,

    ),
```

Usage
-----

[](#usage)

### Laravel usage

[](#laravel-usage)

You can access the API using the alias you have selected in your `config/app.php` file:

```

    $products = Api::getProducts(
        array(
            'sg'        => 'consumer',
            'cat'       => 'internet',
            'lang'      => 'nl',
        )
    );

    $suppliers = Api::getSuppliers(
        array(
            'sg'        => 'consumer',
            'cat'       => 'internet',
            'lang'      => 'nl',
        )
    );

    $comparisons = Api::createComparison(
        array(
            'sg'        => 'consumer',
            'cat'       => 'gas',
            'lang'      => 'nl',
            'u'         => '4000',
            'ut'        => 'kwh',
            'zip'       => '3540',
            't'         => 'no',
            'd'         => '0',
        )
    );
```

For information regarding all possible parameters and their properties, we kindly refer you to [the API documentation](http://apihelp.econtract.be/).

### Non-laravel usage

[](#non-laravel-usage)

```
    include('vendor/autoload.php');

    use Econtract/Compare/CompareService;

    $dotenv = new Dotenv\Dotenv(__DIR__);
    $dotenv->load();

    $compareService = new CompareService();
    $compareService->getProducts(
        array(
            'sg'        => 'consumer',
            'cat'       => 'internet',
            'lang'      => 'nl',
        )
    );
```

License
-------

[](#license)

This package is proprietary software and may not be copied or redistributed without explicit permission.

Contact
-------

[](#contact)

Charles Dekkers (owner)

- Email:
- Telephone: +32 497 50 49 08

Jan Oris (developer)

- Email:
- Telephone: +32 496 94 20 57

###  Health Score

36

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity75

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

Every ~226 days

Recently: every ~550 days

Total

11

Last Release

1417d ago

Major Versions

1.0.3 → 2.0.02016-03-02

2.2.0 → 3.0.02022-04-01

PHP version history (2 changes)1.0.0PHP &gt;=5.6.0

3.0.0PHP ^7.2|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/527820426040478741f7ce2c915bccfb7bf1b7f094ae341f0aa71fff3b685532?d=identicon)[econtract](/maintainers/econtract)

---

Top Contributors

[![elimentz](https://avatars.githubusercontent.com/u/1410811?v=4)](https://github.com/elimentz "elimentz (17 commits)")

---

Tags

apiaanbiedersE-Contract

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/econtract-compare/health.svg)

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

###  Alternatives

[showdoc/showdoc

ShowDoc is a tool greatly applicable for an IT team to share documents online

12.8k7.0k](/packages/showdoc-showdoc)[ovac/idoc

Generate beautiful API documentation from your Laravel application

184476.0k2](/packages/ovac-idoc)

PHPackages © 2026

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