PHPackages                             nekudo/angela - 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. [Framework](/categories/framework)
4. /
5. nekudo/angela

ActiveLibrary[Framework](/categories/framework)

nekudo/angela
=============

PHP worker/microservice framework based on ZeroMQ.

v2.0.0(9y ago)8332MITPHPPHP &gt;=7.0.0

Since Nov 8Pushed 7y ago2 watchersCompare

[ Source](https://github.com/nekudo/Angela)[ Packagist](https://packagist.org/packages/nekudo/angela)[ Docs](https://github.com/nekudo/Angela)[ RSS](/packages/nekudo-angela/feed)WikiDiscussions v2 Synced today

READMEChangelog (3)Dependencies (4)Versions (5)Used By (0)

What is Angela?
===============

[](#what-is-angela)

Angela is a PHP worker/microservice framework based on ZeroMQ.

A typical Angela application consists of a job-server, a client to communicate with the server and workers which do the actual jobs. Angela provides the job server, the client and an API so you can easily implement your worker processes.

```
             +--------+
             | Client |
             +--------+
                 ^
                 |
                 v
           +------------+
           | Job Server |
           +------------+
     +-------^   ^    ^------+
     |           |           |
     |           |           |
     v           v           v
+--------+   +--------+   +--------+
| Worker |   | Worker |   | Worker |
+--------+   +--------+   +--------+

```

Features
--------

[](#features)

### Job server

[](#job-server)

The job server is Angelas main process. It manages all your workers, listens for new job-requests, distributes these jobs to your workers and send back responses to the client. One server can manage multiple pools of workers and hence handle various types of jobs.

The job server will fire up worker-processes as defined in your project configuration. It will monitor the workers and for example restart processes if a worker crashes.

It is also capable of basic load-balancing so jobs will always be passed to the next idle worker.

### Worker

[](#worker)

Angela provides an API to easily build worker processes. Each worker typically does one kind of job (even though in can handle multiple types). You would than start multiple pools of worker processes which handle the different kind of jobs required in your application.

**Example**

```
