PHPackages                             vision-rhythm/douyin-open-php - 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. vision-rhythm/douyin-open-php

ActiveLibrary[API Development](/categories/api)

vision-rhythm/douyin-open-php
=============================

VisionRhythm php Library

v1.0.2(4y ago)018PHPPHP &gt;=5.6.0

Since Jan 4Pushed 4y ago1 watchersCompare

[ Source](https://github.com/ruihan0618/douyin-open-php)[ Packagist](https://packagist.org/packages/vision-rhythm/douyin-open-php)[ Docs](https://www.visionrhythm.com/)[ RSS](/packages/vision-rhythm-douyin-open-php/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

douyin-open-php
===============

[](#douyin-open-php)

You can sign up for a MasJPay account at .

Requirements
------------

[](#requirements)

PHP 5.6.0 and later.

Composer
--------

[](#composer)

You can install the bindings via [Composer](http://getcomposer.org/). Run the following command:

```
composer require vision-rhythm/douyin-open-php
```

To use the bindings, use Composer's [autoload](https://getcomposer.org/doc/01-basic-usage.md#autoloading):

```
require_once('vendor/autoload.php');
```

Manual Installation
-------------------

[](#manual-installation)

If you do not wish to use Composer, you can download the [latest release](https://github.com/chuangxiangjpay/jpay-php/releases). Then, to use the bindings, include the `init.php` file.

```
require_once('/path/to/douyin-open-php/init.php');
```

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

[](#dependencies)

The bindings require the following extensions in order to work properly:

- [`curl`](https://secure.php.net/manual/en/book.curl.php), although you can use your own non-cURL client if you prefer
- [`json`](https://secure.php.net/manual/en/book.json.php)
- [`mbstring`](https://secure.php.net/manual/en/book.mbstring.php) (Multibyte String)

If you use Composer, these dependencies should be handled automatically. If you install manually, you'll want to make sure that these extensions are available.

Getting Started
---------------

[](#getting-started)

Simple usage looks like:

```
const CLIENT_ID = '';
const CLIENT_SECRET = '';

\Visionrhythm\VisionRhythm::setDebug(true); //调试模式   true /false
\Visionrhythm\VisionRhythm::setApiMode('sandbox'); //环境  live 线上，sandbox 沙盒
\Visionrhythm\VisionRhythm::setclientId(CLIENT_ID);    // 设置 id
\Visionrhythm\VisionRhythm::setclientSecret(CLIENT_SECRET);   // secret
\VisionRhythm\VisionRhythm::setRedirectUri(''); //回调地址

$open_id = '';
$access_token = '';

try {

    $userInfo = \VisionRhythm\User::info($open_id, $access_token);
    echo($userInfo)."\r\n";

    $fans = \VisionRhythm\User::fans($open_id, $access_token, 0, 10);
    echo($fans)."\r\n";

    $following = \VisionRhythm\User::following($open_id, $access_token, 0, 10);
    echo($following)."\r\n";

} catch (\Visionrhythm\Error\Base $e) {
    if ($e->getHttpStatus() != null) {
        header('Status: ' . $e->getHttpStatus());
        echo $e->getHttpBody();
    } else {
        echo $e->getMessage();
    }
}

```

Development
-----------

[](#development)

Get \[Composer\]\[composer\]. For example, on Mac OS:

```
brew install composer
```

Install dependencies:

```
composer install
```

Install dependencies as mentioned above (which will resolve [PHPUnit](http://packagist.org/packages/phpunit/phpunit)), then you can run the test suite:

```
./vendor/bin/phpunit
```

Or to run an individual test file:

```
./vendor/bin/phpunit tests/UtilTest.php
```

The method should be called once, before any request is sent to the API. The second and third parameters are optional.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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.

###  Release Activity

Cadence

Every ~1 days

Total

3

Last Release

1685d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/26770e94f05009392a676f99e6e83a1739de89b48bf39082c376b9fe9ea97182?d=identicon)[jpaypp](/maintainers/jpaypp)

---

Top Contributors

[![ac971102-del](https://avatars.githubusercontent.com/u/275425140?v=4)](https://github.com/ac971102-del "ac971102-del (1 commits)")

---

Tags

apiVisionRhythmshijuelvdongdouyin api

### Embed Badge

![Health badge](/badges/vision-rhythm-douyin-open-php/health.svg)

```
[![Health](https://phpackages.com/badges/vision-rhythm-douyin-open-php/health.svg)](https://phpackages.com/packages/vision-rhythm-douyin-open-php)
```

###  Alternatives

[m165437/laravel-blueprint-docs

API Blueprint Renderer for Laravel

22880.1k](/packages/m165437-laravel-blueprint-docs)

PHPackages © 2026

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