PHPackages                             l669/async-helper - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. l669/async-helper

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

l669/async-helper
=================

PHP 的异步进程助手，借助于 AMQP 实现异步进程执行 PHP 的方法

0.1.4(8y ago)1081MITPHPPHP &gt;=5.6

Since Feb 1Pushed 8y ago2 watchersCompare

[ Source](https://github.com/l669306630/async-helper)[ Packagist](https://packagist.org/packages/l669/async-helper)[ RSS](/packages/l669-async-helper/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (6)Used By (0)

async-helper
============

[](#async-helper)

简介
--

[](#简介)

PHP 的异步进程助手，借助于 AMQP 实现异步执行 PHP 的方法，将一些很耗时、追求高可用、需要重试机制的操作放到异步进程中去执行，将你的 HTTP 服务从繁重的业务逻辑中解脱出来。以一个较低的成本将传统 PHP 业务逻辑转换成非阻塞、高可用、可扩展的异步模式。

依赖
--

[](#依赖)

- php 5.6+
- ext-bcmath
- ext-amqp 1.9.1+
- ext-memcached 3.0.3+

安装
--

[](#安装)

通过 composer 安装

```
composer require l669/async-helper

```

或直接下载项目源码

```
wget https://github.com/l669306630/async-helper/archive/master.zip

```

使用范例
----

[](#使用范例)

**业务逻辑**：这里定义了很多等待被调用的类和方法，在你的项目中这可能是数据模型、或是一个发送邮件的类。

```
