Download the PHP package enflow/laravel-address without Composer
On this page you can find all versions of the php package enflow/laravel-address. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download enflow/laravel-address
More information about enflow/laravel-address
Files in enflow/laravel-address
Package laravel-address
Short Description Address autocomplete with support for multiple drivers
License MIT
Informations about the package laravel-address
Address autocomplete
The enflow/laravel-address
package provides a opinionated way on how to implement address fields with autocomplete.
Usage
Step 1 - Install the package
You can install the package via composer:
Step 2 - Config
You must publish the config to set the driver you which to use.
Pushing the config file:
You must specify your driver choice. We provide a driver for HERE out of the box. See the 'Driver' section how to obtain a API key.
Step 3 - Migration
Pushing the migration file:
Step 4 - Prepare your model
The Address
model is provided free to use, and you are able to configure it just like a normal Eloquent relationship:
Migration
Model
Step 5 - Frontend
We highly recommend the use of our @enflow/laravel-address-ui
frontend package. This package adds the ability to add a autocomplete option to your address input for the end-user to easily select their address.
For installation instructions, see https://github.com/enflow-nl/laravel-address-ui
Step 6 - Persisting
After the form has been submitted, we wish to connect the address info the the model. This can be done with the Address::persist
method. You may use it like:
Drivers
We support the following drivers out of the box. This may be extended in the future, and we welcome PRs for new drivers.
HERE
HERE Geocoding and Search provides a fast and easy to use autosuggestion option. We recomend this option due it's relative low cost and ease of use, without additional legal terms.
Product page: https://developer.here.com/products/geocoding-and-search
Pricing: https://developer.here.com/pricing
You may obtain a API token by registrating for an account.
Google Places
Google Places isn't support out of the box and is something we want to support in the future. PRs are welcome!
Mapbox
Mapbox isn't support out of the box and is something we want to support in the future. PRs are welcome!
Testing
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Michel Bardelmeijer
- All Contributors
About Enflow
Enflow is a digital creative agency based in Alphen aan den Rijn, Netherlands. We specialize in developing web applications, mobile applications and websites. You can find more info on our website.
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-address with dependencies
guzzlehttp/guzzle Version ^7.1
illuminate/http Version ^10.0|^11.0
illuminate/support Version ^10.0|^11.0
symfony/intl Version ^7.0