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(2mo ago)17MITPHPPHP ^7.4|^8.0|^8.1|^8.2|^8.3

Since Mar 3Pushed 2mo 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 1mo ago

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

39

—

LowBetter than 86% of packages

Maintenance85

Actively maintained with recent releases

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

76d 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

[watson/active

Laravel helper for recognising the current route, controller and action

3253.6M14](/packages/watson-active)[glhd/conveyor-belt

14797.0k](/packages/glhd-conveyor-belt)[dragon-code/pretty-routes

Pretty Routes for Laravel

10058.7k4](/packages/dragon-code-pretty-routes)[erlandmuchasaj/laravel-gzip

Gzip your responses.

40129.3k2](/packages/erlandmuchasaj-laravel-gzip)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)[dive-be/laravel-geo

Translate IP addresses into geo locations

3710.5k](/packages/dive-be-laravel-geo)

PHPackages © 2026

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