PHPackages                             contactduty/api-client - 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. contactduty/api-client

ActiveLibrary[API Development](/categories/api)

contactduty/api-client
======================

ContactDuty Api Client

0.0.8(7y ago)012MITPHPPHP &gt;=5.6.0

Since Nov 6Pushed 7y agoCompare

[ Source](https://github.com/contactduty/api-client)[ Packagist](https://packagist.org/packages/contactduty/api-client)[ Docs](https://contactduty.com/)[ RSS](/packages/contactduty-api-client/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (8)Dependencies (3)Versions (9)Used By (0)

ContactDuty APIs Client Library for PHP
=======================================

[](#contactduty-apis-client-library-for-php)

The ContactDuty API Client Library enables you to work with Sms Service

ContactDuty Platform
--------------------

[](#contactduty-platform)

Using [ContactDuty APIs](https://www.contactduty.com/) you can send text messages through multiples phones or IoT devices.

Requirements
------------

[](#requirements)

- [PHP 5.6.0 or higher](http://www.php.net/)

Developer Documentation
-----------------------

[](#developer-documentation)

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

[](#installation)

```
composer require contactduty/api-client
```

Finally, be sure to include the autoloader:

```
require_once '/path/to/your-project/vendor/autoload.php';
```

Examples
--------

[](#examples)

```
// include your composer dependencies
require_once __DIR__ . '/path/to/your-project/vendor/autoload.php';

use ContactDuty\Api;

$client = new Api\ContactDutyClient([
                                        'client_id'        => '1',
                                        'client_secret'    => 'client_secret',
                                        'redirect_uri'     => 'http://www.client.com/callback'
                                    ]);
$service = new Api\Service\Sms\Service($client);

$service->messages->create(
        [
            'to' => '+0000000000', //E.164 formatted phone number - https://en.wikipedia.org/wiki/E.164
            'message' => 'api call',
            'schedule' => '2017-11-10 12:12:12', //optional
            'timezone' => 'Europe/London', //optional
            'is_recurring' => 0,  //optional - 0/1
            'recurring_type' => '', //daily/weekly/monthly required if is_recurring == 1
        ]
    );

$results = $service->messages->queued();
foreach ($results as $item) {
  echo $item['to'], " \n";
}

$results = $service->devices->all();
foreach ($results as $item) {
  echo $item['id'], " \n";
}
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

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

Every ~0 days

Total

8

Last Release

2746d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/224318dc2abffa3ae10d8eb501ee06bcb794bc3a39abd89baf8ba205d614cf06?d=identicon)[contactduty](/maintainers/contactduty)

---

Top Contributors

[![floringavrila](https://avatars.githubusercontent.com/u/3042674?v=4)](https://github.com/floringavrila "floringavrila (11 commits)")

---

Tags

apiclientContactDuty

### Embed Badge

![Health badge](/badges/contactduty-api-client/health.svg)

```
[![Health](https://phpackages.com/badges/contactduty-api-client/health.svg)](https://phpackages.com/packages/contactduty-api-client)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[resend/resend-php

Resend PHP library.

564.7M21](/packages/resend-resend-php)[crowdin/crowdin-api-client

PHP client library for Crowdin API v2

611.5M5](/packages/crowdin-crowdin-api-client)[mozex/anthropic-laravel

Anthropic PHP for Laravel is a supercharged PHP API client that allows you to interact with the Anthropic API

71226.4k1](/packages/mozex-anthropic-laravel)[markrogoyski/numverify-api-client-php

Numverify API Client for PHP

1220.9k](/packages/markrogoyski-numverify-api-client-php)[azuracast/php-api-client

An API client library for the AzuraCast API

311.3k](/packages/azuracast-php-api-client)

PHPackages © 2026

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