PHPackages                             weblivehub/sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. weblivehub/sdk

ActiveLibrary

weblivehub/sdk
==============

WebLiveHub PHP SDK v1.0.4 (Composer version)

v1.0.4(5mo ago)07MITPHPPHP &gt;=7.4

Since Oct 5Pushed 5mo agoCompare

[ Source](https://github.com/weblivehub/sdk-php)[ Packagist](https://packagist.org/packages/weblivehub/sdk)[ RSS](/packages/weblivehub-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

WebLiveHub PHP SDK
==================

[](#weblivehub-php-sdk)

[!\[Latest Version\]](https://github.com/weblivehub/sdk-php)

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

📋 Table of Contents
-------------------

[](#-table-of-contents)

- [Features](#-features)
- [Requirements](#-requirements)
- [Installation](#-installation)
- [Quick Start](#-quick-start)
- [Usage Examples](#-usage-examples)
    - [Immediate Iframe Embed](#1-immediate-iframe-embed)
    - [Lazy-Loading Iframe](#2-lazy-loading-iframe)
    - [Custom Attributes &amp; Events](#3-custom-attributes--events)
- [Security Considerations](#-security-considerations)
- [Support](#-support)

✨ Features
----------

[](#-features)

- **🚀 Simple Integration**: One-line setup with Composer
- **🔐 Secure Authentication**: Built-in credential management and token handling
- **⚡ Multiple Embed Modes**: Immediate and lazy-loading iframe support
- **🎨 Customizable**: Flexible attributes
- **🌐 CDN Support**: Configurable CDN endpoints for optimal performance
- **📱 Responsive**: Works seamlessly across devices
- **🔄 Auto-Retry**: Built-in error handling and fallback mechanisms
- **🏢 Hosted Backend Support**: Automatic slug detection for managed deployments

📦 Requirements
--------------

[](#-requirements)

- PHP 7.4 or higher
- cURL extension (recommended) or `allow_url_fopen` enabled
- Valid WebLiveHub account with Hosted Backend credentials

🔧 Installation
--------------

[](#-installation)

Install via Composer:

```
composer require weblivehub/sdk
```

Or add to your `composer.json`:

```
{
  "require": {
    "weblivehub/sdk": "^1.0.4"
  }
}
```

Then run:

```
composer install
```

🚀 Quick Start
-------------

[](#-quick-start)

### Step 1: Create a Hosted Backend

[](#step-1-create-a-hosted-backend)

1. Log in to your [WebLiveHub Console](https://console.weblivehub.com)
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

[](#step-2-basic-setup)

```
