PHPackages                             bjthecod3r/laravel-smartsms - 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. bjthecod3r/laravel-smartsms

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

bjthecod3r/laravel-smartsms
===========================

A Laravel package for smartsmssolutions

1.0.0(5y ago)0100licensePHP

Since Apr 9Pushed 5y ago1 watchersCompare

[ Source](https://github.com/BJTheCod3r/laravel-smartsms)[ Packagist](https://packagist.org/packages/bjthecod3r/laravel-smartsms)[ Docs](https://github.com/bjthecod3r/laravel-smartsms)[ RSS](/packages/bjthecod3r-laravel-smartsms/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

laravel-smartsms
================

[](#laravel-smartsms)

[![Latest Version on Packagist](https://camo.githubusercontent.com/5363288c8f704fe88f79f37a222319b40de68f755d59ead50486ae1646aacbd4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f626a746865636f6433722f6c61726176656c2d736d617274736d732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bjthecod3r/laravel-smartsms)[![Total Downloads](https://camo.githubusercontent.com/d6f16b704964e0a02f4f4d2a8dabab525aedc595f1daedcc5de28c7bf9eadbb7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f626a746865636f6433722f6c61726176656c2d736d617274736d732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bjthecod3r/laravel-smartsms)

A Laravel package for smartsms \[\]

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

[](#installation)

Via Composer

```
$ composer require bjthecod3r/laravel-smartsms

```

If you do not run Laravel 5.5 (or higher), then add the service provider in config/app.php:

```
BJTheCod3r\SmartSms\SmartSmsServiceProvider::class

```

For lower versions of Laravel, you can also register facade like so in config/app.php:

```
    'aliases' => [
        ...
        'SmartSms' => BJTheCod3r\SmartSms\Facades\SmartSms::class,
        ...
    ]

```

Configuration
-------------

[](#configuration)

You can publish the configuration file using this command:

```
php artisan vendor:publish --provider="BJTheCod3r\SmartSms\SmartSmsServiceProvider"

```

A configuration file named `smartsms.php` will be generated and placed in the config directory. You can play around with the default configuration.

Usage
-----

[](#usage)

Open your `.env` file and add this variables. Change to what works for you.

```
SMARTSMS_SENDER_ID=cod3r
SMARTSMS_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
SMARTSMS_TYPE=0
SMARTSMS_ROUTE=3
SMARTSMS_SIMSERVER_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxx

```

In your class or applicable file, just include the SmartSms class like so:

```
use BJTheCod3r\SmartSms\SmartSms;

```

In your function you can then use this

```
$smartSms = new SmartSms();

// This would send sms to the specified number. `sender` is optional. When `sender` is not set, it picks the default.
return $smartSms->sendSms("080xxxxxxxx", "Testing sms", "sender")->send();

```

```
// You can also specify multiple phone numbers separated with comas.
return $smartSms->sendSms("080xxxxxxxx, 080xxxxxxxx", "Testing sms")->send();

```

```
//You can change default route, type. You can add schedule, dlr, ref_id
return $smartSms->sendSms("080xxxxxxxx", "Testing sms")->route(0)->send();

```

A successful response should look like this

```
{
    "success": true,
    "response": {
        "code": "1000",
        "successful": "234802XXXXXXXX",
        "basic_successful": "234802XXXXXXXX",
        "corp_successful": "",
        "simserver_successful": "",
        "simserver_shared": "",
        "simserver_failed": "",
        "simserver_distribution": [],
        "failed": "",
        "flooding": "",
        "insufficient_unit": "",
        "invalid": "",
        "all_numbers": "234802XXXXXXXX",
        "nondnd_numbers": "234802XXXXXXXX",
        "dnd_numbers": "",
        "units_used": 1.5,
        "units_calculated": 1.5,
        "basic_units": 0,
        "corp_units": 0,
        "units_before": "37.71",
        "units_after": "36.21",
        "sms_pages": 1,
        "simhost": "",
        "message_id": "msg-20210409-dmbhW8E331WoJAdDaIzJj4IvElUMa7kBWXYfTVF",
        "ref_id": null,
        "comment": "Completed Successfully"
    }
}

```

```
//Check balance with
return $smartSms->checkBalance();

```

You may also use facade

```
SmartSms::sendSms("080xxxxxxxx", "Some message here.")->send();

```

Change log
----------

[](#change-log)

Please see the [changelog](changelog.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

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

[](#contributing)

Please see [contributing.md](contributing.md) for details and a todolist.

Security
--------

[](#security)

If you discover any security related issues, please email author email instead of using the issue tracker.

Credits
-------

[](#credits)

- [Bolaji Ajani](https://github.com/bjthecod3r)
- [All Contributors](../../contributors)

License
-------

[](#license)

license. Please see the [license file](license.md) for more information.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

1860d ago

### Community

Maintainers

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

---

Top Contributors

[![BJTheCod3r](https://avatars.githubusercontent.com/u/21208572?v=4)](https://github.com/BJTheCod3r "BJTheCod3r (7 commits)")

---

Tags

laravelSmartSms

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bjthecod3r-laravel-smartsms/health.svg)

```
[![Health](https://phpackages.com/badges/bjthecod3r-laravel-smartsms/health.svg)](https://phpackages.com/packages/bjthecod3r-laravel-smartsms)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)[nedwors/navigator

A Laravel package to ease defining navigation menus

433.1k](/packages/nedwors-navigator)[xefi/faker-php-laravel

Faker php integration with laravel

1915.1k](/packages/xefi-faker-php-laravel)[dcblogdev/laravel-junie

Install pre-configured guides for Jetbrains Junie

392.5k](/packages/dcblogdev-laravel-junie)

PHPackages © 2026

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