Download the PHP package firstphp/tower without Composer
On this page you can find all versions of the php package firstphp/tower. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package tower
tower for hyperf
安装组件
composer require firstphp/tower
发布配置
php bin/hyperf.php vendor:publish firstphp/tower
获取Tower授权码(详见Tower开发文档)
编辑.env配置
TOWER_URL=https://tower.im/ CLIENT_ID=ef8gd5cb1071e61483303432be7183af7c285993d74392364090bbdcb8710bbe CLIENT_SERCET=903390ab427caf30a4824c3322d004562714f6c69de34158749bc11e6fd72ddf AUTH_CODE=e1acb4311d6df4d86g5f83022f0eca8a592e1cbff94e55dcpac838e96beb3a40
Hyperf Demo
use Hyperf\Di\Annotation\Inject;
......
/**
* @Inject()
* @var \Firstphp\Tower\TowerInterface
*/
private $tower;
public function test() {
// 初次访问调用一次即可,刷新Token可以单独放在计划任务里面定时刷新
$this->tower->getAccessToken();
// 获取当前账号信息
$this->tower->getUser();
}
All versions of tower with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.2
ext-swoole Version >=4.4
hyperf/framework Version 1.1.*
hyperf/di Version 1.1.*
ext-swoole Version >=4.4
hyperf/framework Version 1.1.*
hyperf/di Version 1.1.*
The package firstphp/tower contains the following files
Loading the files please wait ....