PHPackages                             lefuturiste/google-photos-album-crawler - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. lefuturiste/google-photos-album-crawler

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

lefuturiste/google-photos-album-crawler
=======================================

Google Photos public album crawler/fetcher

v1.1(5y ago)8731[1 issues](https://github.com/lefuturiste/google-photos-album-crawler/issues)[1 PRs](https://github.com/lefuturiste/google-photos-album-crawler/pulls)MITPHP

Since Aug 24Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/lefuturiste/google-photos-album-crawler)[ Packagist](https://packagist.org/packages/lefuturiste/google-photos-album-crawler)[ RSS](/packages/lefuturiste-google-photos-album-crawler/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

 [![Google photos logo](https://camo.githubusercontent.com/abeeaa9a7d699835908b941a2d1f39cef2dbb0de84c8ab0d8b92ba823311d70c/68747470733a2f2f692e696d6775722e636f6d2f7a33776b6969512e706e67)](https://camo.githubusercontent.com/abeeaa9a7d699835908b941a2d1f39cef2dbb0de84c8ab0d8b92ba823311d70c/68747470733a2f2f692e696d6775722e636f6d2f7a33776b6969512e706e67)

 [ ![Latest Stable Version](https://camo.githubusercontent.com/104054990c9624491c67ed60b2fec44d3cffb48c1b5b5a19ee3c66d25782a115/68747470733a2f2f706f7365722e707567782e6f72672f6c656675747572697374652f676f6f676c652d70686f746f732d616c62756d2d637261776c65722f762f737461626c65) ](https://packagist.org/packages/lefuturiste/google-photos-album-crawler) [ ![Total Downloads](https://camo.githubusercontent.com/4507c48985a763cc997afc762f461908c7084e1aa55e35541cb15adc4fe52765/68747470733a2f2f706f7365722e707567782e6f72672f6c656675747572697374652f676f6f676c652d70686f746f732d616c62756d2d637261776c65722f646f776e6c6f616473) ](https://packagist.org/packages/lefuturiste/google-photos-album-crawler) [ ![License](https://camo.githubusercontent.com/afd6944c781228b9ceeb0f1c3624a2becadddf913d8795e43bcf58ae11d4396b/68747470733a2f2f706f7365722e707567782e6f72672f6c656675747572697374652f676f6f676c652d70686f746f732d616c62756d2d637261776c65722f6c6963656e7365) ](https://packagist.org/packages/lefuturiste/google-photos-album-crawler)

PHP 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 &amp; dependencies
-------------------------------

[](#requirements--dependencies)

- php7.1 or newer
- ext-curl
- guzzlehttp/guzzle

Installation
------------

[](#installation)

`composer require lefuturiste/google-photos-album-crawler`

Usage
-----

[](#usage)

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
- `images[]`:
    - `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

```
