PHPackages                             vladgaus/tumblr - 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. vladgaus/tumblr

ActiveLibrary[API Development](/categories/api)

vladgaus/tumblr
===============

00PHP

Since Nov 4Pushed 5y ago1 watchersCompare

[ Source](https://github.com/vladgaus/tumblr-for-api)[ Packagist](https://packagist.org/packages/vladgaus/tumblr)[ RSS](/packages/vladgaus-tumblr/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

tumblr.php
==========

[](#tumblrphp)

[![Build Status](https://camo.githubusercontent.com/92e079433df82e6bb326bf38c7956431000a34f8f832d253ecfa40c4ee9d1dcd/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f74756d626c722f74756d626c722e7068702e737667)](http://travis-ci.org/tumblr/tumblr.php)

The official PHP client for the [Tumblr API](http://www.tumblr.com/docs/en/api/v2).

Usage
-----

[](#usage)

### Basic Usage

[](#basic-usage)

The first step is setting up a Client:

```
$client = new Tumblr\API\Client($consumerKey, $consumerSecret);
$client->setToken($token, $tokenSecret);
```

And then you can do anything you'd like:

```
foreach ($client->getUserInfo()->user->blogs as $blog) {
	echo $blog->name . "\n";
}
```

### User Methods

[](#user-methods)

```
$client->getUserInfo();

$client->getDashboardPosts($options = null);
$client->getLikedPosts($options = null);
$client->getFollowedBlogs($options = null);

$client->follow($blogName);
$client->unfollow($blogName);

$client->like($postId, $reblogKey);
$client->unlike($postId, $reblogKey);
```

### Blog Methods

[](#blog-methods)

```
$client->getBlogInfo($blogName);

$client->getBlogAvatar($blogName, $size = null);

$client->getBlogPosts($blogName, $options = null);
$client->getBlogLikes($blogName, $options = null);
$client->getBlogFollowers($blogName, $options = null);

$client->getQueuedPosts($blogName, $options = null);
$client->getDraftPosts($blogName, $options = null);
$client->getSubmissionPosts($blogName, $options = null);
```

### Post Methods

[](#post-methods)

```
$client->createPost($blogName, $data);
$client->editPost($blogName, $id, $data);
$client->deletePost($blogName, $id, $reblogKey);
$client->reblogPost($blogName, $id, $reblogKey, $options = null);
```

### Tagged Methods

[](#tagged-methods)

```
$client->getTaggedPosts($tag, $options = null);
```

Dependencies
------------

[](#dependencies)

tumblr.php is available [on composer](https://packagist.org/packages/tumblr/tumblr)

- guzzle/guzzle 6.\*
- eher/oauth 1.0.x

If you're using composer (you should!) you can just run `php composer.phar install` and you'll be good to go. More details on [getcomposer.org](http://getcomposer.org/).

Running tests
-------------

[](#running-tests)

tumblr.php has full unit tests that can be run with PHPUnit like this:

```
$ vendor/bin/phpunit
```

That will also generate a coverage report into `./coverage`

Copyright and license
---------------------

[](#copyright-and-license)

Copyright 2013 Tumblr, Inc.

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

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.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 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/3024179?v=4)[bengalua](/maintainers/bengalua)[@Bengalua](https://github.com/Bengalua)

---

Top Contributors

[![vladgaus](https://avatars.githubusercontent.com/u/14161814?v=4)](https://github.com/vladgaus "vladgaus (2 commits)")

### Embed Badge

![Health badge](/badges/vladgaus-tumblr/health.svg)

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

###  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)
