PHP Package: spatie/geocoder

Spatie's Geocoder PHP library offers powerful geocoding capabilities for location-based applications.

Current Version: 3.16.2
Last Updated: 2025-11-20
PHP Requirement: ^7.2|^8.0
Dependencies:
symfony/http-client
php-http/guzzle6-adapter
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

Geocoder by Spatie is a feature-rich PHP library that simplifies geocoding tasks, providing accurate location data. With support for various APIs and formats, it's a versatile tool for applications requiring geospatial functionalities.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 3.16.2

Download Download v3.16.2

Previous Versions

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/spatie/geocoder/3.16.2/loader.php';
require_once 'libs/symfony/http-client/8.0.3/loader.php';
require_once 'libs/php-http/guzzle6-adapter/2.0.2/loader.php';

use Spatie\Geocoder\Geocoder;

$obj = new Geocoder();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.