PHPackages                             dannyvilla/1s2u-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. [Mail &amp; Notifications](/categories/mail)
4. /
5. dannyvilla/1s2u-sms

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

dannyvilla/1s2u-sms
===================

It is a package which makes it possible to send messages (SMS) through the gateway of https://www.1s2u.com

v1.2.3(3y ago)2200MITPHPPHP &gt;=7.0.0

Since Jan 8Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Danny-Villa/1s2u-sms)[ Packagist](https://packagist.org/packages/dannyvilla/1s2u-sms)[ RSS](/packages/dannyvilla-1s2u-sms/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (9)Used By (0)

1s2u-sms
========

[](#1s2u-sms)

It is a package which makes it possible to send messages (SMS) through the gateway of

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

[](#installation)

Use the package manager [composer](https://getcomposer.org/) to install 1s2u-sms.

```
composer require dannyvilla/1s2u-sms
```

The `OneServiceToYouSMSServiceProdiver` is auto-discovered and registered by default, but if you want to register it yourself:

Add the ServiceProvider in config/app.php :

```
'providers' => [
    /*
     * Package Service Providers...
     */
    Oxanfoxs\OneServiceToYouSMS\Provider\OneServiceToYouSMSServiceProdiver::class,

]
```

Add the Facade in config/app.php :

```
'aliases' => [
    ...

    'MessageApi' => Oxanfoxs\OneServiceToYouSMS\Facades\MessageApi::class,

]
```

You should publish the package to get access to config file :

```
php artisan vendor:publish --provider="Oxanfoxs\OneServiceToYouSMS\Provider\OneServiceToYouSMSServiceProdiver"
```

This will create a new config file named config/1s2u.php. Then you can update credentials within the 1s2u configuration file.

```
     ...

    'username' => 'your-username-here',

     ....

    'password' => 'your-password-here',
```

Usage
-----

[](#usage)

1s2u api allows to send 2 types of message.

- Simple text message : this type contains only [GSM 03.38](https://en.wikipedia.org/wiki/GSM_03.38) characters
- Unicode message : this type use [UCS-2](https://en.wikipedia.org/wiki/Universal_Coded_Character_Set) charset.

##### Send an auto-detected type message.

[](#send-an-auto-detected-type-message)

```
$response = MessageApi::setMessage('Hello word')
                      ->setSenderId('SMS')
                      ->setMobileNumbers(['123456789', '234567891'])
                      ->appendNumber('123456678')
                      ->send();
```

##### Send a simple text message.

[](#send-a-simple-text-message)

```
$response = MessageApi::setMessage('Hello word', MessageApi::SIMPLE_TEXT_MESSAGE)
                      ->setSenderId('FROM')
                      ->setMobileNumbers(['1234567890'])
                      ->send();
```

##### Send a unicode message.

[](#send-a-unicode-message)

```
$response = MessageApi::setMessage('Hello word', MessageApi::UNICODE_MESSAGE)
                      ->setSenderId('FROM')
                      ->setMobileNumbers(['1234567890'])
                      ->send();
```

##### Send a flash message.

[](#send-a-flash-message)

```
$response = MessageApi::setMessage('Hello word')
                      ->setSenderId('FROM')
                      ->setMobileNumbers(['1234567890'])
                      ->shouldFlash(true)
                      ->send();
```

##### Checking credit.

[](#checking-credit)

\\Oxanfoxs\\OneServiceToYouSMS\\MessageApi::checkCredit() method allows to check credits balance.

```
$response = MessageApi::checkCredit()
```

To get more information about the response please check the official documentation [here](https://1s2u.com/sms-developers.asp)

Contributing
------------

[](#contributing)

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

Recently: every ~210 days

Total

7

Last Release

1439d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/00139237ed3773e10d2866f46f8f17b214b489595f9d124dc613cc06e61612cb?d=identicon)[Danny Villa](/maintainers/Danny%20Villa)

---

Top Contributors

[![Danny-Villa](https://avatars.githubusercontent.com/u/49371019?v=4)](https://github.com/Danny-Villa "Danny-Villa (17 commits)")

---

Tags

gatewaylaravellaravel-packagephpsms

### Embed Badge

![Health badge](/badges/dannyvilla-1s2u-sms/health.svg)

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

###  Alternatives

[spatie/laravel-failed-job-monitor

Get notified when a queued job fails

1.0k2.6M4](/packages/spatie-laravel-failed-job-monitor)[vemcogroup/laravel-sparkpost-driver

SparkPost driver to use with Laravel 6.x|7.x|8.x|9.x|10.x

421.7M1](/packages/vemcogroup-laravel-sparkpost-driver)[spatie/mailcoach

Self-host Mailcoach

4007.0k](/packages/spatie-mailcoach)[synergitech/laravel-postal

This library integrates Postal with the standard Laravel mail framework.

38107.1k](/packages/synergitech-laravel-postal)[motomedialab/smtp2go

Send emails via API using the first-class email courier SMTP2Go

1316.3k](/packages/motomedialab-smtp2go)

PHPackages © 2026

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