Download the PHP package laborb/bunny-stream without Composer

On this page you can find all versions of the php package laborb/bunny-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 bunny-stream

Video Stream GDPR Compliant (aka Bunny Stream)

Bunny Stream is a Statamic add-on that integrates the Bunny Stream API for single stream libraries into the Statamic CP.

Features

Bunny Account Required 🐰

To use this addon, you'll need a Bunny.net account. If you don't have one yet, you can sign up using our affiliate link. By doing so, you'll be supporting the development of this addon at no extra cost to you. 💙

Thank you for your support! 🚀

Installation

Install the addon using composer:

Insert the required styles & scripts using the following tags:

All inserted files can be configured using the configuration file.

Configuration

You need to provide the following .env-Variables:

You can find these values in your Bunny Stream Dashboard at https://dash.bunny.net/stream/ Delivery > Stream > API

You can enable Video embedding by setting the following variables:

All videos will then be available through a direct url. Check the video browser to get the correct url for each video.

Using BUNNY_EMBED_DOMAIN you can change the Access Control Header, if you want to limit access.

Custom CDN Hostname

To add a custom hostname you can do the following:

  1. Login to your bunny dashboard and head over to Delivery > Stream > API
  2. At Pull zone click Manage
  3. Create a CName entry in your DNS settings pointing to the displayed bunny CDN hostname
  4. Enter your custom hostname in the bunny settings and activate SSL
  5. Use your custom hostname in the .env BUNNY_CDN_HOSTNAME=yourcdnhostname

Now your videos are delivered over your custom hostname.

Publish Configuration (optional)

After installing the addon you can publish and update the default configuration:

Publish Views (optional)

All views are completely customizable. To publish them use:

Usage

The bunny tag allows you to display a Bunny video stream using the Vidstack player in your Statamic site.

Parameters

Parameter Type Description
id string The id of the video you want to display.
title string (optional) A title to display for the video. Defaults to null.
poster string (optional) A poster image URL to display before the video starts. Defaults to null.
width int (optional) The width of the video. Defaults to null.
height int (optional) The height of the video. Defaults to null.
controls boolean (optional) Whether the video should have controls. Defaults to true.
preload string (optional) How the video should be preloaded. Options: auto, metadata, none. Defaults to metadata.
tracks array (optional) An array of additional tracks (e.g., captions, subtitles). Defaults to [].
class string (optional) Additional HTML classes to be added to the wrapper.

Configuring Tracks Array

The tracks parameter must be formatted as an array of objects, where each object represents a caption or subtitle track. The structure follows loosely the Vidstack track format:

Each track object must include the following properties:

Example JSON configuration for tracks:

Bunny-Field & -Fieldset

This addon includes a basic Bunny fieldset that you can use.

When using the fieldset you can use the following markup to output the video player:

You can also just use the Bunny field by adding it to any blueprint.

Customization

You can customize the video player to your needs. Check the vidstack.io documentation for details.

Disclaimer

This addon is not affiliated with, endorsed by, or sponsored by Bunny.net. It is an independent project designed to integrate Bunny.net's streaming services with Statamic. All trademarks, service marks, and company names mentioned are the property of their respective owners.

Users of this addon are responsible for complying with Bunny.net's terms of service and any applicable usage policies. We recommend reviewing Bunny.net's official documentation and support channels for any inquiries related to their services.

Support

If you have any questions, feature requests or find any bugs, feel free to contact us.

You can also just create an issue on Github. We will get back to you as soon as possible.


All versions of bunny-stream with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
statamic/cms Version ^3.2|^4.0|^5.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 laborb/bunny-stream contains the following files

Loading the files please wait ....