Download the PHP package zhuyl/aliyuntoken without Composer
On this page you can find all versions of the php package zhuyl/aliyuntoken. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download zhuyl/aliyuntoken
More information about zhuyl/aliyuntoken
Files in zhuyl/aliyuntoken
Download zhuyl/aliyuntoken
More information about zhuyl/aliyuntoken
Files in zhuyl/aliyuntoken
Vendor zhuyl
Package aliyuntoken
Short Description A simple access to Ali Cloud interface token
License MIT
Package aliyuntoken
Short Description A simple access to Ali Cloud interface token
License MIT
Please rate this library. Is it a good library?
Informations about the package aliyuntoken
PHP简单获取阿里云接口token
概述
在做一个语音合成项目(使用阿里云tts语音合成接口)时发现阿里云官方提供的SDK包太大,而自己的项目也就几百kb的大小,于是自己动手封装了一个简单的获取阿里云接口时token类。
运行环境
- PHP 5.6+
- cURL extension
安装方法
-
通过composer安装依赖,可以在你的项目根目录运行:
$ composer require zhuyl/aliyuntoken
或者在你的
composer.json
中声明依赖:"require": { "zhuyl/aliyuntoken": "~1.0" }
然后通过
composer install
安装依赖。composer安装完成后,在您的PHP代码中引入依赖即可:require_once __DIR__ . '/vendor/autoload.php';
-
使用 git clone 或者直接下载源码,在您的代码中引入src目录下的
AliyunToken.php
文件:require_once '/path/src/AliyunToken.php';
快速使用
常用类
类名 | 解释 |
---|---|
zhuyl\AliyunToken | 通过AliyunToken的实例调用接口 |
zhuyl\Cache | 一个简单的文件缓存类 |
使用方法
返回结果
缓存使用
All versions of aliyuntoken with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.6
The package zhuyl/aliyuntoken contains the following files
Loading the files please wait ....