2017 © Pedro Peláez
 

package google-places-api

The PHP Google Places API

image

tmarois/google-places-api

The PHP Google Places API

  • Tuesday, May 15, 2018
  • by timothymarois
  • Repository
  • 1 Watchers
  • 0 Stars
  • 122 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 1256 % Grown

The README.md

The PHP Google Places API

NOTE: This project might be missing features, please send pull requests for additional usage.

This package allows you to connect and pull information from the Google Places API, (*1)

You will need a Google API Client Key to use Google Places API., (*2)

Features:

Installation:

Composer to install package., (*3)

Use composer require tmarois/google-places-api dev-master, (*4)

Basic Usage:

$client = new \GooglePlaces\Client('YOUR_CLIENT_KEY');

// find all movie theaters in this zip code
$response = $client->placeSearch('textsearch')->setOptions([
    'query' => 'movie theaters in 28202'
])->request();

// get specific place detail information
$placeId  = 'ChIJvznB1hAnVIgRrWFNVdxDHm0';
$response = $client->placeDetails($placeId)->request();

// get a photo found in the previous responses,
// look up by the "photo_reference"
// save the photo locally for caching
$photoId = 'CmRaAAAAoKx6KQyrDEJ0si1ekan0QaZ6Y02NpXwBFa1ncLaKhZECbFa';
$client->placePhotos($photoId,[450,450])->request()->save(__DIR__.'/images');

Resources:

Contributions

Accepting contributions and feedback. Send in any issues and pull requests., (*5)

The Versions

15/05 2018

dev-master

9999999-dev https://github.com/tmarois/google-places-api

The PHP Google Places API

  Sources   Download

The Requires

 

The Development Requires

google places googlemaps googleplacesapi placesapi