PHP code example of webeleven / easyflickr

1. Go to this page and download the library: Download webeleven/easyflickr library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

webeleven / easyflickr example snippets


Webeleven\EasyFlickr\EasyFlickrServiceProvider::class,

'EasyFlickr' => Webeleven\EasyFlickr\Facades\EasyFlickr::class,

return [
    'flickr_key' => env('FLICKR_KEY'),
    'flickr_secret' => env('FLICKR_SECRET'),
    'flickr_user' => env('FLICKR_USER')
];

Route::get('/', function () {

    return EasyFlickr::getAlbumInfo('PHOTOSET_ID');
     
});

Route::get('/', function () {
    
    return EasyFlickr::getAlbums($page, $limit); 

});

Route::get('/', function () {
    
    return EasyFlickr::getPhotosByAlbum('PHOTOSET_ID'); 
    
});
shell
php artisan vendor:publish --provider="Webeleven\EasyFlickr\EasyFlickrServiceProvider"