Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
zoulux committed Dec 10, 2019
0 parents commit 76466fe
Show file tree
Hide file tree
Showing 6 changed files with 544 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitignore
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
29 changes: 29 additions & 0 deletions README.md
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
31 changes: 31 additions & 0 deletions composer.json
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/"
}
}
}
Loading

0 comments on commit 76466fe

Please sign in to comment.