1. Go to this page and download the library: Download jooservices/flickr 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/ */
use JOOservices\Flickr\Enums\PhotoSize;
use JOOservices\Flickr\Support\PhotoUrlBuilder;
$url = PhotoUrlBuilder::forPhoto($photo)->url(PhotoSize::Medium640);
use JOOservices\Flickr\Enums\AuthPermission;
$requestToken = $flickr->auth()->requestToken(AuthPermission::Write);
$authorizationUrl = $flickr->auth()->authorizationUrl($requestToken, AuthPermission::Write);
// Persist the request token secret between the redirect legs (e.g. in session storage).
$requestTokenSecret = $requestToken->oauthTokenSecret;
// After Flickr redirects back with oauth_token and oauth_verifier:
$accessToken = $flickr->auth()->accessToken($oauthToken, $oauthVerifier, $requestTokenSecret);
$flickr->tokens()->put($accessToken);