PHP AppServer for RTC.
You could also write AppServer by following languages:
- Golang: https://github.com/winlinvip/rtc-app-golang
- Java: https://github.com/winlinvip/rtc-app-java
- Python: https://github.com/winlinvip/rtc-app-python
- C#: https://github.com/winlinvip/rtc-app-csharp
- Nodejs: https://github.com/winlinvip/rtc-app-nodejs
- PHP: https://github.com/winlinvip/rtc-app-php
For RTC deverloper:
- RTC workflow.
- RTC token generation.
Use OpenAPI to create channel:
- Golang: https://help.aliyun.com/document_detail/74890.html#channel-golang
- Java: https://help.aliyun.com/document_detail/74890.html#channel-java
- Python: https://help.aliyun.com/document_detail/74890.html#channel-python
- C#: https://help.aliyun.com/document_detail/74890.html#channel-csharp
- Nodejs: https://help.aliyun.com/document_detail/74890.html#channel-nodejs
- PHP: https://help.aliyun.com/document_detail/74890.html#channel-php
Token generation algorithm:
- Golang: https://help.aliyun.com/document_detail/74890.html#token-golang
- Java: https://help.aliyun.com/document_detail/74890.html#token-java
- Python: https://help.aliyun.com/document_detail/74890.html#token-python
- C#: https://help.aliyun.com/document_detail/74890.html#token-csharp
- Nodejs: https://help.aliyun.com/document_detail/74890.html#token-nodejs
- PHP: https://help.aliyun.com/document_detail/74890.html#token-php
- Generate AK from here:
AccessKeyID: OGAEkdiL62AkwSgs
AccessKeySecret: 4JaIs4SG4dLwPsQSwGAHzeOQKxO6iw
- Create APP from here:
AppID: iwo5l81k
- Clone SDK:
git clone https://github.com/winlinvip/rtc-app-php.git &&
cd rtc-app-php/app/v1 &&
git clone https://github.com/aliyun/aliyun-openapi-php-sdk.git
- Create DB file for php:
touch db.txt && chmod 777 db.txt
- Create Config.php by your data:
echo "<?php" > Config.php
echo "\$listen = 8080;" >> Config.php
echo "\$region_id = 'cn-hangzhou'; " >> Config.php
echo "\$endpoint = 'rtc.aliyuncs.com'; " >> Config.php
echo "\$access_key_id = 'OGAEkdiL62AkwSgs'; " >> Config.php
echo "\$access_key_secret = '4JaIs4SG4dLwPsQSwGAHzeOQKxO6iw'; " >> Config.php
echo "\$app_id = 'iwo5l81k'; " >> Config.php
echo "\$gslb = 'https://rgslb.rtc.aliyuncs.com'; " >> Config.php
echo "?>" >> Config.php
User can use other DB like MySQL.
- Verify your AppServer by here or verify token.
Remark: You can setup client native SDK by
http://30.2.228.19:8080/app/v1
.
Remark: Please use your AppServer IP instead by
ifconfig eth0
.