PHPackages                             mralston/mug - 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. [PDF &amp; Document Generation](/categories/documents)
4. /
5. mralston/mug

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

mralston/mug
============

Library for working with My Utility Genius API.

v1.0.3(2mo ago)0470↑193.3%11MITPHPPHP ^7.4.15|^8.0

Since Aug 26Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/mralston/mug)[ Packagist](https://packagist.org/packages/mralston/mug)[ Docs](https://github.com/mralston/mug)[ RSS](/packages/mralston-mug/feed)WikiDiscussions main Synced today

READMEChangelog (8)Dependencies (4)Versions (8)Used By (1)

My Utility Genius
=================

[](#my-utility-genius)

Introduction
------------

[](#introduction)

Library for working with My Utility Genius API.

Config
------

[](#config)

You may publish the config file as follows:

```
php artisan vendor:publish --tag=mug-config
```

Add the following items to your .env file:

```
MUG_ENDPOINT="${APP_ENV}"
MUG_CLIENT_ID=
MUG_SECRET=
```

My Utility Genius will supply a Client ID and Secret.

Usage
-----

[](#usage)

Here are how the basic functions of the library work:

```
// Determine whether a post code is ready to switch
Mug::addressPostcodeReady($this->postCode);

// Retrieve addresses matched by a post code
Mug::addressRecco($this->postCode);

// Retrieve details about a specific address
Mug::addressReccoDetails($address);

// $address attribute is an array which must contain
// mpancore and xoserveAddressCode elements.

// You may supply an entry from the collection
// returned by Mug::addressRecco()
Mug::addressReccoDetails(
    Mug::addressRecco($this->postCode)
        ->first()
);
```

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please [e-mail security vulnerabilities directly to me](mailto:matt@mralston.co.uk).

Licence
-------

[](#licence)

PDF is open-sourced software licenced under the [MIT license](LICENSE.md).

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance86

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90% 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 ~161 days

Recently: every ~236 days

Total

7

Last Release

73d ago

Major Versions

v0.0.4 → v1.0.02023-09-18

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/248387?v=4)[Matt](/maintainers/mralston)[@mralston](https://github.com/mralston)

---

Top Contributors

[![mralston](https://avatars.githubusercontent.com/u/248387?v=4)](https://github.com/mralston "mralston (9 commits)")[![Cyapow](https://avatars.githubusercontent.com/u/5711362?v=4)](https://github.com/Cyapow "Cyapow (1 commits)")

---

Tags

laravelpdfmralston

### Embed Badge

![Health badge](/badges/mralston-mug/health.svg)

```
[![Health](https://phpackages.com/badges/mralston-mug/health.svg)](https://phpackages.com/packages/mralston-mug)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M150](/packages/laravel-mcp)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.3k3](/packages/defstudio-telegraph)[api-platform/laravel

API Platform support for Laravel

58170.8k14](/packages/api-platform-laravel)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)

PHPackages © 2026

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