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.2(1y ago)0190↓50%1MITPHPPHP ^7.4.15|^8.0

Since Aug 26Pushed 1y 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 1mo ago

READMEChangelog (7)Dependencies (2)Versions (7)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

30

—

LowBetter than 64% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

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

Every ~80 days

Recently: every ~100 days

Total

6

Last Release

594d 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 (8 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

[barryvdh/laravel-dompdf

A DOMPDF Wrapper for Laravel

7.3k87.6M278](/packages/barryvdh-laravel-dompdf)[barryvdh/laravel-snappy

Snappy PDF/Image for Laravel

2.8k24.8M48](/packages/barryvdh-laravel-snappy)[elibyy/tcpdf-laravel

tcpdf support for Laravel 6, 7, 8, 9, 10, 11

3542.7M5](/packages/elibyy-tcpdf-laravel)[lucasromanojf/laravel5-pdf

Provides the HTML2PDF functionality using the wkhtmltopdf library (Laravel 5)

1271.8k](/packages/lucasromanojf-laravel5-pdf)[eve/pdf-converter

Laravel package to convert HTML to PDF, supporting multiple drivers.

114.1k](/packages/eve-pdf-converter)

PHPackages © 2026

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