Download the PHP package gplacesphp/api-client without Composer
On this page you can find all versions of the php package gplacesphp/api-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gplacesphp/api-client
More information about gplacesphp/api-client
Files in gplacesphp/api-client
Package api-client
Short Description Modern Google Places API client for PHP
License MIT
Homepage https://github.com/gplacesphp/api-client
Informations about the package api-client
Google Places PHP Api Client
Build status
Version | Linux build | Windows build |
---|---|---|
v1 (master) |
Introduction
Modern, Object-Oriented, client for using Google's Places API, requires PHP v7.1+. Any PSR-7 (HTTP Message Interface) and PSR-17 (HTTP Factories) implementations is supported (and required). Supports caching by any PSR-16 (simple cache) implementation, also works with any HTTPlug client/adapter.
Installation
Usage
This examples uses php-http/guzzle6-adapter
as a PSR-18 implementation
and zendframework/zend-diactoros
as a PSR-7/PSR-17 implementation.
Any other PSR-7/PSR-17/PSR-18 implementations are supported.
If you don't have them installed you will need to run:
Remember to replace <YOUR_API_KEY>
with you key.
More usage examples are in examples
directory.
Place details
Basic example
Find place
Basic example
TODOs
Things to do before stable v1
release:
- [x] Place Details
- [x] Caching Place Details
- [ ] Places Search
- [x] Find Place
- [ ] Nearby Search
- [ ] Text Search
- [ ] Caching Places Search
- [x] Find Place
- [ ] Nearby Search
- [ ] Text Search
- [ ] Place Photos
- [ ] Caching Place Photos
- [x] Use
PSR-18
instead ofHTTPlug
License
This package is free software distributed under the terms of the MIT license.
All versions of api-client with dependencies
ext-json Version *
psr/http-client Version ^1.0
psr/http-factory Version ^1.0
psr/simple-cache Version ^1.0