PHPackages                             cronario/messenger - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. cronario/messenger

AbandonedLibrary[HTTP &amp; Networking](/categories/http)

cronario/messenger
==================

Send Messages like a Boss

v0.4.0(10y ago)124.6k1MITPHPPHP &gt;=5.5.0

Since Aug 31Pushed 10y ago3 watchersCompare

[ Source](https://github.com/cronario/messenger)[ Packagist](https://packagist.org/packages/cronario/messenger)[ Docs](http://cronar.io)[ RSS](/packages/cronario-messenger/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelogDependencies (7)Versions (14)Used By (0)

Messenger
=========

[](#messenger)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d20bca191551ad1a5b4c7a22b1ac4ac484a9085dd27555420ad2b6cb479ca1e6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f63726f6e6172696f2f6d657373656e6765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cronario/messenger)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/e36130504fe0d5510eada8a1764fe918f93666e21657ce130c0195c4c3313550/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f63726f6e6172696f2f6d657373656e6765722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/cronario/messenger)[![Coverage Status](https://camo.githubusercontent.com/d2c2c9c19b6c51c783100fd7a1a183e40b91a701dee70e772cb043e737d1bcbc/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f63726f6e6172696f2f6d657373656e6765722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/cronario/messenger/code-structure)[![Quality Score](https://camo.githubusercontent.com/0adaa184642bcf3181d0b154a03c3251274bcaf5a99f67c74f3280335328669f/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f63726f6e6172696f2f6d657373656e6765722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/cronario/messenger)[![Total Downloads](https://camo.githubusercontent.com/fa7c998432db7a329674dddbaeb301992431bfdddc5fcef32e168bd958f2c3c3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f63726f6e6172696f2f6d657373656e6765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cronario/messenger)

Addition to Cronario which has already implemented the main types of Jobs and Workers: **Curl, Sms, Mail, Hipchat**

Install
-------

[](#install)

Via Composer

```
$ composer require cronario/messenger
```

Usage
-----

[](#usage)

### Examples Curl / Hipchat / Sms / Mail

[](#examples-curl--hipchat--sms--mail)

```
// Curl
$ping = new \Messenger\Curl\Job([
    'params'   => [
        'url'        => 'https://example.com',
        'method'     => 'GET',
        'expectCode' => 200,
    ],
    'comment'  => "ping each minute",
    'schedule' => '* * * * *',
    'isSync'   => false,
]);

$result = $ping();

// Hipchat
$hipchat = new \Messenger\Hipchat\Job([
    'params'  => [
        'token'  => 'xxx',
        'room'   => 'MyRoom',
        'from'   => 'Test',
        'msg'    => 'text ...',
    ],
    'comment' => "hipchat message",
    'isSync'  => false,
]);

$result = $hipchat();

// Sms
$sms = new \Messenger\Sms\Job([
    'params' => [
        'recipient' => '380670000000',
        'sender'    => 'SuperCompany',
        'text'      => "Hellow world!",
    ],
    'comment'     => "My first sms",
    'isSync'      => false,
]);

$result = $sms();

// Mail
$mail = new \Messenger\Mail\Job([
    Job::P_PARAMS => [
        'fromMail' => 'boss@example.com',
        'fromName' => 'Big Boss',
        'toMail'   => "person@example.com",
        'subject'  => "Subject ...",
        'body'     => "Body ....",
    ],
    'comment'     => "My first mail",
    'isSync'      => false,
]);

$result = $mail();
```

### Example combine Curl and Sms

[](#example-combine-curl-and-sms)

```
$ping = new \Messenger\Curl\Job([
    'params'   => [
        'url'        => 'https://example.com',
        'method'     => 'GET',
        'expectCode' => 200,
    ],
    'comment'  => "get something",
    'callback' => [
        'onSuccess' => [
            new \Messenger\Sms\Job([
                'params'   => [
                    'recipient' => '380670000000',
                    'sender'    => 'SuperCompany',
                    'text'      => "Hellow world!",
                ],
                'comment'  => "My callback sms",
                'callback' => [
                    /* ... */
                ]
            ])
        ]
    ]
]);

$ping();
```

Testing
-------

[](#testing)

```
$ composer test
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 86.4% 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.

###  Release Activity

Cadence

Every ~9 days

Total

12

Last Release

3812d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d3834393f8093286a88277f704ad689eeb41333ed2d94ed12eb83e622901286?d=identicon)[dzubchik](/maintainers/dzubchik)

---

Top Contributors

[![vlad-groznov](https://avatars.githubusercontent.com/u/6465415?v=4)](https://github.com/vlad-groznov "vlad-groznov (19 commits)")[![dzubchik](https://avatars.githubusercontent.com/u/2685761?v=4)](https://github.com/dzubchik "dzubchik (3 commits)")

---

Tags

messageasyncasynchronouscurlmailsmsjobresultwhatsappsyncworkerMessengerhipchatsynchronousCronario

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cronario-messenger/health.svg)

```
[![Health](https://phpackages.com/badges/cronario-messenger/health.svg)](https://phpackages.com/packages/cronario-messenger)
```

###  Alternatives

[clue/mq-react

Mini Queue, the lightweight in-memory message queue to concurrently do many (but not too many) things at once, built on top of ReactPHP

144691.7k4](/packages/clue-mq-react)[chuyskywalker/rolling-curl

Rolling-Curl: A non-blocking, non-dos multi-curl library for PHP

207446.6k6](/packages/chuyskywalker-rolling-curl)[infobip/infobip-api-php-client

PHP library for consuming Infobip's API

921.8M10](/packages/infobip-infobip-api-php-client)[stefangabos/zebra_curl

A high performance solution for making multiple HTTP requests concurrently, asynchronously from your PHP projects using cURL

21971.3k2](/packages/stefangabos-zebra-curl)[phpgt/fetch

Asynchronous HTTP client with promises.

3724.0k3](/packages/phpgt-fetch)[khr/php-mcurl-client

wrap curl client (http client) for PHP 5.3; using php multi curl, parallel request and write asynchronous code

71219.8k6](/packages/khr-php-mcurl-client)

PHPackages © 2026

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