PHPackages                             eyeem/php-wrapper - 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. eyeem/php-wrapper

ActiveLibrary[API Development](/categories/api)

eyeem/php-wrapper
=================

Wrapper for Eyeem API V2 and PHP 5.3

3.0.0(11y ago)7256ApachePHPPHP &gt;=5.3.0

Since May 30Pushed 6y ago5 watchersCompare

[ Source](https://github.com/eyeem/php-wrapper)[ Packagist](https://packagist.org/packages/eyeem/php-wrapper)[ Docs](https://github.com/eyeem/API-php-wrapper)[ RSS](/packages/eyeem-php-wrapper/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (6)Used By (0)

Basics
======

[](#basics)

Installation
------------

[](#installation)

With Composer, create a `composer.json` file and run the `php composer.phar install` command to install it:

```
{
    "require": {
        "eyeem/php-wrapper": "~2.1"
    }
}

```

Without Composer, clone this repository and include the autoload file:

```
require_once __DIR__ . '/eyeem/API-php-wrapper/autoload.php';
```

Then instanciate the class and set your client\_id and client\_secret:

```
$eyeem = new Eyeem();
$eyeem->setClientId('CLIENT_ID');
$eyeem->setClientSecret('CLIENT_SECRET');
```

Resources
=========

[](#resources)

Photo
-----

[](#photo)

Querying an object: `$photo = $eyeem->getPhoto('{photo_id}');`

Acceding a property: `echo $photo->caption;` or `echo $photo->getCaption();`

Getting an object as array: `$array = $photo->toArray();`

List of photo properties: 'id', 'thumbUrl', 'photoUrl', 'width', 'height', 'updated', 'webUrl', 'user', 'caption', 'totalLikes', 'totalComments'

`$photo->getUser();` return an user object.

Acceding a ressource collection: `$comments = $photo->getComments();`

Or: `foreach ($photo->getLikers() as $user) { echo $user->getFullname(); }`

List of photo collections: 'likers' (users), 'albums', 'comments'

Post a comment: `$photo->postComment('Nice Photo!');`

Like/Unlike a photo: `$photo->like();` and `$photo->unlike();`

User
----

[](#user)

`$user = $eyeem->getUser('{user_id}');`

Acceding a property: `echo $user->fullname;` or `echo $user->getFullname();`

List of user properties: 'id', 'fullname', 'nickname', 'thumbUrl', 'photoUrl', 'totalPhotos', 'totalFollowers', 'totalFriends', 'totalLikedAlbums', 'totalLikedPhotos', 'webUrl', 'description'

List of user collections: 'photos', 'friends' (users), 'followers' (users), 'likedAlbums', 'likedPhotos', 'friendsPhotos', 'feed' (album)

Example: `foreach ($user->getFriends() as $friend) { echo $friend->getFullname(); }`

Follow/Unfollow an user: `$user->follow();` and `$user->unfollow();`

Search users: `foreach ($eyeem->searchUsers('ramz') as $user) { echo $user->getFullname(); }`

Authenticated User
------------------

[](#authenticated-user)

Extend the the user ressource.

`$authUser = $eyeem->getAuthUser();`

Update user informations: `$authUser->update(array('fullname' => 'Santa Klaus'));`

Album
-----

[](#album)

`$album = $eyeem->getAlbum('{album_id}');`

List of album properties: 'id', 'name', 'thumbUrl', 'updated', 'webUrl', 'type', 'totalPhotos', 'totalLikers', 'totalContributors'

List of album collections: 'photos', 'likers' (users), 'contributors' (users)

Example: `foreach ($album->getPhotos() as $photo) { echo $photo->getCaption(); }`

Subscribe/Unsubscribe to an album: `$album->subscribe();` and `$album->unsubscribe();`

Add an existing photo to an album: `$album->addPhoto($photo);` and `$album->addPhoto('{photo_id_}');`

Remove a photo from an album: `$album->removePhoto($photo);` and `$album->removePhoto('{photo_id_}');`

Search albums: `foreach ($eyeem->searchAlbums('berlin') as $album) { echo $album->getName(); }`

Comment
-------

[](#comment)

List of comment properties: 'id', 'photoId', 'updated', 'message', 'user'

`$comment->getUser();` return an user object.

Delete a comment: `$comment->delete();`

Upload a photo
--------------

[](#upload-a-photo)

1 step:

`$photo = $eyeem->postPhoto(array('photo' => '@/home/me/a-nice-photo.jpg', 'caption' => 'A nice photo.'));`

2 steps:

```
$filename = $eyeem->uploadPhoto('/home/me/a-nice-photo.jpg');
$photo = $eyeem->postPhoto(array('filename' => $filename, 'caption' => 'A nice photo.'));

```

License
=======

[](#license)

```
Copyright 2012-2013 EyeEm Mobile GmbH

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 92.9% 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.

###  Release Activity

Cadence

Every ~181 days

Total

4

Last Release

4233d ago

Major Versions

2.1.2 → 3.0.02014-11-27

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/806?v=4)[François Hodierne](/maintainers/znarf)[@znarf](https://github.com/znarf)

---

Top Contributors

[![znarf](https://avatars.githubusercontent.com/u/806?v=4)](https://github.com/znarf "znarf (183 commits)")[![tobitos](https://avatars.githubusercontent.com/u/509421?v=4)](https://github.com/tobitos "tobitos (10 commits)")[![FrancisVarga](https://avatars.githubusercontent.com/u/142090?v=4)](https://github.com/FrancisVarga "FrancisVarga (3 commits)")[![LarsFronius](https://avatars.githubusercontent.com/u/609378?v=4)](https://github.com/LarsFronius "LarsFronius (1 commits)")

### Embed Badge

![Health badge](/badges/eyeem-php-wrapper/health.svg)

```
[![Health](https://phpackages.com/badges/eyeem-php-wrapper/health.svg)](https://phpackages.com/packages/eyeem-php-wrapper)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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