PHPackages                             bertrandom/flickrclient - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. bertrandom/flickrclient

ActiveLibrary[API Development](/categories/api)

bertrandom/flickrclient
=======================

Simple OAuth Client for the Flickr API

511PHP

Since Aug 3Pushed 13y ago1 watchersCompare

[ Source](https://github.com/bertrandom/flickrclient)[ Packagist](https://packagist.org/packages/bertrandom/flickrclient)[ RSS](/packages/bertrandom-flickrclient/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (0)

flickrclient
============

[](#flickrclient)

flickrclient is simple PHP client for the Flickr API with OAuth support.

It is intended for quick Flickr hacks where you need a user to authorize with Flickr.

After authing, it mimics [flickr.simple.php](https://github.com/kellan/flickr.simple.php) where all Flickr API calls are made through callMethod(), passing the params you want in an array and getting the raw Flickr PHP array response in return.

Usage
-----

[](#usage)

The OAuth authorization process has token exchanges and callbacks so the best way to understand how to use the library is to look at the demo, which has routes for the authorization and callback. Once you have gotten an oauth\_token and oauth\_token\_secret for the user, this is an example of how to make an API call:

```
$client = new \Bert\Flickr\Client('YOUR FLICKR API KEY GOES HERE', 'YOUR FLICKR API SECRET GOES HERE', 'http://localhost/callback');

$client->setToken(array(
	'oauth_token' => 'oauth_token stored for the user',
	'oauth_token_secret' => 'oauth_token_secret stored for the user',
));

$response = $app['flickr']->callMethod('flickr.people.getInfo', array('user_id' => '61091860@N00'));

if ($response['stat'] == 'ok') {

    $person = $response['person'];

	print_r($person);

}

```

Demo
----

[](#demo)

I've created a simple demo of a user signing in with Flickr and authorizing their account to demonstrate how to use flickrclient. If you would like to browse the source, simply switch to the `demo` branch of flickrclient. The core of the demo is in `web/index.php`. It uses the [Silex](http://silex.sensiolabs.org/) microframework.

### Installation

[](#installation)

```
mkdir flickrclientdemo
cd flickrclientdemo
git clone -b demo git@github.com:bertrandom/flickrclient.git .
curl -s http://getcomposer.org/installer | php
php composer.phar install

```

### Configuration

[](#configuration)

Edit `web/index.php` and set your API key, secret, and callback URL:

```
$app['flickr.api.key'] = 'YOUR FLICKR API KEY GOES HERE';
$app['flickr.api.secret'] = 'YOUR FLICKR API SECRET GOES HERE';
$app['flickr.callback.url'] = 'http://localhost/callback';

```

Point Apache to `web/` and `AllowOverride All` for the directory so that it can read the .htaccess file. Then point your browser to `http://localhost/` and try the demo.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/3ac3ab9a160e9702137036a9892ef10e9b947329fde5a206edfe0044d6025146?d=identicon)[bertrandom](/maintainers/bertrandom)

---

Top Contributors

[![bertrandom](https://avatars.githubusercontent.com/u/57770?v=4)](https://github.com/bertrandom "bertrandom (5 commits)")

### Embed Badge

![Health badge](/badges/bertrandom-flickrclient/health.svg)

```
[![Health](https://phpackages.com/badges/bertrandom-flickrclient/health.svg)](https://phpackages.com/packages/bertrandom-flickrclient)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
