PHPackages                             basduchambre/juniper-mist-laravel - 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. basduchambre/juniper-mist-laravel

ActiveLibrary[API Development](/categories/api)

basduchambre/juniper-mist-laravel
=================================

Juniper Mist API wrapper for Laravel

0.1.0(5y ago)010MITPHPPHP &gt;7.0

Since May 25Pushed 5y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (3)Used By (0)

Juniper Mist API wrapper for Laravel
====================================

[](#juniper-mist-api-wrapper-for-laravel)

This is a wrapper to easily make API calls to Juniper Mist. Still basic and only some metrics for now, but big plans to expand this package in the future.

Prerequisites
-------------

[](#prerequisites)

- Juniper Mist API key
- Juniper Mist Site ID
- Juniper Mist Map ID

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

[](#installation)

Install the package through composer

```
composer require basduchambre/juniper-mist-laravel

```

To publish the `junipermist.php` config file, run the following command. Publishing will also make an Alias `JuniperMist`, so you don't have to import.

```
php artisan vendor:publish --provider="Basduchambre\JuniperMist\JuniperMistServiceProvider"

```

The Mist data tables will be created upon running the migration command:

```
php artisan migrate

```

This will create two tables: mist\_data to store the general metrics and mist\_fetch\_data to store temporary client data.

Make sure your `.env` has the following values filled

```
JUNIPER_MIST_API_KEY=
JUNIPER_MIST_SITE_ID=
JUNIPER_MIST_MAP_ID=

```

Additionally you can set the `JUNIPER_MIST_BASE_URL`. For now it is set to the default Juniper Mist api base url. If it changes in the future, you can easily set it in your `.env`.

Usage
-----

[](#usage)

To retreive data, create a custom `route` and `Controller`. An example is given below.

```
namespace App\Http\Controllers;

class ExampleController extends Controller
{
    public function mist()
    {
        return JuniperMist::get();
    }
}

```

### Chaining methods

[](#chaining-methods)

It is possible to chain different methods to alter the output like below:

```
return JuniperMist::metric('clients')
    ->setSiteId('my_site_id')
    ->setMapId('my_map_id')
    ->get()

```

### Live clients

[](#live-clients)

The JuniperMist class retrieves the live client data for connected and unconnected clients. The possible methods to alter the output for this class are the following:

- type - the type of live client you want to retrieve (clients/unconnected\_clients). Default is clients.
- ssid - a specific ssid name to filter the output by
- siteId - the site ID of the location you want to retrieve data from.
- mapId - the map ID of the location you want to retrieve data from.

### Client insight metrics

[](#client-insight-metrics)

The JuniperMistMetrics class retrieves the client insight metrics. The possible methods to alter the output for this class are the following:

- metric - the type of metric you want to retrieve (loyalty/dwell/visit/zones). Default is loyalty.
- start - The start time for the data you want to retrieve in a Unix timestamp.
- end - The end time for the data you want to retrieve in a Unix timestamp.
- interval - The intervals in which the data will be returned in seconds (86400/3600). Default is 86400.
- siteId - the site ID of the location you want to retrieve data from.

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

1865d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/55763791?v=4)[Bastiaan van de Kamer](/maintainers/basduchambre)[@basduchambre](https://github.com/basduchambre)

---

Top Contributors

[![batteryan](https://avatars.githubusercontent.com/u/39533788?v=4)](https://github.com/batteryan "batteryan (1 commits)")

### Embed Badge

![Health badge](/badges/basduchambre-juniper-mist-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/basduchambre-juniper-mist-laravel/health.svg)](https://phpackages.com/packages/basduchambre-juniper-mist-laravel)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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