| Package Data | |
|---|---|
| Maintainer Username: | JeroenG |
| Maintainer Contact: | jeroengjeroeng@gmail.com (JeroenG) |
| Package Create Date: | 2016-05-29 |
| Package Last Update: | 2021-05-11 |
| Home Page: | |
| Language: | PHP |
| License: | EUPL-1.1 |
| Last Refreshed: | 2025-10-30 03:09:23 |
| Package Statistics | |
|---|---|
| Total Downloads: | 56,291 |
| Monthly Downloads: | 795 |
| Daily Downloads: | 31 |
| Total Stars: | 25 |
| Total Watchers: | 3 |
| Total Forks: | 10 |
| Total Open Issues: | 2 |
Modern PHP package to make Flickr API calls. Ships with Laravel implementation.
Via Composer
$ composer require jeroen-g/flickr
// $key is your Flickr API key. $format is optional, it sets the Flickr response format.
$flickr = new JeroenG\Flickr\Flickr(new JeroenG\Flickr\Api($key, $format));
// https://www.flickr.com/services/api/flickr.test.echo.html
$echoTest = $flickr->echoThis('helloworld');
// https://www.flickr.com/services/api/flickr.photosets.getList.html
$photosets = $flickr->listSets($arrayOfParameters);
// Setting up other API requests. See https://www.flickr.com/services/api
$result = $flickr->request('flickr.method', $arrayOfParameters);
Add the Service Provider and (optionally) the facade to config/app.php:
JeroenG\Flickr\FlickrServiceProvider::class,
'Flickr' => JeroenG\Flickr\FlickrLaravelFacade::class,
This is done automatically in Laravel 5.5 with package discovery.
In your .env file, set a FLICKR_KEY and FLICKR_SECRET with your Flickr API key and secret. More information on this is found here.
The functions act mostly the same as above, for example:
$echoTest = Flickr::echoThis('helloworld');
Please see the changelog for more information what has changed recently.
Please see contributing for details.
The EUPL License. Please see the License File for more information.