PHPackages                             parsadanashvili/laravel-smsoffice - 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. parsadanashvili/laravel-smsoffice

ActiveLibrary

parsadanashvili/laravel-smsoffice
=================================

v1.1.0(2y ago)0379PHPPHP &gt;=7.0.0

Since Aug 19Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Parsadanashvili/laravel-smsoffice)[ Packagist](https://packagist.org/packages/parsadanashvili/laravel-smsoffice)[ RSS](/packages/parsadanashvili-laravel-smsoffice/feed)WikiDiscussions master Synced 1mo ago

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

Laravel SMSOffice Package
=========================

[](#laravel-smsoffice-package)

[![Latest Stable Version](https://camo.githubusercontent.com/63e95fa2cf55d7a3367424593ff48eb269c2b1cb89e55a62e0895d074a63334f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706172736164616e61736876696c692f6c61726176656c2d736d736f66666963652e737667)](https://packagist.org/packages/parsadanashvili/laravel-smsoffice)[![Total Downloads](https://camo.githubusercontent.com/215073ca65d20ae010ee49b6ed1ec240f380d1f958054cce9f62ea44051503cc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f706172736164616e61736876696c692f6c61726176656c2d736d736f66666963652e737667)](https://packagist.org/packages/parsadanashvili/laravel-smsoffice)[![Downloads Month](https://camo.githubusercontent.com/82c5392e4b86d299aa79da5ae664f8ed64a01e85cefd515d13bac03b4fa81b16/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f706172736164616e61736876696c692f6c61726176656c2d736d736f66666963652e737667)](https://packagist.org/packages/parsadanashvili/laravel-smsoffice)

The **Laravel SMSOffice** package allows you to easily send SMS messages using the [SMSOffice](http://smsoffice.ge) API. It provides a convenient way to integrate SMS functionality into your Laravel applications.

Credits
-------

[](#credits)

This package is a fork of the original work by **lotuashvili/laravel-smsoffice**. You can find the original repository [here](https://github.com/Lotuashvili/laravel-smsoffice).

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

[](#installation)

You can install the package using Composer:

```
composer require parsadanashvili/laravel-smsoffice
```

If you're using Laravel 5.4 or lower, you'll need to manually add the service provider to your `config/app.php` file. Open the `config/app.php` file and add the `SmsOfficeServiceProvider` to the providers array:

```
// config/app.php
'providers' => [
    // Other providers
    Parsadanashvili\LaravelSmsOffice\SmsOfficeServiceProvider::class,
],
```

After adding the service provider, you'll need to publish the configuration:

```
php artisan vendor:publish --provider="Parsadanashvili\LaravelSmsOffice\SmsOfficeServiceProvider"
```

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

[](#configuration)

You'll need to set up the following environment variables in your `.env` file:

```
SMSOFFICE_API_KEY=your_api_key
SMSOFFICE_SENDER=your_default_sender
SMSOFFICE_DRIVER=your_preferred_driver
```

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

[](#development)

During development, you can set the SMS driver to `log` by adding `SMSOFFICE_DRIVER=log` to your `.env` file. This will help you simulate SMS sending by logging the actions instead.

Usage
-----

[](#usage)

### Using Notifications

[](#using-notifications)

1. In your `User` model (or any model you want to send notifications to), add a `routeNotificationForSms()` method that returns the user's phone number:

```
namespace App\Models;

use Illuminate\Notifications\Notifiable;

class User extends Authenticatable
{
    use Notifiable;

    // Other code...

    public function routeNotificationForSms()
    {
        return $this->phone; // Adjust this to match your phone number field
    }
}
```

2. Create a notification class using the following Artisan command:

```
php artisan make:notification SmsNotification
```

3. Inside the generated `SmsNotification` class, import `SmsOfficeChannel` and add it to the `via()` method. Define the `toSms()` method to specify the content of your SMS:

```
use Illuminate\Notifications\Notification;
use Parsadanashvili\LaravelSmsOffice\SmsOfficeChannel;

class SMSNotification extends Notification
{
    public function via($notifiable)
    {
        return [SmsOfficeChannel::class];
    }

    public function toSms($notifiable)
    {
        return 'Your Notification Content Here';
    }
}
```

4. You can now use this notification in your application to send SMS notifications to users:

```
use App\Notifications\SMSNotification;

$user->notify(new SMSNotification());
```

### Sending SMS Directly

[](#sending-sms-directly)

If you want to send SMS messages without using notifications, you can do so directly:

```
use Parsadanashvili\LaravelSmsOffice\SmsOffice;

public function sendSms(SmsOffice $smsOffice)
{
    $smsOffice->send('599123456', 'Your Message Here');
}
```

Feel free to replace `'599123456'` with the recipient's phone number and `'Your Message Here'` with the actual message content.

This should help clarify the installation process, configuration, and usage of the **Laravel SMSOffice** package.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

Total

2

Last Release

992d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cfe2225084667525ad49696b6a892311e0cf7f5c8864e54d16ee3e6d06df51c9?d=identicon)[Parsadanashvili](/maintainers/Parsadanashvili)

---

Top Contributors

[![Parsadanashvili](https://avatars.githubusercontent.com/u/61390801?v=4)](https://github.com/Parsadanashvili "Parsadanashvili (3 commits)")

### Embed Badge

![Health badge](/badges/parsadanashvili-laravel-smsoffice/health.svg)

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

###  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

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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