PHP code example of snapshotpl / zf-snap-google
1. Go to this page and download the library: Download snapshotpl/zf-snap-google library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
snapshotpl / zf-snap-google example snippets
$youtube = $serviceManager->get('Google_Service_YouTube');
$result = $youtube->search->listSearch('id', [
'q' => 'Google',
'maxResults' => 10,
'videoEmbeddable' => 'true',
'type' => 'video',
]);
return [
'google' => [
'client' => [
'developer_key' => null,
],
],
];