sunscreem/laravel-flickr-gallery

Simple way to connect a flickr album to your website

1.2 2018-05-04 18:46 UTC

This package is auto-updated.

Last update: 2024-04-26 01:31:19 UTC


README

Latest Version on Packagist Software License Total Downloads

Flickr has some great tools for uploading, storing and editing your photos. This package uses the flickr API to bring those photo to your own website.

It includes an optional lightbox/swipeable photo gallery.

This package has only been tested on Laravel >= 5.5

Installation

First, install the package via composer:

composer require sunscreem/laravel-flickr-gallery

The package will automatically register itself.

Now publish the configuration file and example view:

php artisan vendor:publish --provider="Sunscreem\LaravelFlickrGallery\LaravelFlickrGalleryServiceProvider"

Now add the following route to your routes\web.php file:

Route::get('/gallery', function () {
     return view('vendor.laravel-flickr-gallery.simple-photo-gallery');
 });

Finally perform the migration:

php artisan migrate

Configuration

Set your flickr user id, key and secret in your .env file.

Here's a guide on finding your Flickr ID.

And here's how to generate your API key and secret.

FLICKR_USER_ID_TO_FETCH=1234567890@N00
FLICKR_KEY=[your-flickr-key]
FLICKR_SECRET=[your-flickr-secret]

Usage

Using php artisan you can pull in the latest photos from Flickr. You can, of course, schedule this to run in the background:

php artisan flickr:pull

Finally, view the gallery on your website by visiting your-site.com/gallery.

Credits

Support

If you have found this package helpful please consider buying Rob a beer!

License

The MIT License (MIT). Please see License File for more information.