PHP Package: matanyadaev/laravel-eloquent-spatial

Laravel Eloquent Spatial is a PHP library that enhances spatial data handling in Laravel Eloquent models, providing geospatial capabilities for efficient data management.

Current Version: 4.5.0
Last Updated: 2025-02-26
PHP Requirement: ^8.1
Dependencies:
illuminate/database
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

Laravel Eloquent Spatial is a feature-rich library tailored for Laravel applications, enabling seamless integration of geospatial data within Eloquent ORM. With support for various spatial database types, it simplifies geographical data manipulation, spatial queries, and distance calculations, offering a robust solution for location-based services.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 4.5.0

Download Download v4.5.0

Code Integration Example

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

<?php
// Example from PHPlibraries.com
require_once 'libs/matanyadaev/laravel-eloquent-spatial/4.5.0/loader.php';
require_once 'libs/illuminate/database/12.33.0/loader.php';

use Matanya\LaravelEloquentSpatial\SpatialPoint;

$obj = new SpatialPoint();
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.