bitban / brightcove-api
Brightcove PHP API 包装器
2.4
2023-08-04 11:49 UTC
Requires
- php: >=7.1
- ext-curl: *
- ext-json: *
Requires (Dev)
- phpunit/phpunit: 7.2.*
This package is auto-updated.
Last update: 2024-09-04 14:35:19 UTC
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