marxvn / gdrive
GDrive 库。
1.0
2016-10-29 03:14 UTC
Requires
- php: >=5.3
Suggests
- tedivm/stash: For caching source video url
This package is not auto-updated.
Last update: 2024-09-28 20:19:55 UTC
README
安装
要安装,只需
$ composer require marxvn/gdrive
快速入门和示例
更多示例在 /examples 目录下。
require __DIR__ . '/vendor/autoload.php'; use \Marxvn\gdrive; $gdrive = new gdrive; $gdrive->getLink('LINK_GOOGLE_DRIVE'); $json_videojs_source = $gdrive->getSources(); $json_jwplayer_souce = $gdrive->getSources('jwplayer');
可用方法
gdrive::sources gdrive::setItag(array $itag) gdrive::setVidcode(array $vidcode) gdrive::setTitle($title) gdrive::getLink($gurl) gdrive::getSources($type = 'videojs')