sunscreem/laravel-flickr-gallery
Composer 安装命令:
composer require sunscreem/laravel-flickr-gallery
包简介
Simple way to connect a flickr album to your website
README 文档
README
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.
统计信息
- 总下载量: 38
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-03-18