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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package aliyuntoken

PHP简单获取阿里云接口token

概述

在做一个语音合成项目(使用阿里云tts语音合成接口)时发现阿里云官方提供的SDK包太大,而自己的项目也就几百kb的大小,于是自己动手封装了一个简单的获取阿里云接口时token类。

运行环境

安装方法

  1. 通过composer安装依赖,可以在你的项目根目录运行:

    $ composer require zhuyl/aliyuntoken

    或者在你的composer.json中声明依赖:

    "require": {
        "zhuyl/aliyuntoken": "~1.0"
    }

    然后通过composer install安装依赖。composer安装完成后,在您的PHP代码中引入依赖即可:

    require_once __DIR__ . '/vendor/autoload.php';
  2. 使用 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
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package zhuyl/aliyuntoken contains the following files

Loading the files please wait ....