-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 76466fe
Showing
6 changed files
with
544 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
*.DS_Store | ||
/vendor | ||
sftp-config.json | ||
/*.php | ||
/.idea | ||
/coverage | ||
/.split | ||
/composer.lock | ||
.php_cs.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# baijiayun sdk | ||
|
||
公司已经需要在多个项目中使用百家云了,故整理一套sdk。 | ||
|
||
## Requirement | ||
- PHP >= 7.0 | ||
- [Composer](https://getcomposer.org/) | ||
- [guzzlehttp](http://guzzlephp.org/) 扩展 | ||
|
||
## Installation | ||
```bash | ||
$ composer require "jake/baijiayun" -vvv | ||
``` | ||
|
||
## Usage | ||
基本使用 | ||
|
||
```php | ||
$bjcloud = new \Jake\Baijiayun\BJCloud([ | ||
'partnerId' => '####', | ||
'partnerKey' => '####' | ||
]); | ||
$res = $bjcloud->roomCreate('live', time() + 60 * 60, time() + 60 * 60 * 2); | ||
print_r($res); | ||
``` | ||
更多文档参考 [百家云直播文档](http://dev.baijiayun.com/wiki/detail/79) | ||
|
||
## License | ||
MIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"name": "jake/baijiayun", | ||
"description": "百家云直播", | ||
"type": "library", | ||
"license": "MIT", | ||
"version": "0.0.1", | ||
"authors": [ | ||
{ | ||
"name": "Jake zou", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"require": { | ||
"php": ">=7.0", | ||
"guzzlehttp/guzzle": "^6.2", | ||
"ext-json": "*" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "^7.5" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Jake\\Baijiayun\\": "src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Jake\\Baijiayun\\Tests\\": "tests/" | ||
} | ||
} | ||
} |
Oops, something went wrong.