PHPackages                             baikho/loqate-php - 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. [API Development](/categories/api)
4. /
5. baikho/loqate-php

ActiveLibrary[API Development](/categories/api)

baikho/loqate-php
=================

A PHP Wrapper for the Loqate API

v2.0.0(1y ago)981.0k—7.9%1MITPHPPHP ^8.1CI passing

Since Jan 24Pushed 1mo ago3 watchersCompare

[ Source](https://github.com/baikho/loqate-php)[ Packagist](https://packagist.org/packages/baikho/loqate-php)[ Docs](https://github.com/baikho/loqate-php)[ RSS](/packages/baikho-loqate-php/feed)WikiDiscussions 2.x Synced 1mo ago

READMEChangelog (7)Dependencies (2)Versions (18)Used By (0)

Loqate PHP
==========

[](#loqate-php)

[![Latest Version on Packagist](https://camo.githubusercontent.com/02bd83d7a653bf47e565237dc3624ac9ce34eebfb41a960d3cef0c4fa64e74b1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6261696b686f2f6c6f716174652d7068702e737667)](https://packagist.org/packages/baikho/loqate-php)[![Total Downloads](https://camo.githubusercontent.com/cc5dff92d72fadd802d00b7ccfaac59737152359aa5361af2ae427bf6cd25457/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6261696b686f2f6c6f716174652d7068702e737667)](https://packagist.org/packages/baikho/loqate-php)[![MIT Licensed](https://camo.githubusercontent.com/81b04bcaaee6ca003c86ee24115685e1b913790f4bae49eabaa918bdb82207c0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6261696b686f2f6c6f716174652d7068702e737667)](https://github.com/baikho/loqate-php/blob/main/LICENSE)[![GitHub issues](https://camo.githubusercontent.com/1ee7f262cf62850d155687b76260a9ccc39b5f774db0d56b75abd04991bcbb60/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6261696b686f2f6c6f716174652d7068702e737667)](https://github.com/baikho/loqate-php/issues)[![GitHub stars](https://camo.githubusercontent.com/17ad296198d5a4de3902859bb38e0a6200e885a25a78f151c77bb3ff30b59a3b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6261696b686f2f6c6f716174652d7068702e737667)](https://github.com/baikho/loqate-php/stargazers)

A Modern PHP Wrapper for the [Loqate API](https://docs.loqate.com/api-reference/introduction/).

---

Table of contents
-----------------

[](#table-of-contents)

- [Requirements](#requirements)
- [Installation](#installation)
- [Quick start](#quick-start)
- [Address verification](#address-verification)
- [Geocoding](#geocoding)
- [Email verification](#email-verification)
- [Bank account verification](#bank-account-verification)
- [Phone verification](#phone-verification)
- [License](#license)

---

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

[](#requirements)

- PHP **8.1+**
- Guzzle **6.5+** or **7.2+**

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

[](#installation)

```
composer require baikho/loqate-php
```

Quick start
-----------

[](#quick-start)

Create a client with your Loqate API key, then use the product entry points as **read-only properties** (`$client->address`, `$client->geocoding`, `$client->email`, `$client->phone`, `$client->bankAccount`):

```
use Baikho\Loqate\Loqate;

$client = new Loqate('your-api-key');

$result = $client->address->find('SW1A 1AA');
```

The same entry points are also available as **methods** (`$client->address()`, `$client->geocoding()`, and so on). Both styles return a new handler each time.

All examples below use property access and assume `$client` is already constructed as shown.

Address verification
--------------------

[](#address-verification)

Supported endpoints:

APIVersionLoqate docsCapture Find`v1.20`[Address capture - Find](https://docs.loqate.com/api-reference/address-capture/find)Capture Retrieve`v1.30`[Address capture - Retrieve](https://docs.loqate.com/api-reference/address-capture/retrieve)**Find (search):**

```
$result = $client->address->find('foo');
```

**Find with full control** (extra query parameters):

```
use Baikho\Loqate\Address\Find;

$result = new Find('your-api-key')
    ->setText('foo')
    ->setIsMiddleWare(true)
    ->setContainer('bar')
    ->setCountries('NL')
    ->makeRequest();
```

**Retrieve** by Loqate id:

```
$result = $client->address->retrieve('GB|RM|B|12345678');
```

**Retrieve with full control**:

```
use Baikho\Loqate\Address\Retrieve;

$result = new Retrieve('your-api-key')
    ->setId('GB|RM|B|12345678')
    ->makeRequest();
```

Geocoding
---------

[](#geocoding)

Supported endpoints:

APIVersionLoqate docsDistance`v1.00`[Distances and directions - Distance](https://docs.loqate.com/api-reference/geocode/distances-and-directions/distance)Directions`v2.00`[Distances and directions - Directions](https://docs.loqate.com/api-reference/geocode/distances-and-directions/directions)International Geocode`v1.10`[Geocoding - International Geocode](https://docs.loqate.com/api-reference/geocode/geocoding/international-geocode)UK Find`v2.00`[Geocoding - UK Find](https://docs.loqate.com/api-reference/geocode/geocoding/uk-find)UK Geocode`v2.10`[Geocoding - UK Geocode](https://docs.loqate.com/api-reference/geocode/geocoding/uk-geocode)UK Retrieve`v2.00`[Geocoding - UK Retrieve](https://docs.loqate.com/api-reference/geocode/geocoding/uk-retrieve)UK Reverse Geocode`v1.10`[Geocoding - UK Reverse Geocode](https://docs.loqate.com/api-reference/geocode/geocoding/uk-reversegeocode)**Distance** between two points - easting/northing, latitude/longitude, or postcodes (UK):

```
$result = $client->geocoding->distance('381600,259400', '380600,25840');
$result = $client->geocoding->distance('51.4733514399,-0.00088499646', '51.492914695,-0.1215161806');
$result = $client->geocoding->distance('SE10 8XJ', 'SW1A 0AA');
```

**Directions** - same coordinate formats as distance:

```
$result = $client->geocoding->directions('381600,259400', '380600,25840');
$result = $client->geocoding->directions('51.4733514399,-0.00088499646', '51.492914695,-0.1215161806');
$result = $client->geocoding->directions('SE10 8XJ', 'SW1A 0AA');
```

**International geocode** - country as ISO-2 or ISO-3; location can be postal code, place name, or Loqate id:

```
$result = $client->geocoding->geocode('GB', 'London');
```

**UK find / geocode / retrieve** - full or partial postcode, place name, or `street, town` style text:

```
$result = $client->geocoding->ukFind('London');
$result = $client->geocoding->ukGeocode('London');
$result = $client->geocoding->ukRetrieve('GB|RM|B|12345678');
```

**UK reverse geocode** - centre point as postcode or coordinates (latitude/longitude or easting/northing):

```
$result = $client->geocoding->ukReverseGeocode('51.4733514399,-0.00088499646');
```

Email verification
------------------

[](#email-verification)

Supported endpoints:

APIVersionLoqate docsIndividual validate`v2.00`[Email validation - Individual](https://docs.loqate.com/api-reference/email-validation/individual)```
$result = $client->email->validate('foo@example.com');
```

Bank account verification
-------------------------

[](#bank-account-verification)

Supported endpoints:

APIVersionLoqate docsIndividual validate`v2.00`[Bank validation - Individual](https://docs.loqate.com/api-reference/bank-validation/individual)```
$result = $client->bankAccount->validate('12345678', '20-45-67');
```

Phone verification
------------------

[](#phone-verification)

Supported endpoints:

APIVersionLoqate docsIndividual validate`v2.20`[Phone validation - Individual validate](https://docs.loqate.com/api-reference/phone-validation/individual-validate)```
$result = $client->phone->validate('1234567890');
$result = $client->phone->validate('1234567890', 'NL');
```

---

License
-------

[](#license)

This package is released under the [MIT License](LICENSE.md).

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance71

Regular maintenance activity

Popularity37

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 88.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 ~109 days

Recently: every ~240 days

Total

15

Last Release

419d ago

Major Versions

v0.4 → v1.02021-01-24

v1.5.1 → v2.0.02025-03-25

PHP version history (3 changes)v0.1PHP ^7.3 || ^8.0

v0.4PHP ^7.4 || ^8.0

v2.0.0PHP ^8.1

### Community

Maintainers

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

---

Top Contributors

[![baikho](https://avatars.githubusercontent.com/u/4610533?v=4)](https://github.com/baikho "baikho (46 commits)")[![Muffinman](https://avatars.githubusercontent.com/u/1319568?v=4)](https://github.com/Muffinman "Muffinman (5 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

addressaddress-autocompleteaddress-lookupaddress-verificationapi-clientapi-wrapperlookupphpphp-libraryphp8ukphpapiloqate

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/baikho-loqate-php/health.svg)

```
[![Health](https://phpackages.com/badges/baikho-loqate-php/health.svg)](https://phpackages.com/packages/baikho-loqate-php)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[hubspot/api-client

Hubspot API client

23914.2M16](/packages/hubspot-api-client)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[resend/resend-php

Resend PHP library.

574.7M21](/packages/resend-resend-php)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

553.3M7](/packages/checkout-checkout-sdk-php)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

762.6k](/packages/scriptdevelop-whatsapp-manager)

PHPackages © 2026

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