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 14y ago1 watchersCompare

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

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 21% 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://avatars.githubusercontent.com/u/57770?v=4)[Bertrand Fan](/maintainers/bertrandom)[@bertrandom](https://github.com/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

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.5M7](/packages/exsyst-swagger)[lucasdotvin/laravel-soulbscription

A straightforward interface to handle subscriptions and features consumption.

709209.3k](/packages/lucasdotvin-laravel-soulbscription)[pimax/fb-messenger-php

Facebook Messenger Bot PHP API

313188.5k2](/packages/pimax-fb-messenger-php)

PHPackages © 2026

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