PHPackages                             haydar/byteplus-sdk-php-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. haydar/byteplus-sdk-php-laravel

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

haydar/byteplus-sdk-php-laravel
===============================

This is laravel wrapper of byteplus-sdk-php community edition

1.x-dev(1y ago)00[5 PRs](https://github.com/haydar/byteplus-sdk-php-laravel/pulls)MITPHPPHP ^8.2CI passing

Since Jan 21Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/haydar/byteplus-sdk-php-laravel)[ Packagist](https://packagist.org/packages/haydar/byteplus-sdk-php-laravel)[ Docs](https://github.com/haydarsahin/byteplus-sdk-php-laravel)[ GitHub Sponsors]()[ RSS](/packages/haydar-byteplus-sdk-php-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (14)Versions (7)Used By (0)

Byteplus SDK Laravel
====================

[](#byteplus-sdk-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/b05297f4f2f00e3f07bbeecafa522c37d2aa496605f96199ec3946f020bfbb76/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6861796461722f62797465706c75732d73646b2d7068702d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/haydar/byteplus-sdk-php-laravel)[![GitHub Tests Action Status](https://camo.githubusercontent.com/96a3880c8a3385298ce080ae5b26a50b784c5686b8bce06d9238a1d7e72b6d38/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6861796461722f62797465706c75732d73646b2d7068702d6c61726176656c2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/haydar/byteplus-sdk-php-laravel/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/aea2d48679b7ca0db177af975ae2736640ee127e2784964fb9cfb5db60724a7e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6861796461722f62797465706c75732d73646b2d7068702d6c61726176656c2f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/haydarsahin/byteplus-sdk-php-laravel/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/3821ce288b5b54dda2c373eb6dc5d804518e5f09af87ac06f07ab0984dbbb62f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6861796461722f62797465706c75732d73646b2d7068702d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/haydarsahin/byteplus-sdk-php-laravel)

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

[](#installation)

You can install the package via composer:

```
composer require haydar/byteplus-sdk-php-laravel
```

You can publish the config file with:

```
php artisan vendor:publish --tag="byteplus-config"
```

This is the contents of the published config file:

```
return [
    'access_key' => env('BYTEPLUS_ACCESS_KEY'),
    'secret_key' => env('BYTEPLUS_SECRET_KEY'),
];
```

Get Started
-----------

[](#get-started)

Add following credentials to your env file.

```
    BYTEPLUS_ACCESS_KEY=
    BYTEPLUS_SECRET_KEY=

```

Finally, you may use the Byteplus facade to access the Byteplus services:

```
    use BytePlus\ByteplusSdkPhpLaravel\Facades\Byteplus;

    $client = Byteplus::Vod();

    $vid = "123453";
    $expire = 6000000; // Sign Expire

    $req = new VodGetPlayInfoRequest();
    $req->setVid($vid);
    $response = $client->getPlayAuthToken($req, $expire);
    try {
        echo $response;
    } catch (Exception $e) {
        echo $e, "\n";
    } catch (Throwable $e) {
        echo $e, "\n";
    }
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Haydar ŞAHİN](https://github.com/haydarsahin)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

32

—

LowBetter than 71% of packages

Maintenance75

Regular maintenance activity

Popularity0

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 65.5% 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

Unknown

Total

1

Last Release

472d ago

### Community

Maintainers

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

---

Top Contributors

[![haydar](https://avatars.githubusercontent.com/u/6452942?v=4)](https://github.com/haydar "haydar (19 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (5 commits)")

---

Tags

laravelHaydar ŞAHİNbyteplus-sdk-php-laravel

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/haydar-byteplus-sdk-php-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/haydar-byteplus-sdk-php-laravel/health.svg)](https://phpackages.com/packages/haydar-byteplus-sdk-php-laravel)
```

###  Alternatives

[spatie/laravel-data

Create unified resources and data transfer objects

1.7k28.9M626](/packages/spatie-laravel-data)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)

PHPackages © 2026

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