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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-address

Address autocomplete

Latest Version on Packagist GitHub Workflow Status Total Downloads

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

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

PHP Build Version
Package Version
Requires php Version ^8.2
guzzlehttp/guzzle Version ^7.1
illuminate/http Version ^10.0|^11.0
illuminate/support Version ^10.0|^11.0
symfony/intl Version ^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package enflow/laravel-address contains the following files

Loading the files please wait ....