New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

mralston/mug

Library for working with My Utility Genius API.
1,085
Install
composer require mralston/mug
Latest Version:v1.0.5
PHP:^7.4.15|^8.0
Laravel:7 – 13
License:MIT
Last Updated:Nov 9, 2026
Links: GitHub  ·  Packagist
Maintainer: mralston

My Utility Genius

Introduction

Library for working with My Utility Genius API.

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

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

Please e-mail security vulnerabilities directly to me.

Licence

PDF is open-sourced software licenced under the MIT license.

Related Packages

mralston/pdf

Laravel wrapper for generating PDF files using headless Chrome/Chromium

1,002 6
mralston/iq

Package for working with IQ CRM.

1,080 0
barryvdh/laravel-dompdf

A DOMPDF Wrapper for Laravel

133,038,324 7,299
carlos-meneses/laravel-mpdf

Laravel Mpdf: Using Mpdf in Laravel to generate Pdfs.

4,088,448 439
elibyy/tcpdf-laravel

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

3,349,194 357

Version History

Version Released PHP Laravel License
v1.0.5 ^7.4.15|^8.0 ^7.0|^8.0|^9.0|^10.0|^11.0|^12.0|^13.0 MIT
v1.0.4 ^7.4.15|^8.0 ^7.0|^8.0|^9.0|^10.0|^11.0|^12.0|^13.0 MIT
v1.0.3 ^7.4.15|^8.0 ^7.0|^8.0|^9.0|^10.0|^11.0|^12.0|^13.0 MIT
v1.0.2 ^7.4.15|^8.0 ^7.0|^8.0|^9.0|^10.0|^11.0 MIT
v1.0.1 ^7.4.15|^8.0 ^7.0|^8.0|^9.0|^10.0 MIT