PHPackages                             linxlad/zephlack - 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. linxlad/zephlack

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

linxlad/zephlack
================

Slack Messenger extension written in Zephir.

15241C

Since Jan 4Pushed 11y ago2 watchersCompare

[ Source](https://github.com/linxlad/zephlack)[ Packagist](https://packagist.org/packages/linxlad/zephlack)[ RSS](/packages/linxlad-zephlack/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

zephlack
========

[](#zephlack)

[![Travis branch](https://camo.githubusercontent.com/34a91d515c1489a43b17ae9d73c9f2973b66d7483d81cd76c6f4e7cea979d865/68747470733a2f2f6170692e7472617669732d63692e6f72672f6c696e786c61642f7a6570686c61636b2e737667)](https://travis-ci.org/linxlad/zephlack)[![Stable](https://camo.githubusercontent.com/cb571a196b7e29fff1914744d7acf57911c529b67c3219b9854c3dae129dc6b8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f737461626c652d312e302d626c75652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/linxlad/zephlack)[![Code Quality](https://camo.githubusercontent.com/1e761ef6c51005721c2580cea4540007c3805d039d94f8527518dcc7382b3cd9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f64652532307175616c6974792d412d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://www.codacy.com/public/justlikephp/zephlack/dashboard)[![Packagist](https://camo.githubusercontent.com/3244ff9b4c561f21d4db36aa4d146b1c5f03e685a75dd2db7b7186d86676fbb4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b61676973742d312e302d626c75652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/linxlad/zephlack)[![License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/linxlad/zephlack/blob/master/LICENSE.md)

Slack Messaging extension written in Zephir.

[![Slack output](https://camo.githubusercontent.com/7d3286c0e6dd6d3a7bac717e5056d634b81aa36f8d1d3dfeb9bca30984ced715/687474703a2f2f6935382e74696e797069632e636f6d2f617a3671376f2e706e67)](https://camo.githubusercontent.com/7d3286c0e6dd6d3a7bac717e5056d634b81aa36f8d1d3dfeb9bca30984ced715/687474703a2f2f6935382e74696e797069632e636f6d2f617a3671376f2e706e67)

Slack is a platform for team communication: everything in one place, instantly searchable, available wherever you go. You can find out more about Slack [here](https://slack.com/).

Installation
------------

[](#installation)

##### Pre-built extension

[](#pre-built-extension)

Grab the latest extension from [here](https://sourceforge.net/projects/zephlack/files/zephlack.so) and place it in the following directory: ######Ubuntu `/usr/lib/php5/20.../zephlack.so`

\######CentOS `/usr/lib64/php/modules/zephlack.so`

Add extension to your php configuration:

```
extension=zephlack.so

```

\#####Self build extension

*(Zephir installation required for this option. Instructions can be found [here](http://zephir-lang.com/install.html#installing-zephir))*

```
git clone --depth=1 --branch=master https://github.com/linxlad/zephlack.git
cd zephlack
zephir build

```

Add extension to your php configuration:

```
extension=zephlack.so

```

Finally restart your web server.

Usage
-----

[](#usage)

### Simple

[](#simple)

```
$client = new Zephlack\Client('team', 'token');
$message = new Zephlack\Message\Message('This year you are on the good list');

$message->setChannel('#channel');
$message->setIconEmoji(':santa:');
$message->setUsername('Mr Claus');

$client->setDebug(false);

/* WIll return bool or if debug is enabled will return the payload and response */
$client->notify($message);
```

### With attachments

[](#with-attachments)

```
$client = new Zephlack\Client('team', 'token');
$message = new Zephlack\Message\Message('This year you are on the good list');
$attachment = new Zephlack\Message\MessageAttachment();
$field = new Zephlack\Message\MessageField();
$field
    ->setTitle('foo')
    ->setValue('bar');

$attachment->addField($field);
$message->addAttachment($attachment);

$message->setChannel('#channel');
$message->setIconEmoji(':santa:');
$message->setUsername('Mr Claus');

$client->notify($message);
```

### Message

[](#message)

If your message contain @username and you want him to be notified, add `$message->enableLinkNames(true)`

### Credits

[](#credits)

**I would like to credit:**

**Polem** for the leg work on slack-notifier which this is based. Great PHP slack messaging package which can be found here [slack-notifier](https://github.com/polem/slack-notifier).

**Nirlah** for the http utility that saved me hours of work. Again a great Zephir based package which can be found here [Toolbelt](https://github.com/Nirlah/Toolbelt).

[![Bitdeli Badge](https://camo.githubusercontent.com/1d35c49202b95ea0f3927acc745ba308a927f69a9ea658b7894850824f279c53/68747470733a2f2f64327765637a68766c38323376302e636c6f756466726f6e742e6e65742f6c696e786c61642f7a6570686c61636b2f7472656e642e706e67)](https://bitdeli.com/free "Bitdeli Badge")

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/7ad752b8dba22632fca97aa8066a5e8e3f03ab0e3233f46f281e5e08d2fa1bcc?d=identicon)[linxlad](/maintainers/linxlad)

---

Top Contributors

[![nathandaly](https://avatars.githubusercontent.com/u/33258212?v=4)](https://github.com/nathandaly "nathandaly (60 commits)")[![bitdeli-chef](https://avatars.githubusercontent.com/u/3092978?v=4)](https://github.com/bitdeli-chef "bitdeli-chef (1 commits)")

### Embed Badge

![Health badge](/badges/linxlad-zephlack/health.svg)

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

###  Alternatives

[woocommerce/action-scheduler

Action Scheduler for WordPress and WooCommerce

7086.8M56](/packages/woocommerce-action-scheduler)[naif/generate-password

A Laravel Nova password field with generating random password option

1880.3k](/packages/naif-generate-password)

PHPackages © 2026

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