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(4y ago)010MITPHPPHP &gt;7.0

Since May 25Pushed 4y 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 1mo ago

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 10% 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

1814d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/64c7c9892d4f37d017760b526b33e657d86fa3477c487ff907ba56e1d9110e9a?d=identicon)[basduchambre](/maintainers/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

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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