PHPackages                             cyaoz94/sms123 - 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. cyaoz94/sms123

ActiveLibrary

cyaoz94/sms123
==============

A simple package to simplify API integration with SMS Provider SMS123 for Laravel 8

1.0.4(4y ago)2265MITPHPPHP ^8.0|^7.0

Since Feb 26Pushed 4y ago2 watchersCompare

[ Source](https://github.com/cyaoz94/sms123)[ Packagist](https://packagist.org/packages/cyaoz94/sms123)[ Docs](https://github.com/cyaoz94/sms123)[ RSS](/packages/cyaoz94-sms123/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (4)Versions (6)Used By (0)

Laravel SMS123 API Integration package
======================================

[](#laravel-sms123-api-integration-package)

[![Latest Version on Packagist](https://camo.githubusercontent.com/6ea8a15b530ca1c04f4eb0eafa3492e73f2be1ad190f7168f398ce7fd0ad8dd2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6379616f7a39342f736d733132332e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cyaoz94/sms123)[![Build Status](https://camo.githubusercontent.com/4a9139c47ba64a961857476f26f9e7f9a86a72c58550d853e4331a38e901e1af/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6379616f7a39342f736d733132332f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/cyaoz94/sms123)[![Quality Score](https://camo.githubusercontent.com/38e850c61dec93f713ef85eb4a632c2a7d221dcf5324083ff3f78aa4958ccc95/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6379616f7a39342f736d733132332e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/cyaoz94/sms123)[![Total Downloads](https://camo.githubusercontent.com/5bd922dc70cbdf3c92952b548340abb65943858ec8206aa11e0706fe40fa1eca/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6379616f7a39342f736d733132332e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cyaoz94/sms123)

A simple package to simplify API integration with SMS Provider SMS123 for Laravel 8

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

[](#installation)

You can install the package via composer:

```
composer require cyaoz94/sms123
```

Configs
-------

[](#configs)

This is not required by default, the package will retrieve the API key and email defined in your `.env` file using the key `SMS123_API_KEY` and `SMS123_EMAIL`. However, you can publish and modify the config file to your liking.

```
php artisan vendor:publish --provider="Cyaoz94\Sms123\Sms123ServiceProvider" --tag="config"
```

Usage
-----

[](#usage)

This package provides the facade named `Sms123Facade`. It contains 3 methods with examples below

```
Sms123Facade::sendSms($contactNumber, $messageContent, $referenceId); // send sms
Sms123Facade::addTemplate($templateTitle, $messageContent, $referenceId); // add template
Sms123Facade::getBalance(); // get balance
```

Error Handling
--------------

[](#error-handling)

This package provides 2 exception classes

```
CredentialsException; // when credentials are missing
SmsApiException; // something went wrong when calling sms123 API
```

Logging
-------

[](#logging)

When debug mode is on. This package will log every API call into `../storage/logs/sms123.log`

### Testing

[](#testing)

For now, there are no tests included in this package.

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

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

Credits
-------

[](#credits)

- [Casper Ho](https://github.com/cyaoz94)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% 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 ~45 days

Total

5

Last Release

1718d ago

PHP version history (2 changes)1.0.0PHP ^7.3

1.0.4PHP ^8.0|^7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/38554428?v=4)[Casper Ho](/maintainers/cyaoz94)[@cyaoz94](https://github.com/cyaoz94)

---

Top Contributors

[![cyaoz94](https://avatars.githubusercontent.com/u/38554428?v=4)](https://github.com/cyaoz94 "cyaoz94 (14 commits)")[![crossRT](https://avatars.githubusercontent.com/u/3617115?v=4)](https://github.com/crossRT "crossRT (7 commits)")

---

Tags

cyaoz94sms123crossRT

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cyaoz94-sms123/health.svg)

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

###  Alternatives

[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[stechstudio/laravel-zipstream

A fast and simple streaming zip file downloader for Laravel.

4633.7M3](/packages/stechstudio-laravel-zipstream)[laravel-notification-channels/microsoft-teams

A Laravel Notification Channel for Microsoft Teams

1603.0M7](/packages/laravel-notification-channels-microsoft-teams)[spatie/laravel-export

Create a static site bundle from a Laravel app

646127.9k5](/packages/spatie-laravel-export)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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