PHPackages                             seymuromarov/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. [API Development](/categories/api)
4. /
5. seymuromarov/sms

ActiveLaravel[API Development](/categories/api)

seymuromarov/sms
================

Laravel api for sending sms from different providers.

2.5.0(7y ago)2125MITPHPPHP &gt;=5.5.0

Since Sep 27Pushed 7y ago2 watchersCompare

[ Source](https://github.com/seymuromarov/laravel-sms)[ Packagist](https://packagist.org/packages/seymuromarov/sms)[ RSS](/packages/seymuromarov-sms/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (13)Used By (0)

About Project
-------------

[](#about-project)

Laravel api for sending sms from different providers and auth via sms
Currently Supported `Sms.ru` , `Clockwork` , `MSM`, `Smsapi`,`Nexmo`, `Clickatell`

Requirements
------------

[](#requirements)

- [Composer](https://getcomposer.org/)
- [Laravel](https://laravel.com/)
- [Guzzle](https://github.com/guzzle/guzzle)

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

[](#installation)

Require package:

```
composer require seymuromarov/sms
```

Now add the service provider in config/app.php file:

```
'providers' => [
    // ...
        Seymuromarov\Sms\SmsServiceProvider::class,
],

```

after this add alias in config/app.php file:

```
'aliases' => [
 //...
        'Sms' => Seymuromarov\Sms\Facades\Sms::class
 ],

```

Add following values to your `.env`

```
SMS_USER=
SMS_PASS=
SMS_FROM=
SMS_PROVIDER=

```

SMS\_PROVIDER =&gt; provider name `msm` , `clockwork` , `smsRu` , `smsApi` ,`nexmo`,`clickatell`SMS\_PASS - provider password(key on `clockwork`,apiKey on `clickatell`, api\_id on `smsRu`,MD5password on `smsApi`)
SMS\_FROM - from optional for some providers SMS\_USER - Username optional for some providers

Note for `Nexmo` :api\_secret is SMS\_PASS, api\_key is SMS\_USER

use command (optional):

```
php artisan migrate

```

use this command if you want to save sent messages or if you want to logging in via sms

optional values to your `.env`

```
SMS_DB=false

```

SMS\_DB - if you set true it will log all sent messages on db (you must migrate migrations),default is false

For using Sms Sender use this:

```
    Sms::send($number,$message);
    Sms::send(441234567890,"HELLO WORLD");
    Sms::send([441234567890,994513073940,441234567891],"HELLO WORLD");

```

Note:`Nexmo` does not support bulk message

for checking balance use (only for Clockwork,SmsApi):

```
    Sms::balance();

```

Now supports logging in via sms without password , you can use it for 2FA auth or just simple faster logging in via laravel

If you won't use logging in via sms then u don't need to read from here on

optional .env values

```
SMS_DB_PHONE=phone

```

SMS\_DB\_PHONE - it is for logging in purpose ,write your phone number column name here (you must set it on users table),default is phone

For example : if you have default users table just add phone\_number column on it and change env value like this:

```
SMS_DB_PHONE=phone_number

```

for sending message for login purpose use this

```
    Sms::login_code($number, $message = null, $len = 6);
    Sms::login_code(994513073940, "this is your verification code : "); // it will send message like this  this is your verification code : 254129
    Sms::login_code(994513073940, "use code : ",9); // it will send message like this  this is your verification code : 325475698

```

For verification of code and logging in use this

```
    Sms::check_login($number, $code, $id = null);
    Sms::login_code(994513073940, "254129"); // it will find user and login with user whose number is 994513073940 and login via phone number

   // If u don't have phone table on users , we have solution for this too , just send id which u want to login for example:
   Sms::login_code(994513073940, "254129",24); // it will find user whose id is 24 and login via id

```

it will return true if logged in successful, false if there was a problem

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity65

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

Recently: every ~0 days

Total

12

Last Release

2663d ago

Major Versions

1.4.0 → 2.0.02019-01-27

### Community

Maintainers

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

---

Top Contributors

[![seymuromarov](https://avatars.githubusercontent.com/u/17937201?v=4)](https://github.com/seymuromarov "seymuromarov (18 commits)")

---

Tags

apilaravelsmsprovidersendsms apiazerbaijannexmosmsapiclickatellsms.ruClockworkmsmsms-rubaku

### Embed Badge

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

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

###  Alternatives

[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)[ardakilic/mutlucell

Mutlucell SMS API wrapper for sending sms text messages for Laravel

457.3k](/packages/ardakilic-mutlucell)

PHPackages © 2026

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