PHPackages                             granada-pride/unifonic-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. granada-pride/unifonic-sms

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

granada-pride/unifonic-sms
==========================

A Laravel package for integrating Unifonic SMS with the Laravel notification system.

v1.1.1(1y ago)17231MITPHP

Since Aug 12Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/hussaingaber/laravel-unifonic-sms)[ Packagist](https://packagist.org/packages/granada-pride/unifonic-sms)[ RSS](/packages/granada-pride-unifonic-sms/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependenciesVersions (4)Used By (0)

![Github All Releases](https://camo.githubusercontent.com/37f72ff16fa7ed94732d7e3157c4a54369d28e9fe9ee5e76e879c77f6e76d002/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6772616e6164612d70726964652f756e69666f6e69632d736d73)

Unifonic SMS for Laravel
========================

[](#unifonic-sms-for-laravel)

**Unifonic SMS** is a Laravel package that provides seamless integration with the [Unifonic SMS](https://www.unifonic.com/) service. It allows you to send SMS messages through the Unifonic platform using Laravel's native notification system. Whether you need to send OTPs, alerts, or marketing messages, this package simplifies the process by integrating directly into Laravel.

Features
--------

[](#features)

- **Seamless Integration:** Easily send SMS notifications through Unifonic.
- **Configurable:** Adjust settings via the Laravel config system.
- **Error Handling:** Full support for exception handling and logging.
- **Laravel Compatibility:** Compatible with Laravel 8.x, 9.x, and 10.x.
- **Secure:** Handles sensitive data securely.

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Configuration](#configuration)
- [Usage](#usage)
- [Advanced Usage](#advanced-usage)
- [Contributing](#contributing)
- [License](#license)

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

[](#installation)

To get started, install the package via Composer:

```
composer require granada-pride/unifonic-sms
```

### Requirements

[](#requirements)

- PHP &gt;= 8.0
- Laravel &gt;= 8.x

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

[](#configuration)

After installing the package, publish the configuration file:

```
php artisan vendor:publish --provider="GranadaPride\UnifonicSms\UnifonicSmsServiceProvider"
```

This will publish a unifonic.php configuration file to your config directory where you can set your AppSid, SenderID, and Endpoint.

### Configuration Options

[](#configuration-options)

- **AppSid:** Your Unifonic application SID.
- **SenderID:** The name or number that will appear as the sender of the SMS.
- **Endpoint:** The Unifonic API endpoint (default: ).

Example configuration (config/unifonic.php):

```
return [
    'appsId' => env('UNIFONIC_APP_SID', 'your-app-sid'),
    'senderId' => env('UNIFONIC_SENDER_ID', 'your-sender-id'),
    'endpoint' => env('UNIFONIC_ENDPOINT', 'https://el.cloud.unifonic.com/rest/SMS/messages'),
];
```

To enable logging for the Unifonic SMS package, you can add a custom log channel in your config/logging.php file:

```
'channels' => [
    // Other log channels...

    'unifonic' => [
        'driver' => 'single',
        'path' => storage_path('logs/unifonic.log'),
        'level' => 'error',
    ],
],
```

This configuration ensures that Unifonic SMS logs are stored in a separate log file at storage/logs/unifonic.log and only logs messages with a severity level of error or higher.

Usage
-----

[](#usage)

After configuring the package, you can send SMS notifications:

```
use GranadaPride\UnifonicSms\Notifications\UnifonicSmsNotification;

$phone = '1234567890';
$message = "Your verification code is 123456";

$user->notify(new UnifonicSmsNotification($phone, $message));
```

Advanced Usage
--------------

[](#advanced-usage)

To customize the SMS further or handle different scenarios, you can modify the notification class:

```
use GranadaPride\UnifonicSms\Notifications\UnifonicSmsNotification;

class CustomSmsNotification extends UnifonicSmsNotification
{
    public function toSms($notifiable)
    {
        return [
            'phone' => $this->phone,
            'message' => "Your custom message",
        ];
    }
}

// Sending the custom SMS
$user->notify(new CustomSmsNotification($phone, $message));
```

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

[](#contributing)

Contributions are welcome! Please feel free to submit a Pull Request or open an issue to improve this package.

License
-------

[](#license)

This package is open-source software licensed under the MIT License. Please see the License File for more information.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance44

Moderate activity, may be stable

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% 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 ~3 days

Total

3

Last Release

685d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5646942?v=4)[Hussein Gaber](/maintainers/husseingaber)[@HusseinGaber](https://github.com/HusseinGaber)

---

Top Contributors

[![blue-elephant-tech](https://avatars.githubusercontent.com/u/148823784?v=4)](https://github.com/blue-elephant-tech "blue-elephant-tech (7 commits)")[![HusseinGHussein](https://avatars.githubusercontent.com/u/12671197?v=4)](https://github.com/HusseinGHussein "HusseinGHussein (1 commits)")

### Embed Badge

![Health badge](/badges/granada-pride-unifonic-sms/health.svg)

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

###  Alternatives

[maize-tech/laravel-email-domain-rule

Laravel Email Domain Rule

612.0k](/packages/maize-tech-laravel-email-domain-rule)[sarfraznawaz2005/noty

Laravel package to incorporate noty flash notifications into laravel.

324.5k](/packages/sarfraznawaz2005-noty)

PHPackages © 2026

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