PHPackages                             bjthecod3r/laravel-cloudflare-stream - 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. [Image &amp; Media](/categories/media)
4. /
5. bjthecod3r/laravel-cloudflare-stream

ActiveLibrary[Image &amp; Media](/categories/media)

bjthecod3r/laravel-cloudflare-stream
====================================

A Laravel package for Cloudflare Stream.

v1.0.6(8mo ago)203.4k↑266.7%3[1 issues](https://github.com/BJTheCod3r/laravel-cloudflare-stream/issues)MITPHPPHP ^8.1CI passing

Since Jun 26Pushed 8mo ago3 watchersCompare

[ Source](https://github.com/BJTheCod3r/laravel-cloudflare-stream)[ Packagist](https://packagist.org/packages/bjthecod3r/laravel-cloudflare-stream)[ RSS](/packages/bjthecod3r-laravel-cloudflare-stream/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)Dependencies (5)Versions (9)Used By (0)

 [![Laravel Cloudflare Stream Logo](./art/laravel-cloudflare-stream.png)](./art/laravel-cloudflare-stream.png)

 [![Build Status](https://github.com/BJTheCod3r/laravel-cloudflare-stream/actions/workflows/tests.yml/badge.svg)](https://github.com/BJTheCod3r/laravel-cloudflare-stream/actions) [![Total Downloads](https://camo.githubusercontent.com/1a2c3924dddb8cb10d74066cca8e4f1f267dd4c98d12d1c637219183f8cab077/68747470733a2f2f706f7365722e707567782e6f72672f626a746865636f6433722f6c61726176656c2d636c6f7564666c6172652d73747265616d2f642f746f74616c2e737667)](https://packagist.org/packages/bjthecod3r/laravel-cloudflare-stream/stats) [![Latest Version](https://camo.githubusercontent.com/4aed2eb0c4a3ee114a3879c83a2a7969fa626359fda6ea443cef2b0a87e5a82a/68747470733a2f2f706f7365722e707567782e6f72672f626a746865636f6433722f6c61726176656c2d636c6f7564666c6172652d73747265616d2f762f737461626c652e737667)](https://packagist.org/packages/bjthecod3r/laravel-cloudflare-stream) [![License](https://camo.githubusercontent.com/d62f00f7e1eac6b7abf8ab95cfc9a6fc54e5df82ac850fc50877a47cd4b47dbf/68747470733a2f2f706f7365722e707567782e6f72672f626a746865636f6433722f6c61726176656c2d636c6f7564666c6172652d73747265616d2f6c6963656e73652e737667)](https://github.com/BJTheCod3r/laravel-cloudflare-stream/blob/main/LICENSE.md)

---

Laravel Cloudflare Stream
=========================

[](#laravel-cloudflare-stream)

A Laravel Package for working with Cloudflare Stream seamlessly

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

[](#installation)

Run

```
composer require bjthecod3r/laravel-cloudflare-stream
```

Configuration
-------------

[](#configuration)

You may publish the configuration file using this command:

```
php artisan vendor:publish --provider="Bjthecod3r\CloudflareStream\CloudflareStreamServiceProvider"
```

A configuration file named `cloudflare-stream` with some defaults and required properties will be placed in your `config` directory.

Usage
-----

[](#usage)

Open your .env file and add the following variables, remember to substitute the actual values

```
CLOUDFLARE_API_TOKEN=xxxxxxxxxxxx
CLOUDFLARE_ACCOUNT_ID=xxxxxxxxxxxxxxxxx
CLOUDFLARE_BASE_API_URL=https://api.cloudflare.com/client/v4/accounts
CLOUDFLARE_KEY_ID=xxxxxxxxxxxxxxx
```

Using the package is pretty straight forward, you can make use of the class like you would do any in Laravel. There is also support for facade.

```
use Bjthecod3r\CloudflareStream\CloudflareStream;

use Bjthecod3r\CloudflareStream\Facades\CloudflareStream as CloudflareStreamFacade;

class StreamService
{
    public function fetchStream(string $id, CloudflareStream $cloudflareStream)
    {
        dd($cloudflareStream->fetchVideo($id));
    }

    public function fetchVideo(string $id): array
    {
       return CloudflareStreamFacade::fetchVideo(string $id)
    }
}
```

Note
----

[](#note)

This package currently covers my current usage of cloudflare stream, although, in the next couple of weeks I plan to expand its features. However, if there is a need for a particular feature, feel free to reach out to me via , and I'll gladly attend to it.

Todo
----

[](#todo)

- Improve tests
- Add the remaining useful features available on Cloudflare Stream

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

[](#contributing)

Please feel free to fork this package and contribute by submitting a pull request to enhance the functionalities.

License
-------

[](#license)

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

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance58

Moderate activity, may be stable

Popularity30

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75.9% 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 ~112 days

Recently: every ~101 days

Total

8

Last Release

260d ago

### Community

Maintainers

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

---

Top Contributors

[![BJTheCod3r](https://avatars.githubusercontent.com/u/21208572?v=4)](https://github.com/BJTheCod3r "BJTheCod3r (22 commits)")[![SultanDino](https://avatars.githubusercontent.com/u/17054139?v=4)](https://github.com/SultanDino "SultanDino (6 commits)")[![AlexHupe](https://avatars.githubusercontent.com/u/6893843?v=4)](https://github.com/AlexHupe "AlexHupe (1 commits)")

---

Tags

cloudflarelaravelmediastreamingstreamphplaravellaravel 10videosopen-source

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bjthecod3r-laravel-cloudflare-stream/health.svg)

```
[![Health](https://phpackages.com/badges/bjthecod3r-laravel-cloudflare-stream/health.svg)](https://phpackages.com/packages/bjthecod3r-laravel-cloudflare-stream)
```

###  Alternatives

[nikkanetiya/laravel-color-palette

Laravel Wrapper for `ksubileau/color-thief-php`. Grabs the dominant color or a representative color palette from an image. Uses PHP and GD or Imagick.

3312.6k](/packages/nikkanetiya-laravel-color-palette)[prismaticoder/maker-checker-laravel

A package for simplifying the integration of a maker-checker approval process to your Laravel application.

232.7k](/packages/prismaticoder-maker-checker-laravel)

PHPackages © 2026

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