PHPackages                             volldigital/laravel-navision - 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. volldigital/laravel-navision

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

volldigital/laravel-navision
============================

1.1.15(1w ago)21604[1 PRs](https://github.com/volldigital/laravel-navision/pulls)MITPHPPHP ^7.2 || ^8.0 || ^8.1 || ^8.2

Since Jul 15Pushed 1w ago1 watchersCompare

[ Source](https://github.com/volldigital/laravel-navision)[ Packagist](https://packagist.org/packages/volldigital/laravel-navision)[ RSS](/packages/volldigital-laravel-navision/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (2)Versions (31)Used By (0)

Laravel Navision Package (For Laravel V5.8 &amp; 6.X)
=====================================================

[](#laravel-navision-package-for-laravel-v58--6x)

A small package to communicate with Microsoft Navision. You can fetch collections and single records.

Install
-------

[](#install)

Run following commands:

```
composer require volldigital/laravel-navision
```

```
php artisan vendor:publish --provider="VOLLdigital\LaravelNavision\LaravelNavisionServiceProvider"
```

Edit your "config/ntlm.php" file or use the ENV variables.

Usage
-----

[](#usage)

After setting up your config, load the client via:

```
$client = app(VOLLdigital\LaravelNavision\Client::class);
```

Now you are ready to recieve data from your Navision.

Examples:

```
$client = app(VOLLdigital\LaravelNavision\Client::class);

$data = $client->fetchCollection("Events");

$event = $client->fetchOne("Events", 'Key', 'Number');
```

You can also pull data chunk-wise. The data will be written in a text file and after the request finished, it will be parsed and deleted.

```
$client = app(VOLLdigital\LaravelNavision\Client::class);

// file will be stored in /storage/app/temp/curl_uniqueid.temp

$data = $client->fetchCollection("Events", true);
```

You want to check if your connection to UNITOP is established? You can use the ping function and check it :)

```
$client = app(VOLLdigital\LaravelNavision\Client::class);

if ($client->ping() === false) {
    throw new RunTimeException('No connection available');
}
```

Write data
----------

[](#write-data)

Use `$client->writeData(string $url, array $data);` to write data into navision.

Example:

```
$client->writeData(
    'Items',
    [
        'Item_Code' => 'VD',
        'Item_Description' => 'Test data'
    ]
);
```

Count items
-----------

[](#count-items)

Use `$client->countCollection("YourCollection")` to recieve the amount of items in this collection.

Example:

```
dd($client->countCollection('Events')); // Outputs: 100293
```

Examples
--------

[](#examples)

### Query params

[](#query-params)

- $skip=XXXX - Skip X amount of itmes

```
$temp = $this->client->fetchCollection('Events?$skip=10000');
```

- $top=XXXX - Recieve X amount of items

```
$temp = $this->client->fetchCollection('Events?$top=10');
```

### Fetching data

[](#fetching-data)

```
    protected function fetchData(string $uri, $key, bool $chunk = false, ?callable $filter = null)
    {
        $temp = $this->client->fetchCollection($uri, $chunk);
        $data = [];

        foreach($temp as $ts) {
            if (!is_null($filter) && $filter($ts) === false) {
                continue;
            }

            $data[$ts[$key]] = $ts;
        }

        return collect($data);
    }
```

### Pagination

[](#pagination)

```
    protected function fetchAll()
    {
        $number = $this->client->countCollection('Events');
        $pageLimit = 10000;
        $pages = (int)ceil($number / $pageLimit);
        $events = [];

        for ($i = 0; $i < $pages; $i++) {
            $skip = $i * $pageLimit;

            $temp = $this->fetchData('Events?$skip='.$skip, 'Number');

            $events = array_merge($events, $temp->toArray());
        }

        return collect($events);
    }
```

###  Health Score

56

—

FairBetter than 98% of packages

Maintenance98

Actively maintained with recent releases

Popularity16

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity82

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 93.7% 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 ~92 days

Recently: every ~424 days

Total

28

Last Release

13d ago

PHP version history (3 changes)1.0PHP ^7.2.0

1.1.12PHP ^7.2 || ^8.0

1.1.13PHP ^7.2 || ^8.0 || ^8.1 || ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/e62c2f9db350c7930602e74c930a51b9bf8321414cdf573227c7906a959cda57?d=identicon)[volldigital](/maintainers/volldigital)

---

Top Contributors

[![saiik](https://avatars.githubusercontent.com/u/5637979?v=4)](https://github.com/saiik "saiik (59 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")

---

Tags

laravellaravel-5-packagelaravel-6-packagelaravel-frameworklaravel-navisionlaravel-ntlmlaravel5laravel6microsoftnavisionntlmpackageunitop

### Embed Badge

![Health badge](/badges/volldigital-laravel-navision/health.svg)

```
[![Health](https://phpackages.com/badges/volldigital-laravel-navision/health.svg)](https://phpackages.com/packages/volldigital-laravel-navision)
```

###  Alternatives

[wireui/wireui

TallStack components

1.8k1.3M16](/packages/wireui-wireui)[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4195.3M84](/packages/livewire-volt)[ramonrietdijk/livewire-tables

Dynamic tables for models with Laravel Livewire

21147.4k](/packages/ramonrietdijk-livewire-tables)

PHPackages © 2026

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