PHPackages                             codeinfo/bytedance-for-laravel - 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. codeinfo/bytedance-for-laravel

ActiveLibrary[API Development](/categories/api)

codeinfo/bytedance-for-laravel
==============================

bytedance api

1.0.30(1y ago)41.1k↓25%3MITPHPPHP ^7.3|^8.0

Since Apr 27Pushed 1y ago2 watchersCompare

[ Source](https://github.com/codeinfo/bytedance)[ Packagist](https://packagist.org/packages/codeinfo/bytedance-for-laravel)[ RSS](/packages/codeinfo-bytedance-for-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (31)Used By (0)

字节跳动扩展包
=======

[](#字节跳动扩展包)

[![StyleCI](https://camo.githubusercontent.com/e05794dadfc7dc18bcaf7949a66da0c8c7a0bc4a065c11d1c7aab831f30a3a3f/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3333353134333336332f736869656c643f6272616e63683d6d61696e)](https://github.styleci.io/repos/335143363?branch=main)

初始化
---

[](#初始化)

```
    composer require codeinfo/bytedance-for-laravel

```

使用方法2
-----

[](#使用方法2)

```
    use Codeinfo\ByteDanceLaravel\Factory;

    $app = Factory::platform(config('bytedance.platform'));

```

### Platform for Oauth 账号授权

[](#platform-for-oauth-账号授权)

- getAccessToken

    ```
      $app->oauth->getAccessToken($code);

    ```
- genrateUrl

    ```
      $scope = 'user_info,video.create,item.comment,video.data';
      $app->oauth->genrateUrl($scope, $redirect_uri);

    ```

### Platform for Account 用户管理

[](#platform-for-account-用户管理)

```
    $app->account

```

- 解密手机号

    ```
      decryptMobile($string);

    ```
- 获取用户信息

    ```
      userInfo($open_id, $access_token);

    ```

### Platform for Video 视频管理

[](#platform-for-video-视频管理)

```
    $app->video

```

- 上传视频

    ```
      upload(string $open_id, string $access_token, string $video_path)

    ```
- 创建视频

    ```
      create(string $open_id, string $access_token, array $form_params)

    ```
- 视频评论

    ```
      comment(string $open_id, string $access_token, string $content, string $item_id, string $comment_id = '')

    ```
- 查询视频信息

    ```
      data(string $open_id, string $access_token, array $item_ids)

    ```

Microapp
--------

[](#microapp)

```
    $app = Factory::microapp(config('bytedance.microapp'));

```

test
----

[](#test)

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance43

Moderate activity, may be stable

Popularity24

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~133 days

Total

29

Last Release

452d ago

PHP version history (4 changes)1.0.0PHP ^7.2

1.0.1PHP ^7.4

1.0.6PHP ^7.3

1.0.9PHP ^7.3|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/245f56287d2f85bc0f47cb7c15d812bf0ce2a5e8ee3483f6a1baeb5a0dcd13e3?d=identicon)[codeinfo](/maintainers/codeinfo)

---

Top Contributors

[![chenggx](https://avatars.githubusercontent.com/u/16704288?v=4)](https://github.com/chenggx "chenggx (26 commits)")[![codeinfo](https://avatars.githubusercontent.com/u/6974497?v=4)](https://github.com/codeinfo "codeinfo (18 commits)")[![j14884480](https://avatars.githubusercontent.com/u/126053557?v=4)](https://github.com/j14884480 "j14884480 (11 commits)")[![gdy19910713](https://avatars.githubusercontent.com/u/41095908?v=4)](https://github.com/gdy19910713 "gdy19910713 (1 commits)")[![remxcode](https://avatars.githubusercontent.com/u/3363540?v=4)](https://github.com/remxcode "remxcode (1 commits)")

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/codeinfo-bytedance-for-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/codeinfo-bytedance-for-laravel/health.svg)](https://phpackages.com/packages/codeinfo-bytedance-for-laravel)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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