PHPackages                             flyspring/toutiao - 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. flyspring/toutiao

ActiveLibrary[API Development](/categories/api)

flyspring/toutiao
=================

字节跳动 今日头条 toutiao bytedance sdk

v1.0.3(5y ago)28PHPPHP &gt;=7.1

Since Aug 19Pushed 5y ago1 watchersCompare

[ Source](https://github.com/flyspring/touTiao)[ Packagist](https://packagist.org/packages/flyspring/toutiao)[ RSS](/packages/flyspring-toutiao/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (6)Versions (3)Used By (0)

[字节跳动 今日头条 byteDance touTiao SDK](#)
====================================

[](#字节跳动-今日头条-bytedance-toutiao-sdk)

📦 字节跳动PHP SDK 抖音小程序、头条小程序开发组件。PHP SDK for bytedance (douyin, tiktok, toutiao)

Requirement
-----------

[](#requirement)

1. PHP &gt;= 7.1
2. **[Composer](https://getcomposer.org/)**
3. openssl 拓展

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

[](#installation)

```
$ composer require "flyspring/toutiao" -vvv
```

Usage
-----

[](#usage)

基本使用（以服务端为例），所有例子参见examples文件夹:

```
use Spring\TouTiao\Application as MiniProgram;

$config = require '../src/config/toutiao.php';
if (empty($config)) {
    echo 'config is empty';
    exit;
}

/**
 *
 * @var MiniProgram $miniProgram
 */
$miniProgram = new MiniProgram($config);

// code2session
$ret = $miniProgram->auth->session('');

var_dump($ret);
```

Documentation
-------------

[](#documentation)

Coming soon

Integration
-----------

[](#integration)

Laravel 5 集成，参见代码ServiceProvider.php

Contributors
------------

[](#contributors)

License
-------

[](#license)

MIT

Special Thanks
--------------

[](#special-thanks)

[@overtrue](https://github.com/overtrue)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

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 ~13 days

Total

2

Last Release

2081d ago

### Community

Maintainers

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

### Embed Badge

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

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

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

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