PHPackages                             camoo/sms - 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. camoo/sms

ActiveLibrary[API Development](/categories/api)

camoo/sms
=========

CAMOO API Packages

4.1.0(2y ago)378842MITPHPPHP &gt;=8.1

Since Dec 31Pushed 2y ago1 watchersCompare

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

READMEChangelog (10)Dependencies (6)Versions (29)Used By (2)

 [ ![CamooSms](https://camo.githubusercontent.com/a6036362bfd8c5e42ec7070f8aeebdcfe5859b1b2bdae934063271617e6b8bac/68747470733a2f2f7777772e63616d6f6f2e686f7374696e672f696d672f6c6f676f732f6c6f676f446f6d61696e2e706e67) ](https://www.camoo.cm/bulk-sms)

 PHP SMS API Sending SMS via the ***CAMOO SMS gateway***

 [ ![Build Status](https://github.com/camoo/sms/actions/workflows/unittest.yml/badge.svg) ](https://github.com/camoo/sms) [ ![camoo-badge](https://camo.githubusercontent.com/617732cfe8f738e763144c2b1f6e73aee664ea9bc3cd670260581fbde464d31e/68747470733a2f2f636f6465636f762e696f2f67682f63616d6f6f2f736d732f6272616e63682f6d61737465722f67726170682f62616467652e737667) ](https://codecov.io/gh/camoo/sms)

Requirement
-----------

[](#requirement)

This library needs minimum requirement for doing well on run.

- [Sign up](https://www.camoo.cm/join) for a free CAMOO SMS account
- Ask CAMOO Team for new access\_key for developers
- CAMOO SMS API client for PHP requires version 8.1.x and above

Installation via Composer
-------------------------

[](#installation-via-composer)

Package is available on [Packagist](https://packagist.org/packages/camoo/sms), you can install it using [Composer](http://getcomposer.org).

```
composer require camoo/sms
```

### Or go to

[](#or-go-to)

[Camoo-SMS-API-Latest Release](https://github.com/camoo/sms/releases/tag/3.3.1)

And download the full version

If you want to install a legacy version running with `PHP7.4`Run composer with the command below

```
composer require camoo/sms "3.2.*"
```

Or Download it from [Camoo-SMS-API-Legacy](https://github.com/camoo/sms/releases/tag/3.2.0)

Quick Examples
--------------

[](#quick-examples)

##### Sending a SMS

[](#sending-a-sms)

```
	$oMessage = \Camoo\Sms\Message::create('YOUR_API_KEY', 'YOUR_API_SECRET');
	$oMessage->from ='YourCompany';
	$oMessage->to = '+237612345678';
	$oMessage->message ='Hello Kmer World! Déjà vu!';
	var_dump($oMessage->send());
```

##### Send the same SMS to many recipients

[](#send-the-same-sms-to-many-recipients)

```
- Per request, a max of 50 recipients can be entered.

```

```
	$oMessage = \Camoo\Sms\Message::create('YOUR_API_KEY', 'YOUR_API_SECRET');
	$oMessage->from ='YourCompany';
	$oMessage->to =['+237612345678', '+237612345679', '+237612345610', '+33689764530'];
	//OR from version 3.3.0
	$collection = new RecipientCollection();
        $collection->add('237612345678');
        $collection->add('237612345679');
        $collection->add('237612345610');
        $collection->add('33689764530');
        $oMessage->to = $collection;

	$oMessage->message ='Hello Kmer World! Déjà vu!';
	var_dump($oMessage->send());
```

##### Sending non customized sender SMS.

[](#sending-non-customized-sender-sms)

```
    $oMessage = \Camoo\Sms\Message::create('YOUR_API_KEY', 'YOUR_API_SECRET');
    $oMessage->from ='WhatEver'; // will be overridden
    $oMessage->to = '+237612345678';
    // This parameter tells our system to use the classic route to send your message.
    $oMessage->route ='classic';
    $oMessage->message ='Hello Kmer World! Déjà vu!';
    var_dump($oMessage->send());
```

##### Sending an encrypted SMS

[](#sending-an-encrypted-sms)

```
Encrypt message using GPG before sending, ensure an end to end ecryption between your server and ours

```

```
	$oMessage = \Camoo\Sms\Message::create('YOUR_API_KEY', 'YOUR_API_SECRET');
	$oMessage->from ='YourCompany';
	$oMessage->to = '+237612345678';
	$oMessage->message ='Hello Kmer World! Déjà vu!';
	$oMessage->encrypt = true;
	var_dump($oMessage->send());
```

##### Sending BULK SMS

[](#sending-bulk-sms)

Send Bulk SMS in background. This call requires `shell_exec` to be enabled

```
	$oMessage = \Camoo\Sms\Message::create('YOUR_API_KEY', 'YOUR_API_SECRET');
	$oMessage->from ='YourCompany';
	$oMessage->to = ['+237612345678', '+237612345679', '+237612345610', '+33689764530', '+4917612345671'];
	$oMessage->message ='Hello Kmer World! Déjà vu!';
	var_dump($oMessage->sendBulk());
```

##### Sending Personalized BULK SMS

[](#sending-personalized-bulk-sms)

Send Bulk SMS in background. This call requires `shell_exec` to be enabled You should use the placeholder `%NAME%` in your message and the property `to` should be an associative array containing `name` and `mobile` for each element. See the example below

```
	$oMessage = \Camoo\Sms\Message::create('YOUR_API_KEY', 'YOUR_API_SECRET');
	$oMessage->from ='YourCompany';
	$oMessage->to = [['name' => 'John Doe', 'mobile' => '+237612345678'], ['name' => 'Jeanne Doe', 'mobile' => '+237612345679'], ['...']];
	$oMessage->message ='Hello %NAME% Kmer World! Déjà vu!';
	var_dump($oMessage->sendBulk());
```

##### Top up your SMS account over API

[](#top-up-your-sms-account-over-api)

Feature available since version &gt;=3.3.3.

You can top up your `Camoo SMS` over API using MTN or Orange Mobile Money Cameroon directly from your own application without additional fees.

```
// Step 1: create Top up instance
/** @var TopUp&\Camoo\Sms\Objects\TopUp $topup */
$topup = TopUp::create('YOUR_API_KEY', 'YOUR_API_SECRET');

// Step 2 Assign phone number and amount
$topup->amount = 3000;
$topup->phonenumber = '612345678';

// Step 3 Call add to top up your account. You will then receive a notification to complete the process.
$response = $topup->add();

var_dump($response);
```

##### Sending Bulk SMS from your Script

[](#sending-bulk-sms-from-your-script)

It is obvious that sending bulk data to any system is a problem! Therefore, you should check our recommendation for the best approach

- (***[See example for bulk sms](https://github.com/camoo/sms/wiki/How-to-send-Bulk-SMS-from-your-script#send-sms-sequentially)***)

WordPress Plugin
----------------

[](#wordpress-plugin)

If you are looking for a powerful WordPress plugin to send SMS, then download our [wp-camoo-sms](https://github.com/camoo/wp-camoo-sms)

Resources
---------

[](#resources)

- [Documentation](https://github.com/camoo/sms/wiki)
- [Report issues](https://github.com/camoo/sms/issues)

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity82

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 63.9% 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 ~101 days

Recently: every ~40 days

Total

22

Last Release

929d ago

Major Versions

3.3.4 → 4.0.02023-07-15

PHP version history (5 changes)v3.0.1PHP &gt;=5.6.0

v3.1.0PHP &gt;=7.1.0

v3.1.3PHP &gt;=7.0

3.2.0PHP &gt;=7.4

3.3.0-rc1PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/aba0dd2dc958996c6554903496744826ada2ea5c5f6370f413dcfdde7bddc56c?d=identicon)[camoo](/maintainers/camoo)

---

Top Contributors

[![epinett](https://avatars.githubusercontent.com/u/16965658?v=4)](https://github.com/epinett "epinett (94 commits)")[![camoo](https://avatars.githubusercontent.com/u/24289021?v=4)](https://github.com/camoo "camoo (53 commits)")

---

Tags

smsbulk-smssms-gatewayapi smsCAMOOGPG SMS encrytionPlugin camoo sms

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/camoo-sms/health.svg)

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

###  Alternatives

[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)

PHPackages © 2026

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