PHPackages                             lt-25/geocode - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. lt-25/geocode

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

lt-25/geocode
=============

A powerful Laravel package for geocoding and reverse geocoding using maps.co API

v2.0.0(4mo ago)17MITPHPPHP ^7.4|^8.0|^8.1|^8.2|^8.3

Since Mar 3Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/lt-25/geocode)[ Packagist](https://packagist.org/packages/lt-25/geocode)[ RSS](/packages/lt-25-geocode/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (5)Versions (3)Used By (0)

Geocode
=======

[](#geocode)

A powerful and elegant Laravel package for geocoding and reverse geocoding using the location iq API.

Features
--------

[](#features)

✨ **Easy to Use** - Simple and intuitive API 🌍 **Global Coverage** - Works worldwide 🔄 **Reverse Geocoding** - Convert coordinates to addresses 🏙️ **Location Search** - Find cities, states, and addresses ⚡ **Caching Support** - Cache results to reduce API calls 📝 **Comprehensive Logging** - Built-in logging for debugging 🔒 **Type Safe** - Full PHP 7.4+ and 8.0+ support ✅ **Laravel 7-11** - Works with all modern Laravel versions

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

[](#installation)

Install via Composer:

```
composer require lt-25/geocode
```

Setup
-----

[](#setup)

After installation you'll want to publish the configuration and set a couple of environment variables.

```
php artisan vendor:publish --provider="Lalit\Geocode\Providers\GeocodeServiceProvider" --tag="geocode-config"
```

This will copy `config/geocode.php` to your application's config directory. The package reads the following env values (you can add them to your `.env` file):

```
# Choose provider (default: location-iq)
GEOCODE_PROVIDER=location-iq

# API credentials for the Maps.co/LocationIQ service
GEOCODE_MAPS_CO_KEY=your_api_key_here
GEOCODE_MAPS_CO_URL=https://api.locationiq.com/v1/autocomplete

# Optional tuning
GEOCODE_TIMEOUT=15
GEOCODE_CACHE_ENABLED=false
GEOCODE_CACHE_TTL=3600
GEOCODE_CACHE_STORE=default
GEOCODE_RATE_LIMIT=false
GEOCODE_RATE_LIMIT_REQUESTS=60
GEOCODE_RATE_LIMIT_PERIOD=60
GEOCODE_DEFAULT_LIMIT=50

# Logging (enabled by default)
GEOCODE_LOGGING=true
GEOCODE_LOG_CHANNEL=single
```

You can adjust these values to suit your application.

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance78

Regular maintenance activity

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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 ~0 days

Total

2

Last Release

123d ago

Major Versions

v1.0.1 → v2.0.02026-03-03

### Community

Maintainers

![](https://www.gravatar.com/avatar/38881d85d7a1831077c0d3ddd78301f98529bdff88a75134883311fd8a99def0?d=identicon)[lt-25](/maintainers/lt-25)

---

Top Contributors

[![lt-25](https://avatars.githubusercontent.com/u/85921255?v=4)](https://github.com/lt-25 "lt-25 (8 commits)")

---

Tags

laravelgeocodingmapslocationcoordinates

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/lt-25-geocode/health.svg)

```
[![Health](https://phpackages.com/badges/lt-25-geocode/health.svg)](https://phpackages.com/packages/lt-25-geocode)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

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

Geocoder Service Provider for Laravel

7615.4M17](/packages/toin0u-geocoder-laravel)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[api-platform/laravel

API Platform support for Laravel

58171.6k14](/packages/api-platform-laravel)[zidbih/laravel-deadlock

Make temporary Laravel workarounds expire and fail CI when ignored.

985.4k](/packages/zidbih-laravel-deadlock)

PHPackages © 2026

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