Skip to content

Modern PHP package to make Flickr API calls. Ships with Laravel implementation.

License

Notifications You must be signed in to change notification settings

jeroenvreuls/Flickr

 
 

Repository files navigation

PHP Flickr API

Latest Version on Packagist Quality Score StyleCI

Modern PHP package to make Flickr API calls. Ships with Laravel implementation.

Install

Via Composer

$ composer require jeroen-g/flickr

Usage

General

// $key is your Flickr API key.
$flickr = new JeroenG\Flickr\Flickr(new JeroenG\Flickr\Api($key));

// 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);

Laravel

Add the Service Provider and (optionally) the facade to config/app.php: JeroenG\Flickr\FlickrServiceProvider::class, 'Flickr' => JeroenG\Flickr\FlickrLaravelFacade::class, 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');

Change log

Please see the changelog for more information what has changed recently.

Contributing

Please see contributing for details.

Credits

License

The EUPL License. Please see the License File for more information.

About

Modern PHP package to make Flickr API calls. Ships with Laravel implementation.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%