Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Php Coordinate

Php Coordinate Laravel Package

ixnode/php-coordinate

ixnode/php-coordinate is a lightweight PHP library for working with geographic coordinates. It offers value objects and helpers to create, validate, convert, and compare latitude/longitude pairs, with distance calculations and formatting for maps and location-aware applications.

Deep Wiki
Context7

ixnode/php-coordinate is a lightweight PHP library for working with geographic coordinates in a clean, object-oriented way. It provides immutable value objects for latitude and longitude, validating input and preventing common mistakes such as swapped or out-of-range values. The package is framework-agnostic and integrates seamlessly into any PHP project, including Laravel, where it can be used to model locations, geotagged records, or map markers.

  • Immutable value objects for latitude and longitude
  • Automatic range validation on construction
  • Simple formatting and conversion helpers
  • Distance calculation between two coordinates
  • Framework-agnostic, PSR-friendly and Laravel-ready
Frequently asked questions about Php Coordinate
What is ixnode/php-coordinate used for?
ixnode/php-coordinate is a lightweight PHP library for working with geographic coordinates. It provides value objects and helper methods for latitude/longitude pairs, distance and bearing calculations, and normalizing coordinate strings or values into a unique format. You can use it in Laravel applications or in standalone PHP projects.
How do I install ixnode/php-coordinate with Composer?
Install it with Composer using composer require ixnode/php-coordinate. Because it is a standalone PHP library, you typically do not need to register a Laravel service provider. Once installed, Composer autoloading lets you reference its coordinate classes directly in your code.
Does ixnode/php-coordinate work with Laravel?
Yes. The package is framework-agnostic, so it can be used inside Laravel controllers, services, jobs, models, or custom validation logic just like any other Composer dependency. It does not require Laravel-specific configuration in most cases.
Which PHP and Laravel versions does ixnode/php-coordinate support?
The package is framework-agnostic, so it is not tied to a specific Laravel release. Check its composer.json on Packagist for the exact PHP version constraint before installing. In Laravel projects, any Laravel version running a compatible PHP version should be able to use it.
How do I calculate the distance between two coordinates?
The library provides distance helpers for latitude/longitude coordinate pairs. Create the relevant coordinate value objects and use the distance method exposed by the package; consult the README for the exact method signature and return units. Add your own tests with known point pairs when integrating it into a Laravel app.
Can ixnode/php-coordinate parse different coordinate string formats?
Yes. The library is designed to convert various coordinate strings and values into a unique format. That makes it useful for normalizing input from APIs, forms, imports, or third-party systems before storing or comparing coordinates. Check the README for the supported input formats and exact conversion API.
How do I calculate bearing between two points with ixnode/php-coordinate?
The library offers bearing calculations alongside its distance helpers for latitude/longitude pairs. Create the relevant coordinate value objects and use the bearing method exposed by the package; consult the README for the exact signature and return units. Wrap your own assertions around known point pairs when adding it to a Laravel project.
Is ixnode/php-coordinate suitable for production use?
It is a small, framework-agnostic value-object library, which keeps the integration surface low. For production, pin the Composer version, add tests around the coordinate formats and calculations your app relies on, and review the repository's maintenance and test coverage. Avoid assuming behavior for edge cases without verifying against the README.
Can I use ixnode/php-coordinate for geocoding or address lookup?
No. ixnode/php-coordinate focuses on coordinate value objects, parsing and normalization, distance, and bearing calculations. It is not a geocoding or reverse-geocoding service. Pair it with a dedicated geocoder or API if you need address lookup.
What are alternatives to ixnode/php-coordinate for PHP and Laravel?
Alternatives in the PHP ecosystem include phpgeo, geotools, and brick/geo, each with different strengths for distance, geometry, or value objects. Choose based on whether you need simple latitude/longitude helpers, GIS-style geometry, or Laravel-specific integration. Evaluate their PHP version support and maintenance activity before switching.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package