PHPackages                             adminui/adminui-address - 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. [Admin Panels](/categories/admin)
4. /
5. adminui/adminui-address

ActiveLaravel[Admin Panels](/categories/admin)

adminui/adminui-address
=======================

A package for Admin UI address lookup from GetAddress.io

2.0.2(4y ago)1154MITPHPPHP &gt;=7.2

Since Mar 29Pushed 4y ago3 watchersCompare

[ Source](https://github.com/AdminUI/adminui-address)[ Packagist](https://packagist.org/packages/adminui/adminui-address)[ RSS](/packages/adminui-adminui-address/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (14)Used By (0)

AdminUI UK Address Lookup for Laravel ^8.0
==========================================

[](#adminui-uk-address-lookup-for-laravel-80)

Version 2.x - Vue JS

This package is built for use within the AdminUI Framework, However due to the needs across multiple systems it can be run on any Laravel 7+ project.

Requirements
------------

[](#requirements)

**Laravel 8 package**
**VueJS**
**[GetAddress.io](https://getaddress.io) api key**

Installation
------------

[](#installation)

```
composer require adminui/adminui-address

```

Once installed Laravel with auto-find the package.

This package uses Laravel HTTP class to get results from getaddress.io

The package does come with a Countries migration and seed and also a US State Migration and seed.
The Country table contains a few extra fields, iso codes, postcode requirement, dial code and status.
If the status is 0 it will not be selectable, hence restricting certain countries if need be.
If postcode is 1 the postcode field will be required.

Please run :

```
php artisan vendor:publish --tag adminui-address
php artisan migrate
php artisan db:seed --class=AdminUI\AdminUIAddress\Database\Seeds\DatabaseSeeder

```

Once done you will need to update the config file 'adminuiaddress' or add the following variables to the .env file:

```
AUI_ADDRESS_APIKEY=""
AUI_ADDRESS_ADMINKEY=""
AUI_ADDRESS_CACHETIME=""
AUI_ADDRESS_LNG=""
AUI_ADDRESS_LAT=""
AUI_UNIT="M"

```

The address component has been moved to your views/components folder.
And its JS for the blade component to public/vendor/adminui/address-block.js
It can be easily called using

```
@addressBlock()

```

If the UK is chosen it gives you the opportunity to do a postcode lookup. The lookup will appear in a dropdown if postcode is found. Once address is chosen a full address block appears.

The system uses Laravels caching to store postcode results, to save repeat lookups.

Please ensure to add in Jquery to your template. Also please add

```
@stack('scripts')

```

This will allow the required Javascript to be pushed below the Jquery call.

Distance Helper Class
---------------------

[](#distance-helper-class)

The package comes with a distance helper class. This can calculate the distance from your 'lat/lng' (as per config) to the address you have just got from the postcode lookup script.

Simply call the class with the variables and measurement unit, and the resulting distance will be returned

```
use Distance;
...
$distance  =  round(Distance::between(['lng'  => request('lng'),  'lat'  => request('lat')]), 2);

```

This will take 3 parameters:
**TO** - array \[lng, lat\]
**FROM** - array\[lng, lat\] optional, by default this is lng and lat setup in env or config file

Distance can be returned in 3 units of measurement. M - Miles \*\* Default \*\* KM - Kilometers NM - Nautical Miles This can be set within the .env or directly in config file.

Distance is returned.

Credit given to :
[altrozero/](https://packagist.org/packages/altrozero/)get-address-io-php
for some of the coding structure.

**Still to come in next branch:**
Add some Admin Functionality for Whitelist, Blacklist, Invoices

*Enjoy.*

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 82.5% 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 ~27 days

Recently: every ~59 days

Total

11

Last Release

1601d ago

Major Versions

1.0.3 → 2.0.12021-05-07

1.0.7 → 2.0.22021-12-29

PHP version history (2 changes)1.0.1PHP &gt;=7.2

1.0.4PHP ^7.3|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/f4c5d2f9a5c85501068fd3a8aafe6d52d05975801e5c445abd9a1a86595b896a?d=identicon)[AdminUI](/maintainers/AdminUI)

---

Top Contributors

[![kennyturner](https://avatars.githubusercontent.com/u/59434835?v=4)](https://github.com/kennyturner "kennyturner (33 commits)")[![mariojgt](https://avatars.githubusercontent.com/u/7347012?v=4)](https://github.com/mariojgt "mariojgt (7 commits)")

---

Tags

distancegeolocationgetaddresslaravelpostcode-lookup

### Embed Badge

![Health badge](/badges/adminui-adminui-address/health.svg)

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

###  Alternatives

[jeroennoten/laravel-adminlte

Easy AdminLTE integration with Laravel

4.0k4.8M43](/packages/jeroennoten-laravel-adminlte)[dmstr/yii2-adminlte-asset

AdminLTE backend theme asset bundle for Yii 2.0 Framework

1.1k1.8M67](/packages/dmstr-yii2-adminlte-asset)[dwij/laraadmin

LaraAdmin is a Open source Laravel Admin Panel / CMS which can be used as Admin Backend, Data Management Tool or CRM boilerplate for Laravel with features like CRUD Generation, Module Manager, Media, Menus, Backups and much more

1.6k68.7k](/packages/dwij-laraadmin)[filament/spatie-laravel-media-library-plugin

Filament support for `spatie/laravel-medialibrary`.

1764.8M125](/packages/filament-spatie-laravel-media-library-plugin)[bezhansalleh/filament-exceptions

A Simple &amp; Beautiful Pluggable Exception Viewer for FilamentPHP's Admin Panel

193195.9k13](/packages/bezhansalleh-filament-exceptions)[filament/infolists

Easily add beautiful read-only infolists to any Livewire component.

1220.8M36](/packages/filament-infolists)

PHPackages © 2026

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