2017 © Pedro Peláez
 

library geolocation-php-api

This Geolocation PHP class connects to Google Maps API to find latitude/longitude or address.

image

jeroendesloovere/geolocation-php-api

This Geolocation PHP class connects to Google Maps API to find latitude/longitude or address.

  • Friday, April 13, 2018
  • by jeroendesloovere
  • Repository
  • 7 Watchers
  • 55 Stars
  • 34,017 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 27 Forks
  • 0 Open issues
  • 12 Versions
  • 10 % Grown

The README.md

Geolocation PHP class connects to Google MAPS API

Latest Stable Version License Build Status Scrutinizer Code Quality, (*1)

This Geolocation PHP class connects to Google Maps API to find latitude/longitude or address., (*2)

Installing

Using Composer

When using Composer you can always load in the latest version., (*3)

``` json composer require jeroendesloovere/geolocation-php-api, (*4)

Check [in Packagist](https://packagist.org/packages/jeroendesloovere/geolocation-php-api).

### Usage example

**getCoordinates**

> Get latitude/longitude coordinates from address.

``` php
$street = 'Koningin Maria Hendrikaplein';
$streetNumber = '1';
$city = 'Gent';
$zip = '1';
$country = 'belgium';

$result = Geolocation::getCoordinates(
    $street,
    $streetNumber,
    $city,
    $zip,
    $country
);

getAddress, (*5)

Get address from latitude/longitude coordinates., (*6)

``` php $latitude = 51.0363935; $longitude = 3.7121008;, (*7)

$result = Geolocation::getAddress( $latitude, $longitude );, (*8)


Check [the Geolocation class source](./src/Geolocation.php). ## Symfony bundle I've also created a Symfony bundle. View the [Geolocation bundle](https://github.com/jeroendesloovere/geolocation-bundle). ## Tests We have tests to make sure everything works as expected. First execute `composer install`. Then execute `vendor/bin/phpunit tests`. ### Coding Syntax We use [squizlabs/php_codesniffer](https://packagist.org/packages/squizlabs/php_codesniffer) to maintain the code standards. Type the following to execute them: ```bash # To view the code errors vendor/bin/phpcs --standard=psr2 --extensions=php --warning-severity=0 --report=full "src" # OR to fix the code errors vendor/bin/phpcbf --standard=psr2 --extensions=php --warning-severity=0 --report=full "src"

Read documentation about the code standards, (*9)

Documentation

The class is well documented inline. If you use a decent IDE you'll see that each method is documented with PHPDoc., (*10)

Contributing

It would be great if you could help us improve this class. GitHub does a great job in managing collaboration by providing different tools, the only thing you need is a GitHub login., (*11)

  • Use Pull requests to add or update code
  • Issues for bug reporting or code discussions
  • Or regarding documentation and how-to's, check out Wiki More info on how to work with GitHub on help.github.com.

License

The module is licensed under MIT. In short, this license allows you to do everything as long as the copyright statement stays present., (*12)

The Versions

13/04 2018

dev-master

9999999-dev https://github.com/jeroendesloovere/geolocation-php-api

This Geolocation PHP class connects to Google Maps API to find latitude/longitude or address.

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

api php geolocation google maps

13/04 2018

2.1.0

2.1.0.0 https://github.com/jeroendesloovere/geolocation-php-api

This Geolocation PHP class connects to Google Maps API to find latitude/longitude or address.

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

api php geolocation google maps

03/04 2018

2.0.2

2.0.2.0 https://github.com/jeroendesloovere/geolocation-php-api

This Geolocation PHP class connects to Google Maps API to find latitude/longitude or address.

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

api php geolocation google maps

29/03 2018

2.0.1

2.0.1.0 https://github.com/jeroendesloovere/geolocation-php-api

This Geolocation PHP class connects to Google Maps API to find latitude/longitude or address.

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

api php geolocation google maps

29/03 2018

2.0.0

2.0.0.0 https://github.com/jeroendesloovere/geolocation-php-api

This Geolocation PHP class connects to Google Maps API to find latitude/longitude or address.

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

api php geolocation google maps

15/03 2018

1.4.1

1.4.1.0 https://github.com/jeroendesloovere/geolocation-php-api

This Geolocation PHP class connects to Google Maps API to find latitude/longitude or address.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

api php geolocation google maps

23/01 2018

1.4.0

1.4.0.0 https://github.com/jeroendesloovere/geolocation-php-api

This Geolocation PHP class connects to Google Maps API to find latitude/longitude or address.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

api php geolocation google maps

11/06 2015

1.3.1

1.3.1.0 https://github.com/jeroendesloovere/geolocation-php-api

This Geolocation PHP class connects to Google Maps API to find latitude/longitude or address.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

api php geolocation google maps

11/06 2015

1.3.0

1.3.0.0 https://github.com/jeroendesloovere/geolocation-php-api

This Geolocation PHP class connects to Google Maps API to find latitude/longitude or address.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

api php geolocation google maps

21/05 2015

1.2.0

1.2.0.0 https://github.com/jeroendesloovere/geolocation-php-api

This Geolocation PHP class connects to Google Maps API to find latitude/longitude or address.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

api php geolocation google maps

02/04 2014

1.1.0

1.1.0.0 https://github.com/deslooverej/geolocation-php-api

This Geolocation PHP class connects to Google Maps API to find latitude/longitude or address.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

api php geolocation google maps

03/10 2013

1.0.0

1.0.0.0 https://github.com/siesqo/geolocation-php-api

This Geolocation PHP class connects to Google Maps API to find latitude/longitude or address.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

api php geolocation google maps