Wowza Community

Example use PHP ?

Hello i have a website in Laravel PHP, i want in my admin app create wowza stream and then get my streams but i don t understand how do that ? i load the library wse-rest-library-php with composer but i don t know what do with the library.

Someone can explain me how use it.

Thanks

Hello James,

Please check out the following article for some examples:

https://www.wowza.com/docs/wowza-streaming-engine-rest-api-query-examples-php

Hope this helps,

Alex

Thanks Alex for your answer but i have already see that but i dont understand in normal time i use Curl or Guzzle and i want use REST with api key

For example i want create a live stream i see in docs setup

define("BASE_DIR", dirname(dirname(__FILE__)));
define("WOWZA_HOST","http://localhost:8087/v2");
define("WOWZA_SERVER_INSTANCE", "_defaultServer_");
define("WOWZA_VHOST_INSTANCE", "_defaultVHost_");
define("WOWZA_USERNAME", "admin");
define("WOWZA_PASSWORD", "admin");

$sf = new com\wowza\Publisher("myUser");
$response = $sf->create("myPassword");

But where i put api key according this https://sandbox.cloud.wowza.com/apidocs/v1/

I need
wsc-api-key
wsc-access-key
and livestream content

So i don t see…

Can you give me a full working example for create a simple livestream plz after that it s ok but want to see full example

Thanks you

Someone can answer plz ?