Download the PHP package deuxhuithuit/craft-cloudflare-stream without Composer

On this page you can find all versions of the php package deuxhuithuit/craft-cloudflare-stream. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package craft-cloudflare-stream

Craft CMS Cloudflare Stream

This plugin offers a easy way to upload your videos assets from Craft CMS to Cloudflare stream.

Installation

1) Install with composer

2) Install in craft

3) Add your account id and api token in the settings. You can (and should) use env vars. Make sure to also choose your upload mechanism. If your volume does not have public urls, turn on form data upload. This is the recommended value, but not the default since not all hosts allows it.

4) Create a new File System and a new Volume specific for streams. This is safer and will also allow you to turn off public urls as they are not required for streams to work.

5) Create a new video stream Field and add it to your Asset data model.

6) When editing an asset, you can now opt-in into sending videos in Cloudflare Stream. You can also enable auto-upload of stream in the settings.

7) If your are using twig, with a field named stream you can access the stream data like so:

8) If you are using graphql, there is a type registered to make it easy to request the proper data.

9) You can also mass re-upload everything via Craft's cli. Please note that this creates new streams videos and is useful mainly when changing accounts.

This extension uses Craft's Queue system, so make sure it works properly.

Dealing with large files

Videos can be quite large, which makes uploading them a little trickier. Please make sure that Craft's and php's max upload limit are properly set.

If you still want to deal with larger file than what your host allows, you might want to try the Chunked Upload plugin to bypass your host restrictions. The plugin will use TUS when appropriated. The chunk size can be set by setting the CF_STREAM_TUS_CHUNK_SIZE env var to a value in bytes, in the 5 to 200 Mb range.

Made with ❤️ in Montréal.

(c) Deux Huit Huit


All versions of craft-cloudflare-stream with dependencies

PHP Build Version
Package Version
Requires php Version 8.2.*|8.3.*|8.4.*
craftcms/cms Version ^5.0.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package deuxhuithuit/craft-cloudflare-stream contains the following files

Loading the files please wait ...