2017 © Pedro Peláez
 

library wse-rest-library-php

image

wowza/wse-rest-library-php

  • Wednesday, May 16, 2018
  • by community-wowza
  • Repository
  • 20 Watchers
  • 33 Stars
  • 1,433 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 36 Forks
  • 6 Open issues
  • 2 Versions
  • 64 % Grown

The README.md

Scrutinizer Code Quality, (*1)

PHP REST Library for Wowza Streaming Engine

Wowza Streaming Engine media server software includes a REST API that you can wrap with a PHP library to configure, manage, and monitor your streaming media server through PHP requests., (*2)

Prerequisites

Wowza Streaming Engine™ 4.0.0 or later is required., (*3)

PHP 5.5.0 or later is required., (*4)

Composer is highly recommended., (*5)

Composer Setup

  1. Please install composer, (*6)

  2. $ composer require "wowza/wse-rest-library-php:dev-master", (*7)

Wowza Media Systems, LLC is not responsible for nor does it provide support for composer., (*8)

Example Configuration

index.php, (*9)

<?php
//index.php

require_once(__DIR__.'/../vendor/autoload.php');

// This is for a framework if you use one.
//$framework = new Project\Framework();
//$framework->registerDebugHandlers();
//$framework->processHttpSapiRequest();

require_once("../config.php"); // make sure this exists and is similar to the below - move it where it needs to be

config.php, (*10)

<?php
// config.php
define("WOWZA_HOST","http://111.111.123.123:8087/v2");
define("WOWZA_SERVER_INSTANCE", "_defaultServer_");
define("WOWZA_VHOST_INSTANCE", "_defaultVHost_");
define("WOWZA_USERNAME", "my_secret_username");
define("WOWZA_PASSWORD", "my_super_cool_password");

// It is simple to create a setup object for transporting our settings
$setup = new Com\Wowza\Entities\Application\Helpers\Settings();
$setup->setHost(WOWZA_HOST);
$setup->setUsername(WOWZA_USERNAME);
$setup->setPassword(WOWZA_PASSWORD);

// Connect to the server or deal with statistics NOTICE THE CAPS IN COM AND WOWZA
$server = new Com\Wowza\Server($setup);
$sf = new Com\Wowza\Statistics($setup);
$response = $sf->getServerStatistics($server);
var_dump($response);

Packagist

A development branch is available through Packagist at the packagist website., (*11)

Usage

To learn the basics of how to query the Wowza Streaming Engine REST API, see Query the Wowza Streaming Engine REST API. For reference documentation, see Access reference documentation for the Wowza Streaming Cloud REST API., (*12)

More resources

Wowza Media Systems™ provides developers with a platform to create streaming applications and solutions. See Wowza Developer Tools to learn more about our APIs and SDK., (*13)

Contact

Wowza Media Systems, LLC, (*14)

License

This code is distributed under the Wowza Public License., (*15)

The Versions

16/05 2018

dev-master

9999999-dev https://www.wowza.com

  Sources   Download

15/08 2017

dev-develop

dev-develop https://www.wowza.com

  Sources   Download