PHPackages                             rungopher/simplesms - 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. rungopher/simplesms

ActiveLibrary[API Development](/categories/api)

rungopher/simplesms
===================

This library provides an easy way to interact with the Rungopher SimpleSms API

1.0.5(8y ago)036MITPHPPHP &gt;=5.6

Since Oct 5Pushed 8y agoCompare

[ Source](https://github.com/rungopher/simplesms)[ Packagist](https://packagist.org/packages/rungopher/simplesms)[ RSS](/packages/rungopher-simplesms/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (7)Used By (0)

Rungopher SimpleSMS PHP Library
===============================

[](#rungopher-simplesms-php-library)

[![Rungopher](https://camo.githubusercontent.com/de9b5f90b6a35b1afb21b1714ad695ccf69e9b3ed5508df988390b378b68842b/68747470733a2f2f7777772e72756e676f706865722e636f6d2f696d616765732f6c6f676f2e706e67)](https://camo.githubusercontent.com/de9b5f90b6a35b1afb21b1714ad695ccf69e9b3ed5508df988390b378b68842b/68747470733a2f2f7777772e72756e676f706865722e636f6d2f696d616765732f6c6f676f2e706e67)

This library provides an easy way to interact with the [Rungopher SimpleSms API](https://www.rungopher.com/simple.html).

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

[](#installation)

Distributed via [packagist](https://packagist.org/packages/rungopher/simplesms). The suggested installation method is via [composer](https://getcomposer.org/):

```
composer require "rungopher/simplesms:~1.0.0"
```

Usage
-----

[](#usage)

### Sending an SMS:

[](#sending-an-sms)

*Note: This example uses cURL which requires the [cURL PHP Extension](http://php.net/manual/en/book.curl.php). To use a custom requester see* ***Using a Custom Requester*** *below.*

```
use Rungopher\SimpleSms\CurlRequester;
use Rungopher\SimpleSms\SimpleSmsClient;

$requester = new CurlRequester();
$client = new SimpleSmsClient($requester, "username", "password", "from");

try {
	$response = $client->sendSms("to", "message");
} catch(SimpleSmsErrorException $e) {
	log($e->getMessage());
}
```

**Error:** `SimpleSmsErrorException` is thrown containing the error message.

**Success:** `$client->sendSms()` returns an instance of **SimpleSmsOutbound** which has the following methods:

MethodResponse FieldgetFrom()fromgetTo()togetBody()bodygetMessageSid()sidgetStatus()status### Receiving a Delivery Receipt:

[](#receiving-a-delivery-receipt)

```
use Rungopher\SimpleSms\Messages\SimpleSmsDeliveryReceipt;

$deliveryReceipt = SimpleSmsDeliveryReceipt::fromRequestBody($requestBody);
```

**SimpleSmsDeliveryReceipt:**

MethodResponse FieldgetMessageSid()MessageSidgetStatus()StatuswasDelivered()NAfailed()NA### Receiving an Inbound SMS:

[](#receiving-an-inbound-sms)

```
use Rungopher\SimpleSms\Messages\SimpleSmsInbound;

$inboundSms = SimpleSmsInbound::fromRequestBody($requestBody);
```

**SimpleSmsInbound:**

MethodResponse FieldgetFrom()FromgetTo()TogetBody()BodygetMessageSid()MessageSidUsing a Custom Requester
------------------------

[](#using-a-custom-requester)

A custom requester must implement `RequesterInterface`:

```
/**
returns: SimpleSmsResponse
*/
public function newRequest(SimpleSmsRequest $request);
```

**SimpleSmsRequest:**

MethodReturnsgetBody()The request body.getUrl()The request url.getPort()The request port.getUsername()The request username.getPassword()The request password.**SimpleSmsResponse:**

PropertyDescriptionstatusCodeThe request http status code.responseThe request response body.```
return new SimpleSmsResponse($statusCode, $response);
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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 ~1 days

Total

6

Last Release

3140d ago

### Community

Maintainers

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

---

Top Contributors

[![rungopher](https://avatars.githubusercontent.com/u/32534536?v=4)](https://github.com/rungopher "rungopher (1 commits)")

### Embed Badge

![Health badge](/badges/rungopher-simplesms/health.svg)

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

###  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)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

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

PHP wrapper for the Meilisearch API

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

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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