Download the PHP package kriss/yii2-beary-chat without Composer

On this page you can find all versions of the php package kriss/yii2-beary-chat. 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 yii2-beary-chat

yii2 bearyChat

yii2 bearyChat 组件,依赖BearyChat for PHP

安装

推荐使用 composer.

或添加下面代码到composer.json文件

然后使用

使用方式

单独使用

1.进行配置

basic 模版为 config/web.php, advanced 模版为对应入口的 config/main.php

示例配置如下:

2.进行使用

最简单的使用方式:

更多使用方式参看: BearyChat for PHP

tips:Yii::app->bearyChat->client()获得的即是\ElfSundae\BearyChat\Client

配合 yii2-thread 使用

发送一条 BearyChat 消息实际上是向 Incoming Webhook 发送同步 HTTP 请求,所以这在一定程度上会延长应用的响应时间。可以使用 yii2-thread (或任意多线程方式)来异步发送消息。

使用 yii2-thread 只需要在对应位置使用发送消息的代码就可以,使用方式不变

参考链接:yii2-thread


All versions of yii2-beary-chat with dependencies

PHP Build Version
Package Version
Requires yiisoft/yii2 Version *
elfsundae/bearychat Version ~1.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 kriss/yii2-beary-chat contains the following files

Loading the files please wait ....