{"id":14974876,"url":"https://github.com/afloeter/laravel-cloudflare-stream","last_synced_at":"2025-10-27T10:31:41.390Z","repository":{"id":42210659,"uuid":"271491183","full_name":"afloeter/laravel-cloudflare-stream","owner":"afloeter","description":"Manage the Cloudflare Stream API with ease.","archived":false,"fork":false,"pushed_at":"2023-04-26T21:26:15.000Z","size":12,"stargazers_count":11,"open_issues_count":2,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-09-27T19:40:35.862Z","etag":null,"topics":["api-wrapper","cloudflare-stream","cloudflare-streams","laravel","laravel-package","laravel7"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/afloeter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-11T08:20:20.000Z","updated_at":"2024-03-26T23:41:14.000Z","dependencies_parsed_at":"2024-09-27T19:40:23.787Z","dependency_job_id":null,"html_url":"https://github.com/afloeter/laravel-cloudflare-stream","commit_stats":{"total_commits":6,"total_committers":2,"mean_commits":3.0,"dds":"0.33333333333333337","last_synced_commit":"88964ba4b93f61dc912db45e035b9d89a985ba51"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afloeter%2Flaravel-cloudflare-stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afloeter%2Flaravel-cloudflare-stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afloeter%2Flaravel-cloudflare-stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afloeter%2Flaravel-cloudflare-stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afloeter","download_url":"https://codeload.github.com/afloeter/laravel-cloudflare-stream/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219861468,"owners_count":16555994,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-wrapper","cloudflare-stream","cloudflare-streams","laravel","laravel-package","laravel7"],"created_at":"2024-09-24T13:51:12.570Z","updated_at":"2025-10-27T10:31:36.075Z","avatar_url":"https://github.com/afloeter.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# laravel-cloudflare-stream\nManage Cloudflare Stream with ease by using this handy PHP API wrapper. The `laravel-cloudflare-stream` package gives ability to...\n\n* ✓ **List your videos**\n    * optionally using parameters to filter results\n        * *after*\n        * *before*\n        * *include_counts*\n        * *search*\n        * *limit*\n        * *asc*\n        * *status*\n* ✓ **Details of your videos**\n    * Meta information (read / write)\n    * Video name (read / write)\n    * Require signed URLs (read-only)\n    * Width and height (read-only)\n* ✓ **Get embed code of your videos**\n    * With or without signed URLs\n    * Add attributes to embed code\n        * *controls*\n* ✓ **Get playback URLs of your videos**\n    * With or without signed token\n* ✓ **Generate signed tokens for your videos**\n* ✓ **Delete your videos**\n\nFeel free to check out the Cloudflare Stream [documentation](https://developers.cloudflare.com/stream/) and [API documentation](https://api.cloudflare.com/#stream-videos-properties) for further information.\n\n## Installation\n\n### Step 1: Install using Composer\nAdd the following to your root `composer.json` and install with `composer install` or `composer update`.\n\n    {\n      \"require\": {\n        \"afloeter/laravel-cloudflare-stream\": \"~1.0.0\"\n      }\n    },\n    \"repositories\": [\n        {\n            \"type\": \"vcs\",\n            \"url\": \"https://github.com/afloeter/laravel-cloudflare-stream\"\n        }\n    ]\n\n...or use `composer require afloeter/laravel-cloudflare-stream` in your console after just adding the repository to your composer.json file.\n\n### Step 2: Publish the config file for Laravel projects\nPublish the config file with `php artisan vendor:publish --provider=\"AFloeter\\CloudflareStreamServiceProvider\"`.\n\n### Step 3: Add informationen to Laravel's `.env` file\nAdd the following lines to your root `.env` file of your Laravel instance.\n\n    CLOUDFLARE_STREAM_ACCOUNT_ID=\n    CLOUDFLARE_STREAM_AUTH_KEY=\n    CLOUDFLARE_STREAM_AUTH_EMAIL=\n    CLOUDFLARE_STREAM_PRIVATE_KEY_ID=\n    CLOUDFLARE_STREAM_PRIVATE_KEY_TOKEN=\n\nComplete the following information.\n\n* `CLOUDFLARE_STREAM_ACCOUNT_ID` is your [Cloudflare account](https://dash.cloudflare.com/) ID.\n* `CLOUDFLARE_STREAM_AUTH_KEY` is your [Cloudflare API key](https://dash.cloudflare.com/profile/api-tokens).\n* `CLOUDFLARE_STREAM_AUTH_EMAIL` is the email address of your [Cloudflare account](https://dash.cloudflare.com/profile).\n\nLeave `CLOUDFLARE_STREAM_PRIVATE_KEY_ID` and `CLOUDFLARE_STREAM_PRIVATE_KEY_TOKEN` blank if you don't use signed URLs at all.\n\n* `CLOUDFLARE_STREAM_PRIVATE_KEY_ID` is the ID of your signing key\n* `CLOUDFLARE_STREAM_PRIVATE_KEY_TOKEN` is the related RSA private key.\n\nOtherwise: Check the [documentation](https://developers.cloudflare.com/stream/security/signed-urls/) on [how to create a signing key and get RSA private key](https://developers.cloudflare.com/stream/security/signed-urls/#creating-a-signing-key) in PEM format.\n\n## Usage\n\n### Laravel\nIf you have done the `vendor:publish` step, your credentials will be grabbed from the `config/cloudflare-stream.php` and / or `.env` file. So, you can use `CloudflareStreamLaravel()` without providing your information once again.\n\n    use AFloeter\\CloudflareStream\\CloudflareStreamLaravel;\n    \n    ...\n    \n    $cfs = new CloudflareStreamLaravel();\n    $listOfVideos = $cfs-\u003elist();\n    \n    ...\n\n### Generic PHP\nIf you are on composer-enabled projects use `CloudflareStream()`. Without composer try requiring `src/CloudflareStream.php` directly into your project.\n\n    use AFloeter\\CloudflareStream\\CloudflareStream;\n    \n    ...\n    \n    $cfs = new CloudflareStream($accountId, $authKey, $authEMail);\n    $listOfVideos = $cfs-\u003elist();\n    \n    ...\n\nIf you are using signed URLs for your videos, simply add the `$privateKey` and `$privateKeyToken` variables.\n\n    use AFloeter\\CloudflareStream\\CloudflareStream;\n    \n    ...\n    \n    $cfs = new CloudflareStream($accountId, $authKey, $authEMail, $privateKey, $privateKeyToken);\n    $signedToken = $cfs-\u003egetSignedToken($videoId);\n    \n    ...\n\n## To Do\nIt's planned to add support to...\n\n* **Upload a video**\n    * From a URL\n    * Using a single HTTP request\n    * Using `ankitpokhrel/tus-php`\n* **User uploads**\n    * Create a video and get authenticated direct upload URL \n* **Create and revoke signing keys.**\n* **Add, get and remove `.vtt` caption files.**\n* **Set, get and remove allowed origins**\n\n## Changelog\n\nAll notable changes to `laravel-cloudflare-stream` will be documented here.\n\n### 1.0.0 - 2020-06-12\n* initial release\n\n## License\n`laravel-cloudflare-stream` is distributed under the terms of the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafloeter%2Flaravel-cloudflare-stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafloeter%2Flaravel-cloudflare-stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafloeter%2Flaravel-cloudflare-stream/lists"}