PHPackages                             lorenzo/cakephp-gearman - 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. lorenzo/cakephp-gearman

Abandoned → [cvo-technologies/cakephp-gearman](/?search=cvo-technologies%2Fcakephp-gearman)Cakephp-plugin[Utility &amp; Helpers](/categories/utility)

lorenzo/cakephp-gearman
=======================

Gearman utilities for CakePHP

147613PHP

Since Jun 18Pushed 10y ago2 watchersCompare

[ Source](https://github.com/lorenzo/cakephp-gearman)[ Packagist](https://packagist.org/packages/lorenzo/cakephp-gearman)[ RSS](/packages/lorenzo-cakephp-gearman/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

cakephp-gearman
===============

[](#cakephp-gearman)

Gearman utilities for CakePHP

Cakephp-Gearman is a plugin to integrate gearman into cakephp applications.

> This repository is no longer maintained. You might want to try [cvo-technologies/cakephp-gearman](https://github.com/cvo-technologies/cakephp-gearman)instead.

Installation
============

[](#installation)

1. install the gearman php extension ( @see  for instructions )
2. install the joze\_zap's cakephp gearman plugin (clone it and load it like u usually do with other cake plugins)
3. implement your own Shell with `php public $tasks = ['Gearman.GearmanWorker'];`

Example Usage
=============

[](#example-usage)

```
App::uses('GearmanQueue', 'Gearman.Client');
class SomeController extends AppController{

  public function Somefunction(){
    //do awesome stuff
    GearmanQueue::execute('build_newsletter', ['User' => $user]);
  }

}
```

```
App::uses('AppShell', 'Console/Command');
App::uses('CakeEmail', 'Network/Email');

/**
 * This class is responsible for building email templates per user and sending them as newsletter
 *
 */
class NewsletterShell extends AppShell {

/**
 * List of Tasks to be used
 *
 * @return void
 */
    public $tasks = ['Gearman.GearmanWorker'];

/**
 * Starts a worker server and make it ready to serve new build_newsletter jobs
 *
 * @return void
 */
    public function server() {
        $this->GearmanWorker->addFunction('build_newsletter', $this, 'sendNewsLetter');
        $this->GearmanWorker->work();
    }

/**
 * Builds and sends a newsletter to a user for an specific location
 *
 * @param array $data containing 'user' and 'location' keys
 * @return void
 */
    public function sendNewsLetter($data) {
        $Email = new CakeEmail('smtp');
        try{
            $Email->template('exampleContent', 'someLayout')
                ->to($data['User']['email'])
                ->subject('First Gearman email.')
                ->emailFormat('text')
                ->viewVars(array('data' => $data))
                ->send();
        }catch(Exception $e){
            //handle error
        }
    }

}
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 53.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/5b4694a64f9dab01ec0e776946b15c84113dee8a51344f1c394f40bd7a453312?d=identicon)[lorenzo](/maintainers/lorenzo)

---

Top Contributors

[![lorenzo](https://avatars.githubusercontent.com/u/37621?v=4)](https://github.com/lorenzo "lorenzo (8 commits)")[![sakulstra](https://avatars.githubusercontent.com/u/4396533?v=4)](https://github.com/sakulstra "sakulstra (5 commits)")[![alecho](https://avatars.githubusercontent.com/u/1035853?v=4)](https://github.com/alecho "alecho (1 commits)")[![bravo-kernel](https://avatars.githubusercontent.com/u/230500?v=4)](https://github.com/bravo-kernel "bravo-kernel (1 commits)")

### Embed Badge

![Health badge](/badges/lorenzo-cakephp-gearman/health.svg)

```
[![Health](https://phpackages.com/badges/lorenzo-cakephp-gearman/health.svg)](https://phpackages.com/packages/lorenzo-cakephp-gearman)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
