composer require 'nekland/places-api:~1.0'
This will add nekland/youtube-api
to your composer.json file and automatically download it to your vendor
folder.
- Declare a new instance of Places object
- Configure an authentication strategy
- Get an API class and ask data from it
Example:
<?php
use Nekland\PlacesApi\Places;
$api = new Places();
$api->useAuthentication('PublicApiAccess', ['key' => 'SOME KEY']);
$result = $api->getSearchApi()->search('49.8445057,3.2912589', 1000);
- Learn more about authentication
- Api Search reference
- Api Places reference
- Api Autocomplete reference