Download the PHP package anlity/yii2-swoole-async-timer without Composer

On this page you can find all versions of the php package anlity/yii2-swoole-async-timer. 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-swoole-async-timer

yii2-swoole-async-timer

用于异步处理任务和需要定时器完成的任务

Installation

在mevyen的项目(代码中已保留原作者)的基础上加了一个定时器的功能,也就是打开swoole服务的时候开启一个定时器,来解决一些需要定时完成的任务,2018年4月9日加入了WebSocket的功能,服务端改为了WebSocket,可以监听客户端发来的消息,和向客户端发送消息。

安装

或者 添加

到你的 yii2 根目录 composer.json 文件里.

如何使用

1、新增配置文件params-swoole.php

2、console的main.php文件引入新增的配置文件,配置文件参考 params-swoole-default.php

3、在站点主配置文件(main.php)controllerMap

4、在站点主配置文件(main.php)中增加components

5、从目录common/components/新建SwooleAsyncTimer类,类内容:

6、服务管理

7、执行异步任务可以 ``

8、给客户端发送消息可以 ``

9、从服务端给webSocket客户端发送消息 ``

10、无人值守 `


All versions of yii2-swoole-async-timer with dependencies

PHP Build Version
Package Version
Requires yiisoft/yii2 Version ~2.0.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 anlity/yii2-swoole-async-timer contains the following files

Loading the files please wait ....