samwilson / phpflickr

A PHP wrapper for the Flickr API, including OAuth.
https://packagist.org/packages/samwilson/phpflickr
GNU General Public License v2.0
39 stars 15 forks source link

flickr-bundle for Symfony developers #67

Open tacman opened 3 months ago

tacman commented 3 months ago

I create a Symfony bundle that makes installing and using this library very easy.

https://github.com/survos/SurvosFlickrBundle

The README shows how to create a Symfony application by simply cutting and pasting from the command line. The hardest part is setting up the API Key and secret!

However, the demo simply shows one of my albums. What would be much more interesting is to integrate the auth, but I'm stuck on #66

In addition to putting the api key and secret in environment variables, there are 2 twig functions that make getting the thumbnail and the photo page easy. Note that if you embed the thumbnail in a webpage, you are required (by their terms of service) to provide a link to the photo page on Flickr.

   {% set url = flickrThumbnailUrl(photo) %}
        <figure class="figure">
            <a href="{{ flickrPageUrl(photo) }}" target="_blank">