PHPackages                             g4/sms-gateway - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. g4/sms-gateway

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

g4/sms-gateway
==============

sms-gateway php library

1.1.0(7y ago)010.4kMITPHPPHP &gt;=5.4

Since Feb 6Pushed 7y ago8 watchersCompare

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

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

sms-gateway
===========

[](#sms-gateway)

> sms-gateway - [php](http://php.net) library

Install
-------

[](#install)

Via Composer

```
composer require g4/sms-gateway
```

Usage
-----

[](#usage)

### Send Message

[](#send-message)

```
require_once  'vendor/autoload.php';

// Twilio
$account_sid = '[AccountSid]';
$auth_token  = '[AuthToken]';
$driver      = new \G4\SmsGateway\Adapter\Twilio($account_sid, $auth_token);
$smsGateway  = new \G4\SmsGateway\SmsGateway($driver);

// \G4\SmsGateway\Message
$message = $smsGateway
    ->from('+00000000000')
    ->to('+00000000000')
    ->send('Hello world!');
```

### View Message

[](#view-message)

```
require_once  __DIR__ . '/../../vendor/autoload.php';

// Twilio
$account_sid = 'xxx';
$auth_token = 'xxx';

$driver = new \G4\SmsGateway\Adapter\Twilio($account_sid, $auth_token);
$smsGateway = new \G4\SmsGateway\SmsGateway($driver);

// \G4\SmsGateway\Message
$message = $smsGateway->view('SMxxxxxxxxxxxxx');
```

Development
-----------

[](#development)

### Install dependencies

[](#install-dependencies)

```
$ make install

```

### Run tests

[](#run-tests)

```
$ make test

```

License
-------

[](#license)

(The MIT License) see LICENSE file for details...

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity55

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

2658d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/12ceafbc629c3019d7cd78dfec322d694f44e0df8741bc6044f4acbf99964ff8?d=identicon)[g4code](/maintainers/g4code)

---

Top Contributors

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

---

Tags

smstwiliogateway

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[gr8shivam/laravel-sms-api

A modern, flexible Laravel package for integrating any SMS gateway with REST API support

10138.4k](/packages/gr8shivam-laravel-sms-api)[botman/driver-twilio

Twilio driver for BotMan

1227.7k2](/packages/botman-driver-twilio)[daixianceng/yii2-smser

Yii2 SMS extension

862.9k1](/packages/daixianceng-yii2-smser)

PHPackages © 2026

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