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
Location Bundle

Location Bundle Laravel Package

jul/location-bundle

jul/location-bundle is a Symfony bundle for PHP apps that need location-aware features. It packages reusable services and conventions for integrating geographic data, helping keep location logic organized and out of your core application code.

View on GitHub
Deep Wiki
Context7

Provides a location management system to use in conjonction with a map API

Frequently asked questions about Location Bundle
Can I install jul/location-bundle in a Laravel application?
No, not as a runtime dependency. Composer may resolve it, but Laravel will not boot or auto-register a Symfony bundle, and its Doctrine mappings, form types, DI extensions, and event wiring do not map onto Eloquent, Form Requests, service providers, or Laravel's container. A dependency on symfony/framework-bundle is a hard incompatibility with the Laravel runtime.
What features does jul/location-bundle actually provide?
It provides a reusable Location entity with address, coordinates, and label fields, a location type or category concept, distance and proximity helpers, and a pluggable map or geocoding provider boundary. It also includes Symfony service and configuration integration for those pieces. Its main value to Laravel developers is the domain shape, not the Symfony implementation.
Does jul/location-bundle support Laravel 10 or Laravel 11?
There is no Laravel version support because this is a Symfony bundle, not a Laravel package. You should verify its PHP and Symfony component constraints in composer.json before considering any code reuse. Do not expect Laravel service providers, facades, Artisan commands, or Eloquent models.
How do I reuse its location model in Laravel?
Translate the concepts rather than porting the code. Create a locations table with normalized address fields, decimal(10,7) latitude and longitude, an optional location type, and timestamps, then attach it to domain records via location_id or a polymorphic locationable relationship. Keep the map vendor behind a Geocoder or MapProvider interface bound to one adapter plus a fake adapter for tests.
Does it include geocoding and map provider integrations?
The bundle exposes a pluggable provider boundary, but the supported map and geocoding providers are not clearly documented in the overview. Credential handling, quotas, retries, and failure behavior should be treated as unknown until you audit the source. In Laravel, implement your own adapter behind a queued geocoding job and record fallback behavior explicitly.
Is jul/location-bundle production-ready and actively maintained?
Treat it as unmaintained by default. It has very low adoption signals, including few stars and no dependents, which means little production battle-testing and no ecosystem of third-party fixes. If you reuse any code, pin a specific commit, perform a security review, and accept that you will own patches and PHP or framework upgrades.
Can jul/location-bundle handle radius search or polygon queries?
It offers distance and proximity helpers, but it is not a full geospatial engine for radius queries, polygon containment, or routing. For Laravel, defer those needs to database spatial features such as MySQL 8 spatial functions or PostGIS, or to a dedicated search index. Keep the application model simple until the roadmap actually requires spatial querying.
What Laravel alternatives should I consider instead of this Symfony bundle?
The safer path is a thin in-house Laravel module with a locations migration, Location model, config file, and a Geocoder contract bound to one provider adapter. Pair that with a maintained HTTP client or geocoder library and use your database's spatial features for proximity search. This avoids the vendor risk and gives you full control of the geocoding contract.
How should I test a Laravel location and geocoding module inspired by this bundle?
Bind a fake or null Geocoder adapter in tests so the suite never calls a live map API. Use HTTP client mocks to assert request payloads and simulate quota, timeout, and invalid-address failures, and run geocoding through a queued job so retries are testable. Also test coordinate precision and address normalization at the model and migration level.
What license and PHP version constraints does jul/location-bundle use?
Check composer.json directly before relying on any assumption about the license or PHP and Symfony constraints. The overview does not state them clearly, and the bundle may pin older Symfony component versions that are incompatible with a modern Laravel stack. If you reuse code, pin a commit and record the license and compatibility review in your build-versus-borrow decision.
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.
robertmarney/lara-hierarchial-collections
simonschaufi/rule-doc-generator
emissaoja/emissaoja
blackbricksoftware/gravityforms-civicrm-form-processor
al-rahabi/fancy-crud
jinas/dhivatar-component
mltstephane/laravel-quality
bernskiold/laravel-talentlms
bernskioldmedia/laravel-form-architect
youbar/easy-crud
c-point-labs/laravel-hostyourai
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo