# Example use PHP ?

**URL:** <https://community.wowza.com/t/example-use-php/48725>\
**Category:** Wowza Developer Dojo\
**Created:** [May 12, 2017, 7:20pm UTC](https://community.wowza.com/t/example-use-php/48725 "2017-05-12T19:20:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![james\_bazoin](https://avatars.discourse-cdn.com/v4/letter/j/c2a13f/32.png) [@james\_bazoin](https://community.wowza.com/u/james_bazoin)\
**Post date:** [May 12, 2017, 7:20pm UTC](https://community.wowza.com/t/example-use-php/48725/1 "2017-05-12T19:20:54Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Alex\_C](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@Alex\_C](https://community.wowza.com/u/Alex_C)\
**Post date:** [May 13, 2017, 4:49am UTC](https://community.wowza.com/t/example-use-php/48725/2 "2017-05-13T04:49:16Z")

</div>

Hello James,

Please check out the following article for some examples:

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

Hope this helps,

Alex

---

<div class="post-metadata">

**Author:** ![james\_bazoin](https://avatars.discourse-cdn.com/v4/letter/j/c2a13f/32.png) [@james\_bazoin](https://community.wowza.com/u/james_bazoin)\
**Post date:** [May 13, 2017, 8:28am UTC](https://community.wowza.com/t/example-use-php/48725/3 "2017-05-13T08:28:41Z")

</div>

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

```auto
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");

```

```auto
$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/](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

---

<div class="post-metadata">

**Author:** ![james\_bazoin](https://avatars.discourse-cdn.com/v4/letter/j/c2a13f/32.png) [@james\_bazoin](https://community.wowza.com/u/james_bazoin)\
**Post date:** [May 17, 2017, 8:28am UTC](https://community.wowza.com/t/example-use-php/48725/4 "2017-05-17T08:28:14Z")

</div>

Someone can answer plz ?
