PHPackages                             dividebv/phpdivideiq - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. dividebv/phpdivideiq

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

dividebv/phpdivideiq
====================

PHP connector library for Divide IQ

v0.6.0(7y ago)13.8k31GPL-2.0PHPPHP &gt;=5.4.0

Since Aug 7Pushed 5y ago1 watchersCompare

[ Source](https://github.com/DivideBV/PHPDivideIQ)[ Packagist](https://packagist.org/packages/dividebv/phpdivideiq)[ Docs](https://github.com/DivideBV/PHPDivideIQ)[ RSS](/packages/dividebv-phpdivideiq/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (7)Used By (1)

PHPDivideIQ
===========

[](#phpdivideiq)

[![Latest Stable Version](https://camo.githubusercontent.com/b3a62d840995cb47d6325c3e987e47d2b6c0e6242cdd11cbc146c5b81823b9f2/68747470733a2f2f706f7365722e707567782e6f72672f64697669646562762f70687064697669646569712f762f737461626c65)](https://packagist.org/packages/dividebv/phpdivideiq)[![Total Downloads](https://camo.githubusercontent.com/fa1951f428dee78ec84b4cfb3a481630bc58001789be98d9c1582180af89e365/68747470733a2f2f706f7365722e707567782e6f72672f64697669646562762f70687064697669646569712f646f776e6c6f616473)](https://packagist.org/packages/dividebv/phpdivideiq)[![Latest Unstable Version](https://camo.githubusercontent.com/13de7b121dc80a494e1cca9d30e686cf813e8c90b557483c120b2f0bc68b63a3/68747470733a2f2f706f7365722e707567782e6f72672f64697669646562762f70687064697669646569712f762f756e737461626c65)](https://packagist.org/packages/dividebv/phpdivideiq)[![License](https://camo.githubusercontent.com/69b7cebeee54a70065f0c76708949f4151aa1d4af6067083ce9c874ab6098b0f/68747470733a2f2f706f7365722e707567782e6f72672f64697669646562762f70687064697669646569712f6c6963656e7365)](https://packagist.org/packages/dividebv/phpdivideiq)

A PHP library to connect to [Divide.IQ](http://www.divide.nl).

Installation
============

[](#installation)

Composer
--------

[](#composer)

`composer require dividebv/phpdivideiq`

Example Usage
=============

[](#example-usage)

```
use DivideBV\PHPDivideIQ\DivideIQ;

$username = 'user';          // You will receive this from the provider.
$password = 'password';      // You will receive this from the provider.
$environment = 'production'; // May also be `staging` or an arbitrary URL.

// A file storing the connection status.
$file = new SplFileObject('persist.iq.txt', 'c+');

if ($file->getSize()) {
    // The file already exists, instantiate DivideIQ using the file.
    $divideIq = DivideIQ::fromFile($file);
} else {
    // File doesn't exist. Instantiate DivideIQ using the constructor.
    $divideIq = new DivideIQ($username, $password, $environment);
    $divideIq->setFile($file);
}

// Access a resource provided by this Divide.IQ server.
$result = $divideIq->request('stockbase_stock');
```

Debugging
=========

[](#debugging)

If you implemented this library like the example above, then the first step in debugging would be to remove the `persist.iq.txt` file. It's a JSON file with connection credentials. Removing it will force the library to start afresh by logging in with your username and password.

Note: this only helps when the connection previously worked.

OrderRequest
============

[](#orderrequest)

```
$this->result = $this->divideIq->request('stockbase_orderrequest', $this->payload, 'POST');

$this->payload = array(
                'OrderDelivery' => (object) $orderDelivery,
                'OrderHeader' => (object) $orderHeader,
                'OrderLines' => $orderLines,
            );
```

Example
=======

[](#example)

```
$this->payload = {
       "OrderDelivery": {
         "Person": {
         "Gender": "Male",
         "Initials": "J",
         "FirstName": "John",
         "SurnamePrefix": "",
         "Surname": "Doe",
         "Company": "Stockbase",
         "EmailAddress": ""
       },
       "Address": {
         "Street": "Koraalrood",
         "StreetNumber": "33",
         "StreetNumberAddition": "A",
         "ZipCode": "2718SB",
         "City": "Zoetermeer",
         "CountryCode": "NLD"
       }
     },
     "OrderHeader": {
       "OrderNumber": "1574425588",
       "TimeStamp": "2019-11-15T15:56:36.1187035Z"
     },
     "OrderLines":
     [{
      "Number": "1",
      "EAN": "8700000000001",
      "Amount": "1",
      "Price": "1.95"
     },
     {
      "Number": "2",
      "EAN": "8700000000002",
      "Amount": "1",
      "Price": "2.95"
    },
    {
     "Number": "3",
     "EAN": "8700000000003",
     "Amount": "1",
     "Price": "3.95"
    }]
  }
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 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 ~225 days

Recently: every ~280 days

Total

6

Last Release

2810d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9a98c556f433d1f4e611fc9c910cf4e1a32dda0211e7c1255100ddf227d3caa5?d=identicon)[ameenross](/maintainers/ameenross)

---

Top Contributors

[![ameenross](https://avatars.githubusercontent.com/u/859737?v=4)](https://github.com/ameenross "ameenross (42 commits)")[![MarkvanLeeuwenDivide](https://avatars.githubusercontent.com/u/42808051?v=4)](https://github.com/MarkvanLeeuwenDivide "MarkvanLeeuwenDivide (4 commits)")[![neris](https://avatars.githubusercontent.com/u/49455755?v=4)](https://github.com/neris "neris (1 commits)")[![niektenhoopen](https://avatars.githubusercontent.com/u/3450011?v=4)](https://github.com/niektenhoopen "niektenhoopen (1 commits)")

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/dividebv-phpdivideiq/health.svg)

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

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[dhlparcel/magento2-plugin

DHL Parcel plugin for Magento 2

11180.5k2](/packages/dhlparcel-magento2-plugin)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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