Download the PHP package omnicast/laravel-sdk without Composer

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

OmniCast Media Server — Laravel SDK

Latest Version PHP Version Laravel Support Static Analysis

A production-ready, feature-complete Laravel SDK and service wrapper for the OmniCast Go WebRTC Live Streaming Media Server.

This package makes it effortless to manage WebRTC rooms, generate signed JWT user tokens with ICE credentials, inject real-time virtual gifts, monitor server health, verify incoming webhooks, and interact with the WebSocket signaling protocol.


Table of Contents


Architecture Overview


Features


Requirements


Installation

Install the package via Composer:

The package automatically registers its Service Provider (OmnicastServiceProvider) and Facade (Omnicast) via Laravel Package Discovery.


Configuration

Publish the package configuration file to your project:

This creates config/omnicast.php. Now add the corresponding environment variables to your .env file:


End-to-End Implementation Guide

Here is a complete, real-world example showing how to build a live streaming API in Laravel.

1. Stream Controller (Host, Viewer, Gifts, End Room)

Create app/Http/Controllers/StreamController.php:


2. Webhook Event Listener (Receiving Server Events)

When participants join/leave or rooms start/end, OmniCast POSTs event webhooks to your Laravel app with an HMAC-SHA256 signature.

Register the route in routes/api.php:

Create app/Http/Controllers/OmnicastWebhookController.php:


3. Frontend Client Integration (WebSockets + WebRTC)

Frontend connects to the media server using the data returned by your Laravel API:


Complete API Reference

You can access all methods via the Omnicast facade or by injecting OmnicastService.

Authentication & Tokens

Room Management

STUN / TURN ICE Servers

Admin Operations

Admin endpoints authenticate using X-API-Key.

Gift / Engagement API

Health & Maintenance

WebSocket Signaling Helpers

Webhooks & Signature Verification


Exception & Error Handling

All REST errors and connection failures throw OmnicastException:


Postman Collection

A complete Postman v2.1 collection is included in this repository at postman_collection.json.

It includes pre-configured requests with variables for:

Import postman_collection.json directly into Postman to begin testing.


Testing & Quality Assurance

Run the automated test suite and static analysis tools:


License

The MIT License (MIT). Please see LICENSE for more information.


All versions of laravel-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
firebase/php-jwt Version ^7.0
illuminate/http Version ^10.0|^11.0|^12.0
illuminate/support Version ^10.0|^11.0|^12.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 omnicast/laravel-sdk contains the following files

Loading the files please wait ...