PHPackages                             avidian/semaphore - 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. avidian/semaphore

ActiveLibrary[API Development](/categories/api)

avidian/semaphore
=================

A wrapper for accessing the Semaphore SMS API

v1.0.0(4y ago)152MITPHP

Since Nov 23Pushed 4y ago1 watchersCompare

[ Source](https://github.com/avidianity/semaphorephp)[ Packagist](https://packagist.org/packages/avidian/semaphore)[ RSS](/packages/avidian-semaphore/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

SemaphorePHP
============

[](#semaphorephp)

A wrapper for accessing the Semaphore SMS API

Table of Contents
-----------------

[](#table-of-contents)

- [SemaphorePHP](#semaphorephp)
    - [Table of Contents](#table-of-contents)
    - [Installation](#installation)
    - [Basic Usage](#basic-usage)
    - [License](#license)

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

[](#installation)

```
composer require avidian/semaphore
```

Basic Usage
-----------

[](#basic-usage)

Sending Messages

```
use Avidian\Semaphore\Client;

$client = new Client('your api key', [/* options */]);

$response = $client->send('09991234567', 'your message');

// multiple recipients
$recipients = '09991234567, 09997654321';
$response = $client->send($recipients, 'your message');
```

```
[
  {
    "message_id": 1234567,
    "user_id": 99556,
    "user": "user@your.org",
    "account_id": 90290,
    "account": "Your Account Name",
    "recipient": "09991234567",
    "message": "The message you sent",
    "sender_name": "SEMAPHORE",
    "network": "Globe",
    "status": "Queued",
    "type": "Single",
    "source": "Api",
    "created_at": "2016-01-01 00:01:01",
    "updated_at": "2016-01-01 00:01:01"
  }
]
```

Retrieving Messages

```
$response = $client->messages([ 'limit' => 100, 'page' => 1 ]);
```

Supported filters for retrieving messages

```
$options = [
    'limit' => 100,
    'page' => 1,
    'sendername' => 'SEMAPHORE',
    'startDate' => '2016-01-01',
    'endDate' => '2016-02-01',
    'network' => 'globe',
    'status' => 'success',
];
```

Retrieving account information

```
$response = $client->account();
```

```
{
  "account_id": 12345,
  "account_name": "Your Organization",
  "status": "Active",
  "credit_balance": 5000
}
```

Retrieve users

```
$response = $client->users();
```

```
[
  {
    "user_id": 12345,
    "email": "owner@your.org",
    "role": "Owner"
  },
  {
    "user_id": 54321,
    "email": "someguy@your.org",
    "role": "User"
  }
]
```

Sender names

```
$response = $client->senderNames();
```

```
[
  {
    "name": "Semaphore",
    "status": "Active",
    "created": "2016-01-01 00:00:01"
  },
  {
    "name": "Kickstart",
    "status": "Active",
    "created": "2016-01-01 00:00:01""
  }
]
```

Transactions

```
$response = $client->transactions();
```

License
-------

[](#license)

This library is open-sourced software licensed under the [MIT license](LICENSE.md).

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1637d ago

### Community

Maintainers

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

---

Top Contributors

[![avidianity](https://avatars.githubusercontent.com/u/56546989?v=4)](https://github.com/avidianity "avidianity (7 commits)")

### Embed Badge

![Health badge](/badges/avidian-semaphore/health.svg)

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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