PHPackages                             phergie/phergie-slack-connection - 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. [API Development](/categories/api)
4. /
5. phergie/phergie-slack-connection

ActiveLibrary[API Development](/categories/api)

phergie/phergie-slack-connection
================================

Data structure for containing information about a Slack client connection, analogous to Phergie\\Irc\\Connection

120PHP

Since Feb 12Pushed 11y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

phergie/phergie-slack-connection
================================

[](#phergiephergie-slack-connection)

A PHP data structure for containing client connection information per the Slack Real Time Messaging API.

Primarily used by Slack client implementations of the Phergie project.

[![Build Status](https://camo.githubusercontent.com/3204ba0572877e394c803ad0b0fa5b0372501ed69ef5961268b28a10e5e1a481/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f616c65786d6163652f706865726769652d736c61636b2d636f6e6e656374696f6e2e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/alexmace/phergie-slack-connection)

Install
-------

[](#install)

The recommended method of installation is [through composer](http://getcomposer.org).

```
{
    "minimum-stability": "dev",
    "require": {
        "phergie/phergie-slack-connection": "1.1.0"
    }
}
```

Design goals
------------

[](#design-goals)

- Minimal dependencies: PHP 5.3.3+
- Simple easy-to-understand API

Usage
-----

[](#usage)

```
$connection = new \Phergie\Slack\Connection();

$connection->setToken('xoxb-##########');
$connection->setUsername('username');
$connection->setFirstName('hostname');
$connection->setLastName('servername');
$connection->setOption('option', 'value');

echo $connection->getToken();
echo $connection->getUsername();
echo $connection->getFirstName();
echo $connection->getLastName();
echo $connection->getOption('option');
```

Tests
-----

[](#tests)

To run the unit test suite:

```
curl -s https://getcomposer.org/installer | php
php composer.phar install
./vendor/bin/phpunit

```

License
-------

[](#license)

Released under the BSD License. See `LICENSE`.

Community
---------

[](#community)

Check out #phergie on irc.freenode.net.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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://avatars.githubusercontent.com/u/207391?v=4)[Alexander James Field Mace](/maintainers/alexmace)[@alexmace](https://github.com/alexmace)

---

Top Contributors

[![alexmace](https://avatars.githubusercontent.com/u/207391?v=4)](https://github.com/alexmace "alexmace (5 commits)")

### Embed Badge

![Health badge](/badges/phergie-phergie-slack-connection/health.svg)

```
[![Health](https://phpackages.com/badges/phergie-phergie-slack-connection/health.svg)](https://phpackages.com/packages/phergie-phergie-slack-connection)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

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