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

ActiveLibrary[API Development](/categories/api)

tumblr/tumblr
=============

Official Tumblr PHP Client

v0.4.2(3y ago)405416.2k↓27.4%113[20 issues](https://github.com/tumblr/tumblr.php/issues)[4 PRs](https://github.com/tumblr/tumblr.php/pulls)9Apache-2.0PHP

Since Mar 12Pushed 2y ago63 watchersCompare

[ Source](https://github.com/tumblr/tumblr.php)[ Packagist](https://packagist.org/packages/tumblr/tumblr)[ Docs](https://github.com/tumblr/tumblr.php)[ RSS](/packages/tumblr-tumblr/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (3)Versions (14)Used By (9)

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

[](#tumblrphp)

[![CI](https://github.com/tumblr/tumblr.php/actions/workflows/ci.yaml/badge.svg)](https://github.com/tumblr/tumblr.php/actions/workflows/ci.yaml)

The official PHP client for the [Tumblr API](https://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);
```

Examples
--------

[](#examples)

Examples and "Getting Started" guide are available in [the `examples` folder](examples).

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

[](#dependencies)

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

- guzzle/guzzle 6.x or 7.x
- eher/oauth 1.0.x

If you're using Composer (you should!) you can just run `composer require tumblr/tumblr` and you'll be good to go. More details on [getcomposer.org](https://getcomposer.org/).

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

[](#running-tests)

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

```
php vendor/bin/phpunit
```

This will also generate a coverage report into `./build/coverage`:

```
XDEBUG_MODE=coverage php vendor/bin/phpunit --coverage-html=build/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

46

—

FairBetter than 93% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity56

Moderate usage in the ecosystem

Community42

Growing community involvement

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 58.3% 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 ~459 days

Recently: every ~757 days

Total

9

Last Release

1140d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/edcb8dde95c71b1c97c3c91e57d3548795fa2014c657744fb878e2be3b5949fc?d=identicon)[sanmai](/maintainers/sanmai)

![](https://www.gravatar.com/avatar/7c5869ecbb8e0eac7e8b8e0f3cf7bdd8d5fcdc4abc10a72281872c53f8639d44?d=identicon)[automattic](/maintainers/automattic)

---

Top Contributors

[![seejohnrun](https://avatars.githubusercontent.com/u/64965?v=4)](https://github.com/seejohnrun "seejohnrun (67 commits)")[![sanmai](https://avatars.githubusercontent.com/u/139488?v=4)](https://github.com/sanmai "sanmai (9 commits)")[![ceyko](https://avatars.githubusercontent.com/u/172422?v=4)](https://github.com/ceyko "ceyko (8 commits)")[![codingjester](https://avatars.githubusercontent.com/u/202001?v=4)](https://github.com/codingjester "codingjester (6 commits)")[![cyle](https://avatars.githubusercontent.com/u/770158?v=4)](https://github.com/cyle "cyle (3 commits)")[![komapa](https://avatars.githubusercontent.com/u/577?v=4)](https://github.com/komapa "komapa (2 commits)")[![DonaldGoose](https://avatars.githubusercontent.com/u/401283?v=4)](https://github.com/DonaldGoose "DonaldGoose (2 commits)")[![jasonpenny](https://avatars.githubusercontent.com/u/6033?v=4)](https://github.com/jasonpenny "jasonpenny (2 commits)")[![mtwstudios](https://avatars.githubusercontent.com/u/129383?v=4)](https://github.com/mtwstudios "mtwstudios (2 commits)")[![sasezaki](https://avatars.githubusercontent.com/u/42755?v=4)](https://github.com/sasezaki "sasezaki (2 commits)")[![shiki](https://avatars.githubusercontent.com/u/198826?v=4)](https://github.com/shiki "shiki (2 commits)")[![lfarah](https://avatars.githubusercontent.com/u/6511079?v=4)](https://github.com/lfarah "lfarah (1 commits)")[![michaelbutler](https://avatars.githubusercontent.com/u/521702?v=4)](https://github.com/michaelbutler "michaelbutler (1 commits)")[![DrJonOsterman](https://avatars.githubusercontent.com/u/1661534?v=4)](https://github.com/DrJonOsterman "DrJonOsterman (1 commits)")[![ngreenwood6](https://avatars.githubusercontent.com/u/1072727?v=4)](https://github.com/ngreenwood6 "ngreenwood6 (1 commits)")[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (1 commits)")[![EvilSpaceHamster](https://avatars.githubusercontent.com/u/653051?v=4)](https://github.com/EvilSpaceHamster "EvilSpaceHamster (1 commits)")[![igorw](https://avatars.githubusercontent.com/u/88061?v=4)](https://github.com/igorw "igorw (1 commits)")[![sndsgd](https://avatars.githubusercontent.com/u/5289973?v=4)](https://github.com/sndsgd "sndsgd (1 commits)")[![jbinfo](https://avatars.githubusercontent.com/u/761378?v=4)](https://github.com/jbinfo "jbinfo (1 commits)")

---

Tags

apisdkgiftumblr

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[saloonphp/saloon

Build beautiful API integrations and SDKs with Saloon

2.4k9.6M468](/packages/saloonphp-saloon)[hubspot/api-client

Hubspot API client

23914.2M16](/packages/hubspot-api-client)[php-opencloud/openstack

PHP SDK for OpenStack APIs. Supports BlockStorage, Compute, Identity, Images, Networking and Metric Gnocchi

2292.2M24](/packages/php-opencloud-openstack)[mailchimp/transactional

458.9M16](/packages/mailchimp-transactional)[resend/resend-php

Resend PHP library.

574.7M21](/packages/resend-resend-php)

PHPackages © 2026

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