PHPackages                             simmybit/laravel-exact-online - 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. simmybit/laravel-exact-online

ActiveLibrary[API Development](/categories/api)

simmybit/laravel-exact-online
=============================

Laravel Facade wrapper for Exact Online PHP API

v1.0.0(3y ago)01.2k↓66.9%MITPHPPHP ^8.1

Since Aug 28Pushed 3y agoCompare

[ Source](https://github.com/Simmybit/laravel-exact-online)[ Packagist](https://packagist.org/packages/simmybit/laravel-exact-online)[ RSS](/packages/simmybit-laravel-exact-online/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (6)Versions (15)Used By (0)

Laravel Exact Online
====================

[](#laravel-exact-online)

This package is a Laravel wrapper around the Exact Online PHP API by Picqer (). It provides routes and a controller out of the box to connect your Laravel app with an Exact Online app. It also provides a Facade which is chainable to make requests to the API easily. Authorisation and refresh tokens are saved automatically.

`Note:` the tokens are saved in a json file for application wide use. Therefor this code is not suitable if your platform need access to Exact Online for a single user! This set of code may be used to communicate with a single Exact Online user's administration.

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

[](#installation)

Require the package

```
composer require simmybit/laravel-exact-online

```

Because of the auto package discovery feature Laravel &gt; 5.5 has, the ServiceProvider and Facades are automatically registered.

Add the Facade to your config/app.php

```
...
'ExactOnline' => Simmybit\LaravelExactOnline\LaravelExactOnlineFacade::class,
...

```

Followed by this, publish the resources (views, config, etc.)

```
php artisan vendor:publish --provider="Simmybit\LaravelExactOnline\Providers\LaravelExactOnlineServiceProvider"

```

While developing this package, you might want to use the `--force` flag on this command to overwrite previous files.

And last but not least either edit config/laravel-exact-online to match your Exact Online app settings or add these keys to your .env:

```
EXACT_CLIENT_ID=
EXACT_CLIENT_SECRET=

```

The following keys are optional

```
EXACT_COUNTRY_CODE=
EXACT_DIVISION=

```

Multiuser support
-----------------

[](#multiuser-support)

Out of the box this plugin stores the exact keys inside a JSON file. This means every user uses the same credentials. If you would like to give your users the opportunity to make individual connections you can do so by setting the following parameter inside your .env file:

```
EXACT_MULTI_USER=true

```

Sidenote: There's no migration written for this feature yet. Feel free to do so. In the meantime you should add these changes to your user migration:

```
$table->text('exact_accessToken')->nullable();
$table->text('exact_refreshToken')->nullable();
$table->text('exact_tokenExpires')->nullable();
$table->text('exact_authorisationCode')->nullable();
```

and add these fillables to your user object:

```
protected $fillable = [
    'name', 'email', 'password', 'exact_accessToken', 'exact_refreshToken', 'exact_tokenExpires', 'exact_authorisationCode'
];
```

How to use connect Laravel &amp; Exact Online
---------------------------------------------

[](#how-to-use-connect-laravel--exact-online)

As said this package provides the route and controller to easily connect your Exact App with your Laravel project. You may overwrite the routes in you routes/web.php file, I even insist on doing so because the routes are `not protected` by default!

You may also edit the views to your liking, after publishing they can be found under `/views/vendor/laravel-exact-online/` in your resources path.

##### Step 1: connect &amp; authorise

[](#step-1-connect--authorise)

Visit , you will be presented a submit button to go to Exact Online. Once there, login and approve the app. After this you will be returned do , this route takes care of saving the needed tokens for future requests.

##### Step 2: use the Facade

[](#step-2-use-the-facade)

That's it, you're now ready to use the package.

How to use the API
------------------

[](#how-to-use-the-api)

The package by Picqer requires you to provide a valid connection parameter to each resource you are about to use. This is done by a big piece of code which requires adding tokens. In the ServiceProvider of this package we've made a singleton that does all this for you:

```
$connection = app()->make('Exact\Connection');
```

This connection then is used when requesting resources using Picqer's classes:

```
use \Picqer\Financials\Exact\Account;

// List all accounts
$account = new Account($connection);
dd($account->get());
```

Using Dependency Injection, you can request an instance that already creates connection instance for you:

```
function handle (\Simmybit\LaravelExactOnline\LaravelExactOnline $exactOnline) {
    // List all accounts
    $exactOnline->Account()->get();

    // Get specific account:
    $exactOnline->Account()->find('account_ID');
}
```

Or if you prefer using the Facade, you can do that as well:

```
// List all accounts
ExactOnline::Account()->get();

// Get specific account:
ExactOnline::Account()->find('account_ID');
```

All methods that change the connection are camelCased and prefixed with connection, for example if you want to change the baseUrl of the API you would call:

```
$exactOnline->connectionSetBaseUrl('http://start.exactonline.de')

// or:

ExactOnline::connectionSetBaseUrl('http://start.exactonline.de');
```

Of course everything is chainable for readability:

```
$exactOnline->connectionSetBaseUrl('http://start.exactonline.de')
    ->Account()
    ->find('account_ID')

// or:

ExactOnline::connectionSetBaseUrl('http://start.exactonline.de')
    ->Account()
    ->find('account_ID');
```

Credits
-------

[](#credits)

- [Picqer/exact-php-client](https://github.com/picqer/exact-php-client)
- [PendoNL/laravel-exact-online](https://github.com/PendoNL/laravel-exact-online)

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity71

Established project with proven stability

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

Recently: every ~202 days

Total

12

Last Release

1173d ago

Major Versions

v0.7.1-beta → v1.0.02023-04-11

### Community

Maintainers

![](https://www.gravatar.com/avatar/1bcd7c783712f0802301a4c76a3d68a7bdc81ebb5dac790a1e073278b9ed3fcb?d=identicon)[Simmybit](/maintainers/Simmybit)

---

Top Contributors

[![websmurf](https://avatars.githubusercontent.com/u/4027236?v=4)](https://github.com/websmurf "websmurf (29 commits)")[![joshuadegier](https://avatars.githubusercontent.com/u/2580917?v=4)](https://github.com/joshuadegier "joshuadegier (19 commits)")[![Simmybit](https://avatars.githubusercontent.com/u/125260802?v=4)](https://github.com/Simmybit "Simmybit (11 commits)")[![justijndepover](https://avatars.githubusercontent.com/u/9008623?v=4)](https://github.com/justijndepover "justijndepover (10 commits)")[![kirkita](https://avatars.githubusercontent.com/u/554355?v=4)](https://github.com/kirkita "kirkita (3 commits)")[![Simon562456](https://avatars.githubusercontent.com/u/1489596?v=4)](https://github.com/Simon562456 "Simon562456 (3 commits)")[![ricklambrechts](https://avatars.githubusercontent.com/u/1367665?v=4)](https://github.com/ricklambrechts "ricklambrechts (1 commits)")[![robert-abram](https://avatars.githubusercontent.com/u/42139604?v=4)](https://github.com/robert-abram "robert-abram (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/simmybit-laravel-exact-online/health.svg)

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

###  Alternatives

[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93452.6k6](/packages/botman-driver-telegram)[websmurf/laravel-exact-online

Laravel Facade wrapper for Exact Online PHP API

1350.9k](/packages/websmurf-laravel-exact-online)[tafhyseni/godaddy-php

A minimalist Godaddy Api Client for domain purchases and administrations

173.2k](/packages/tafhyseni-godaddy-php)

PHPackages © 2026

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