PHP code example of lefuturiste / google-photos-album-crawler
1. Go to this page and download the library: Download lefuturiste/google-photos-album-crawler 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/ */
lefuturiste / google-photos-album-crawler example snippets
= "https://photos.google.com/share/XXX?key=XXX";
$crawler = new \Lefuturiste\GooglePhotosAlbumCrawler\Crawler();
$album = $crawler->getAlbum($url);
echo "Album: " . $album['id'] . " " . $album['name'] . "\n";
echo "Contain: " . count($album['images']) . " images \n\n";
foreach ($album['images'] as $image) {
echo "- " . $image['id'] . " " . $image['width'] . "x" . $image['height'] . " " . $image['url'] . "\n";
}