Download the PHP package zegoim/server_assistant without Composer

On this page you can find all versions of the php package zegoim/server_assistant. 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 server_assistant

[toc]

1. 安装

方式一(推荐):composer 官方源packagist安装

执行composer require zegoim/server_assistant:1.0.0进行安装使用

方式二(推荐):composer repositories path类型安装

token/php目录下的 主体目录结构:

composer.json添加path类型的仓库

执行composer require zegoim/server_assistant:1.0.0进行安装。

方式三:Composer Autoload,即使用composer的PSR-4自动加载机制实现加载

  1. 拷贝文件包至项目根目录下的某个目录中,例如这里以/my_project/zego目录为例,其中/my_project/为项目根目录
  2. vim /my_project/composer.json加入psr-4自动加载配置

  3. 执行 composer dump-autoloadcomposer dump-autoload -o(生产环境适用) 或 composer update 命令,生成自动加载文件

方式四:Symfony Class Auto Loader 注册自动加载,适合在未使用composer的项目中使用此方式

  1. 拷贝文件包至项目根目录下的某个目录中,例如这里以/my_project/zego目录为例,其中/my_project/为项目根目录

使用时先引入自动加载器

2. 使用

普通token 生成demo

强验证token 生成demo

3. 错误码说明

4. generateToken04 参数及返回值说明

返回值为ZEGO\ZegoAssistantToken对象:


All versions of server_assistant with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
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 zegoim/server_assistant contains the following files

Loading the files please wait ....