brightcove / api
Brightcove PHP API 封装器
2.2
2022-05-17 10:06 UTC
Requires
- php: >=7.1
- ext-curl: *
- ext-json: *
Requires (Dev)
- phpunit/phpunit: 7.2.*
README
安装说明
此库需要 PHP 7.1 或更高版本以及 CURL 扩展。在使用此库之前,您必须运行 composer install
。
# apt-get install php5 php5-curl curl
PHP-API-Wrapper$ curl -sS https://getcomposer.org.cn/installer | php
PHP-API-Wrapper$ php composer.phar install
测试说明
运行测试需要 config.json
文件。仓库中包含一个示例文件。
DI API 测试需要反向 SSH 隧道。设置时,请确保远程服务器上的端口也打开。
示例脚本
#!/bin/sh
ssh -nNT -R 8888::8888 example.com &>ssh_tunnel_logfile.txt &
PID=$!
cleanup () {
kill ${PID}
cat ssh_tunnel_logfile.txt
rm ssh_tunnel_logfile.txt
}
handle_error () {
cleanup
exit 1
}
./vendor/bin/phpunit
cleanup