LaravelPackages.net
Acme Inc.
Toggle sidebar
sunscreem/laravel-flickr-gallery

Simple way to connect a flickr album to your website

38
1
1.2
About sunscreem/laravel-flickr-gallery

sunscreem/laravel-flickr-gallery is a Laravel package for simple way to connect a flickr album to your website. It currently has 1 GitHub stars and 38 downloads on Packagist (latest version 1.2). Install it with composer require sunscreem/laravel-flickr-gallery. Discover more Laravel packages by sunscreem or browse all Laravel packages to compare alternatives.

Last updated

Add a Flickr album to your website

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.

Star History Chart