PHPackages                             dodgyprincess/php-cfstream - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. dodgyprincess/php-cfstream

ActiveLibrary[File &amp; Storage](/categories/file-storage)

dodgyprincess/php-cfstream
==========================

Upload and manage Cloudflare Stream easily

1.2(5y ago)08MITPHPPHP &gt;=5.5

Since Aug 19Pushed 5y agoCompare

[ Source](https://github.com/dodgyprincess/php-cfstream)[ Packagist](https://packagist.org/packages/dodgyprincess/php-cfstream)[ Docs](https://github.com/dodgyprincess/php-cfstream)[ RSS](/packages/dodgyprincess-php-cfstream/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

PHP - Cloudflare Stream
=======================

[](#php---cloudflare-stream)

PHP CFStream is a PHP TUS client that makes it easy to send video files to Cloudflare Stream.

- Simple interface that supports:
    - Upload videos
    - Get status of uploaded videos
    - Get embed code for videos
    - Set allowedOrigins for each video
    - Delete videos
- Implemented in pure PHP and CURL with the help of GuzzleHttp Client
- Tightly integrated with Cloudflare Stream
- Does not support:
    - Resume uploads

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

[](#installation)

Install the package via Composer as usual. Use the `dev-master` branch.

```
composer require dodgyprincess/php-cfstream dev-master

```

Usage
-----

[](#usage)

#### Generic PHP Projects

[](#generic-php-projects)

If you are on composer-enabled projects, the following instructions should work for you. Otherwise try requiring `src/CFStream.php` directly in your project instead.

```
use dodgyprincess\CFStream\CFStream;

$cfstream = new CFStream($key, $zone, $email);

$resourceUrl = $cfstream->upload($filepath);
$cfstream->status($resourceUrl);
$cfstream->code($resourceUrl);
$cfstream->allow($resourceUrl, 'example.com, *.example.net');
$cfstream->delete($resourceUrl);

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 70% 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 ~0 days

Total

4

Last Release

2089d ago

Major Versions

0.1 → 1.02020-08-20

### Community

Maintainers

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

---

Top Contributors

[![jianjye](https://avatars.githubusercontent.com/u/400056?v=4)](https://github.com/jianjye "jianjye (7 commits)")[![dodgyprincess](https://avatars.githubusercontent.com/u/7274387?v=4)](https://github.com/dodgyprincess "dodgyprincess (2 commits)")[![jjsee](https://avatars.githubusercontent.com/u/90805479?v=4)](https://github.com/jjsee "jjsee (1 commits)")

---

Tags

tuscloudflare streamcfstreamphp-cfstream

### Embed Badge

![Health badge](/badges/dodgyprincess-php-cfstream/health.svg)

```
[![Health](https://phpackages.com/badges/dodgyprincess-php-cfstream/health.svg)](https://phpackages.com/packages/dodgyprincess-php-cfstream)
```

###  Alternatives

[stechstudio/laravel-zipstream

A fast and simple streaming zip file downloader for Laravel.

4633.7M3](/packages/stechstudio-laravel-zipstream)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[spatie/laravel-google-cloud-storage

Google Cloud Storage filesystem driver for Laravel

2408.9M13](/packages/spatie-laravel-google-cloud-storage)[dcblogdev/laravel-dropbox

A Laravel Dropbox v2 package

3263.0k](/packages/dcblogdev-laravel-dropbox)[kalynasolutions/laravel-tus

Laravel package for handling resumable file uploads with tus protocol and native Uppy.js support without additional tus servers

5261.8k1](/packages/kalynasolutions-laravel-tus)[oneofftech/laravel-tus-upload

Upload files to your Laravel application with the tus.io resumable upload protocol.

517.3k](/packages/oneofftech-laravel-tus-upload)

PHPackages © 2026

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