Download the PHP package dlin/geocoder without Composer

On this page you can find all versions of the php package dlin/geocoder. 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 geocoder

Dlin Geocoder PHP Lib

1. Overview

This is a PHP Geocoding lib using Google Map API and/or Microsoft Bing Map API.

The goal is to make geocoding easy with Google Map API and/or Bing Map API. The library provides two methods, forward and reverse, for Forward Geocoding and Revesre Geocoding

Forward Geocoding is the process of taking a given location in address format and returning the closes known coordinates to the address provided. The address can be a country, county, city state, zip code, street address, or any combination of these.

Reverse Geocoding is the opposite of Forward Geocoding. It takes the provided coordinates (latitude and longitude) and provides you the closest known location to that point in address format.

This lib accepts multiple Google accounts and/or Bing accounts configuration to avoid problems caused by excessive API usage. If called multiple times, accounts are rotated and used in turns. Accounts also back each other up. If one account fails, other accounts will be used as backup to complete the task.

2. Installation

With composer, add to your composer.json :

3. Usage

This library class, hereafter refered to as Dlin Geocoder, comes with a very simple interface with only two methods. One for Forward Geocoding and one for Revesre Geocoding

Constructor

The constructor of the Geocoder class takes an array of configuration as the parameter. Please refer to the configuration section for details.

Forward Geocoding

Reverse Geocoding

The Returned Value ( Address Object)

The returned value of the above two method is a Dlin/Geocoder/Address DTO object

Most of the fields are self-explanatory, the partial field indicates if the finding is an approximate (alway false for reverse method ), the geoCoding field shows the Google/Bing account used.

If a address is not resolved (e.g. invalid addresss), the returned value will be null.

4. Configuration

The Dlin Geocoder lib constructor takes either an array of account configuration, or a file path to a .ini configuration file.

Configuration Array

The configuration array past to the consturctor must be in the form of :

Configuration file

The lib can also accepts an .ini file as the configuration. Fields in the configuration files mirrors the definition of a configuration array covered above. Here is an example:

5. License

This library is free. Please refer to the license file in the root directory for detail license info.


All versions of geocoder with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.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 dlin/geocoder contains the following files

Loading the files please wait ....