An open API service indexing awesome lists of open source software.

https://github.com/schachte/cloudflare-stream-tus-php

TUS upload implementation for Cloudflare Stream in PHP
https://github.com/schachte/cloudflare-stream-tus-php

cloudflare cloudflare-stream direct-creator-uploads stream tus video

Last synced: 7 months ago
JSON representation

TUS upload implementation for Cloudflare Stream in PHP

Awesome Lists containing this project

README

          

# Cloudflare Stream TUS in PHP

Features an easily deployable PHP server and UI for handling direct creator uploads for Cloudflare Stream.

![demo](./demo.gif)

## Running

First, create a `.env` file with the following details at the root of the directory:

```
CLOUDFLARE_ACCOUNT_ID=your_account_id
CLOUDFLARE_API_TOKEN=your_api_token
```

`make run-dev` to run the server

_Hot reloading support is enabled. If you make changes to the code, the server and client will automatically reload those changes_

## Access

- UI: `http://localhost:3000`
- Upload endpoint: `http://localhost:3000/upload`
- BrowserSync (used for hot reloading): `http://localhost:3001`