PHPackages                             kakaprodo/murugo-analytic-helper - 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. kakaprodo/murugo-analytic-helper

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

kakaprodo/murugo-analytic-helper
================================

A laravel package that lets you interact with murugo analytic APIs

v1.0.0(1mo ago)05↓75%MITPHPPHP &gt;=8.0

Since Jul 14Pushed 1mo agoCompare

[ Source](https://github.com/kakaprodo/murugo-analytic-helper)[ Packagist](https://packagist.org/packages/kakaprodo/murugo-analytic-helper)[ RSS](/packages/kakaprodo-murugo-analytic-helper/feed)WikiDiscussions develop Synced 1w ago

READMEChangelog (1)Dependencies (2)Versions (4)Used By (0)

murugo-analytic-helper
======================

[](#murugo-analytic-helper)

A laravel package that lets you interact with murugo analytic APIs

Package Installation
--------------------

[](#package-installation)

```
composer require kakaprodo/murugo-analytic-helper
```

Publish config file
-------------------

[](#publish-config-file)

```
php artisan murugo-analytic-helper:install
```

The config file will be published to your /config folder

Setup the .env file
-------------------

[](#setup-the-env-file)

Based on the enviroment in the config file you can define env variables

Activable Features
------------------

[](#activable-features)

Use the `MurugoAnalyticHelper::features()` service gate to interact with [activable features](https://yupidoc.com/docs/murugoanalytics/feature-activation-76-111-/1) that you have registered on your [Murugo Analytic](https://analytics.murugo.cloud/) account.

### .env file requirement

[](#env-file-requirement)

You should define the following variables in your .env file

```
MURUGO_ANALYTIC_BASE_URL="https://analytics.murugo.cloud"
MURUGO_ANALYTIC_ENVIRONMENT_UUID="environment-uuid"
```

### Fetch all available features

[](#fetch-all-available-features)

Use the following example to retrieve all activable features configured for the current environment:

```
use Kakaprodo\MurugoAnalyticHelper\MurugoAnalyticHelper;
use RuntimeException;

$responseData = MurugoAnalyticHelper::features()->all();

if (! $responseData->isOk()) {
    throw new RuntimeException($responseData->getErrorMessage());
}

$features = $responseData->features;
```

The features will be fetched at once and stored in your caching store for 1hour(you may change this in the config file).

The feature's `all` method support additional parameters:

ParameterTypeDefaultDescription`email``string``null`Optional email address used to check whether the user is on a feature's waiting list. If the email is found, the corresponding feature will be activated for that specific user (subject to the feature configuration).`force``bool``false`When set to `true`, bypasses the cached feature list and fetches the latest features directly from the Murugo Analytic API.```
use Kakaprodo\MurugoAnalyticHelper\MurugoAnalyticHelper;
use RuntimeException;

$responseData = MurugoAnalyticHelper::features()->all([
    'email' => 'kakaprodo@gmail.com',
    'force' => true
]);

if (! $responseData->isOk()) {
    throw new RuntimeException($responseData->getErrorMessage());
}
```

### Get a specific feature

[](#get-a-specific-feature)

```
$featureData = $responseData->getFeature($featureKey);
// return \Kakaprodo\MurugoAnalyticHelper\Services\Features\ResponseData\Partial\ActivatedFeatureData
```

`getFeature()` returns the matching feature when it exists, or `null` when the feature key is not found.

### Check feature access

[](#check-feature-access)

```
$canAccess = $responseData->canAccessFeature($featureKey);
```

`canAccessFeature()` returns a boolean:

- `true` when the feature is accessible.
- `false` when the feature is unavailable, inactive, locked, or inaccessible to the current user.

### Error handling

[](#error-handling)

Check the response with `isOk()` before using the data. When the request fails, call `getErrorMessage()` and throw a standard PHP exception or handle the error in your application flow.

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance90

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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

47d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/988cbdacb19b632229a0cf2746b84b6cdbd4a81624b86a5ad4b1e27db48778a3?d=identicon)[kakaprodo](/maintainers/kakaprodo)

---

Top Contributors

[![kakaprodo](https://avatars.githubusercontent.com/u/30261670?v=4)](https://github.com/kakaprodo "kakaprodo (3 commits)")

---

Tags

helperkakaprodomurugo analytic

### Embed Badge

![Health badge](/badges/kakaprodo-murugo-analytic-helper/health.svg)

```
[![Health](https://phpackages.com/badges/kakaprodo-murugo-analytic-helper/health.svg)](https://phpackages.com/packages/kakaprodo-murugo-analytic-helper)
```

###  Alternatives

[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

24.5k69.5k](/packages/grumpydictator-firefly-iii)[firefly-iii/data-importer

Firefly III Data Import Tool.

8165.8k](/packages/firefly-iii-data-importer)[crumbls/layup

A visual page builder plugin for Filament 5 — Divi-style grid layouts with extensible widgets.

604.0k2](/packages/crumbls-layup)[ronasit/laravel-helpers

Provided helpers function and some helper class.

2088.7k32](/packages/ronasit-laravel-helpers)[team-nifty-gmbh/tall-datatables

Server-side rendered datatables for Laravel and Livewire

1423.2k6](/packages/team-nifty-gmbh-tall-datatables)

PHPackages © 2026

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