Download the PHP package lefuturiste/google-photos-album-crawler without Composer
On this page you can find all versions of the php package lefuturiste/google-photos-album-crawler. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Files in lefuturiste/google-photos-album-crawler
All versions of google-photos-album-crawler with dependencies
Informations about the package google-photos-album-crawler
PHP Google photos album crawler
Just a little and light script to fetch an album name, images from a public google photos album url. This simple script will simply use guzzle to get the html of the page, apply a regex to get the JSON data, then parse it. For big album it might take a little bit of time so be patient and make sure to not block the main thread of your application. You can for example use this script in a async task or a job queue. Enjoy!
Requirements & dependencies
- php7.1 or newer
composer require lefuturiste/google-photos-album-crawler
Be sure to use a public google photos sharing URL with the correct format.
Use the Crawler class inside the right namespace and call the method
getAlbum after instantiating the class.
This method return the following format:
id: id of the album
name: name of the album
id: id of the image
url: the base url to download the image
width: the max width of the image
height: the max height of the image
For a simple in a file example see: example.php
Any issues of suggetion, this is a open source project so you can use github Issues and PR. Also feel free to contact me if you want a quick answer because I don't notice the github notifications...