ZfSnapGoogle
Google API client for Zend Framework 2, (*1)
Module uses official Google SDK as dependency., (*2)
Usage
$youtube = $serviceManager->get('Google_Service_YouTube');
$result = $youtube->search->listSearch('id', [
'q' => 'Google',
'maxResults' => 10,
'videoEmbeddable' => 'true',
'type' => 'video',
]);
How to install?
Via composer.json, (*3)
{
"require": {
"snapshotpl/zf-snap-google": "0.9.*"
}
}
and add module ZfSnapGoogle to application.config.php., (*4)
Configure your Google credentials by settings developer key:, (*5)
return [
'google' => [
'client' => [
'developer_key' => null,
],
],
];
Where can I get Google developer key?, (*6)