PHPackages                             zangra/exact-online-bundle - 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. zangra/exact-online-bundle

ActiveSymfony-bundle[API Development](/categories/api)

zangra/exact-online-bundle
==========================

A Bundle for Exact Online API

5.4.0(1y ago)28MITPHPPHP ^7.4 || ^8.1

Since Feb 22Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/zangra-dev/ExactOnlineBundle)[ Packagist](https://packagist.org/packages/zangra/exact-online-bundle)[ RSS](/packages/zangra-exact-online-bundle/feed)WikiDiscussions main Synced today

READMEChangelog (10)Dependencies (5)Versions (47)Used By (0)

Exact Online Bundle API
========================

[](#exact-online-bundle-api-)

Author: Bianchi Jefferson / Lambot Maxime

Mail:  /

Exact Online doc:

---

Requirements
============

[](#requirements)

Symfony HTTP Client 5.1 branch for:

Symfony version 4.4

php version 7.2

---

### STEP 1

[](#step-1)

Create your APP on :

### STEP 2

[](#step-2)

```
 composer require zangra/exact-online-bundle

```

### STEP 3

[](#step-3)

Now you can use multi account ( by country )

config/package/exact\_online.yaml

```
exact_online:
  Belgium:
    baseUrl:      https://start.exactonline.be/
    apiUrl:       api/v1
    authUrl:      api/oauth2/auth
    tokenUrl:     api/oauth2/token
    redirectUrl:  https://YOURURL/ExactRequest
    clientId:     YOURID
    clientSecret: YOURSECRET
  France:
    baseUrl:      https://start.exactonline.fr/
    apiUrl:       api/v1
    authUrl:      api/oauth2/auth
    tokenUrl:     api/oauth2/token
    redirectUrl:  https://YOURURL/ExactRequest
    clientId:     YOURID
    clientSecret: YOURSECRET
  Nerderland:
    baseUrl:      https://start.exactonline.nl/
    apiUrl:       api/v1
    authUrl:      api/oauth2/auth
    tokenUrl:     api/oauth2/token
    redirectUrl:  https://YOURURL/ExactRequest
    clientId:     YOURID
    clientSecret: YOURSECRET
  Spain:
    baseUrl:      https://start.exactonline.es/
    apiUrl:       api/v1
    authUrl:      api/oauth2/auth
    tokenUrl:     api/oauth2/token
    redirectUrl:  https://YOURURL/ExactRequest
    clientId:     YOURID
    clientSecret: YOURSECRET

```

### STEP 4

[](#step-4)

You need to update your database: ```
php app/console doctrine:schema:update --force

```

### STEP 5

[](#step-5)

In your controller :

```
use zangra\ExactOnlineBundle\Manager\ExactManager;

 public function indexAction(Request $request, ExactManager $exactManager)
{
    // the code sended by exact online when the first auth
    $code = $request->query->get('code');
    //$exactManager->init($code); // use init for the first Authentification, after that you should to use forceRefreshToken();
      $exactManager->forceRefreshToken();
}

```

Next go to http:// YOUR URL.com/ExactRequest Your authentication login will be required, this session will expire after 10 minutes The token is automatically reniew when you launch an Request to Exact with self::refreshAccessToken();

Usage
=====

[](#usage)

### Init

[](#init)

```
$code = $request->query->get('code');
$exactManager = $this->get("exact_online.manager");
//$exactManager->init($code); // first init
$exactManager->forceRefreshToken(); // after first init

```

### getList($page, $maxPerPage)

[](#getlistpage-maxperpage)

 (with pagination) ```
$listAccount = $exactManager->getModel("Account")->getList(1,5);
foreach ($listAccount as $account){
	dump($account);
}

```

### findBy()

[](#findby)

```
$criteria = array('AddressLine1' => 'Koningin Astridlaan 166');
$select   = array ("AddressLine1", "BusinessType", "CountryName", "Created");
$orderBy  = array('Created' => 'desc');
$limit    = 1 ;
$account  = $exactManager->getModel("Account")->findBy($criteria,$select,$orderBy,$limit);
dump($account);

```

### find

[](#find)

 (guid) ```
account = $exactManager->getModel("Account")->find("587707b8-94aa-426a-b7db-56d434d9e83a");

```

### persist()

[](#persist)

```
$item = new Item();
$item->setCode(rand());
$item->setCostPriceStandard(5);
$item->setDescription("description de test");
$item->setIsSalesItem(true);
$item->setSalesVatCode('VN');
$exactManager->persist($item);

```

### update()

[](#update)

```
$account = $exactManager->getModel("Account")->find("587707b8-94aa-426a-b7db-56d434d9e83a");
$account->setWebsite("https://zangra.com");
$exactManager->update($account);

```

### remove()

[](#remove)

```
$account = $exactManager->getModel("Account")->find("587707b8-94aa-426a-b7db-56d434d9e83a");
$exactManager->remove($account);

```

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance56

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity82

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~73 days

Total

45

Last Release

679d ago

Major Versions

2.3 → 4.42019-09-21

4.8.4 → 5.02022-06-09

PHP version history (4 changes)3.4PHP ^7.1

2.3PHP ^7.0

4.4PHP ^7.2

5.1.0PHP ^7.4 || ^8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/54976150?v=4)[zangra-dev](/maintainers/zangra-dev)[@zangra-dev](https://github.com/zangra-dev)

---

Top Contributors

[![nils-m](https://avatars.githubusercontent.com/u/666276?v=4)](https://github.com/nils-m "nils-m (39 commits)")[![zangra-dev](https://avatars.githubusercontent.com/u/54976150?v=4)](https://github.com/zangra-dev "zangra-dev (38 commits)")[![JeffersonBianchi](https://avatars.githubusercontent.com/u/35191046?v=4)](https://github.com/JeffersonBianchi "JeffersonBianchi (25 commits)")

---

Tags

phpapisymfonyexactonline

### Embed Badge

![Health badge](/badges/zangra-exact-online-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/zangra-exact-online-bundle/health.svg)](https://phpackages.com/packages/zangra-exact-online-bundle)
```

###  Alternatives

[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M733](/packages/sylius-sylius)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.8M508](/packages/pimcore-pimcore)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k61](/packages/open-dxp-opendxp)[oro/platform

Business Application Platform (BAP)

645143.5k114](/packages/oro-platform)

PHPackages © 2026

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