Download the PHP package weblivehub/sdk without Composer

On this page you can find all versions of the php package weblivehub/sdk. 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 sdk

WebLiveHub PHP SDK

![Latest Version]

Official PHP SDK for WebLiveHub - A powerful WebRTC live streaming and video-on-demand platform.

📋 Table of Contents

✨ Features

📦 Requirements

🔧 Installation

Install via Composer:

Or add to your composer.json:

Then run:

🚀 Quick Start

Step 1: Create a Hosted Backend

  1. Log in to your WebLiveHub Console
  2. Navigate to Hosted Backends → Create Backend
  3. Copy your Hosted Backend Endpoint (e.g., https://console.weblivehub.com/WL_HOST/{slug}/wl_api/backend.php)

Step 2: Basic Setup

⚙️ Configuration

Basic Configuration

📚 Usage Examples

1. Immediate Iframe Embed

Fetches a stream token immediately on the server-side and embeds the iframe:

2. Lazy-Loading Iframe

Client-side token fetching for dynamic multi-stream pages:

Benefits of Lazy-Loading:

3. Custom Attributes & Events

Add custom HTML attributes and JavaScript event handlers:


WLSDK::setup(array $config): bool

Initialize SDK configuration.

Parameters:

Returns: bool - Always returns true

Example:


WLSDK::script(): string

Generate the <script> tag to load the embed.js library.

Returns: string - HTML script tag

Example:

Note: Call this once per page, typically in the <head> or before any iframe embeds.


WLSDK::iframe(array $opts): string

Generate an immediate iframe embed (server-side token fetch).

Parameters:

Returns: string - HTML output (<wl-stream> element + optional event script)

Example:


WLSDK::lazyIframe(array $opts): string

Generate a lazy-loading iframe embed (client-side token fetch).

Parameters:

Returns: string - HTML output (<wl-stream-lazy> element)

Example:


Custom CSS Styling

🔒 Security Considerations

⚠️ Never Expose Credentials in Frontend

🎯 Host Labels Guide

Label Role Description
live Streamer Broadcaster interface with streaming controls
live-client Viewer Audience view without streaming capabilities
connect Test/Demo General-purpose testing interface

Note: Backend configuration determines available roles and permissions for each label.

🤝 Support

🔄 Changelog

v1.0.2

v1.0.3

Updated hostLabel links

v1.0.4 (Current)

Added event listeners for WLSDK::iframe and WLSDK::lazyIframe


Made with ❤️ by WebLiveHub


All versions of sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
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 weblivehub/sdk contains the following files

Loading the files please wait ...