PHPackages                             cyberwolfstudio/laravel-smsmapi-notifications - 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. cyberwolfstudio/laravel-smsmapi-notifications

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

cyberwolfstudio/laravel-smsmapi-notifications
=============================================

SmsAPI Notifications Channel for Laravel

03PHP

Since Feb 19Pushed 4mo agoCompare

[ Source](https://github.com/cyberwolf-studio/laravel-smsmapi-notifications)[ Packagist](https://packagist.org/packages/cyberwolfstudio/laravel-smsmapi-notifications)[ RSS](/packages/cyberwolfstudio-laravel-smsmapi-notifications/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

SmsAPI Notifications Channel for Laravel
========================================

[](#smsapi-notifications-channel-for-laravel)

[![Software License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](LICENSE.md)

Laravel notification channel for sending SMS via [SmsAPI](https://www.smsapi.pl/). Supports both Polish (`smsapi.pl`) and international (`smsapi.com`) services.

Compatible with Laravel 6.x through 12.x.

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

[](#installation)

```
composer require cyberwolfstudio/laravel-smsmapi-notifications
```

The service provider is auto-discovered. No manual registration needed.

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

[](#configuration)

Add your SmsAPI token to `config/services.php`:

```
'smsapi' => [
    'token' => env('SMSAPI_AUTH_TOKEN'),
],
```

Optionally set the service region in `config/smsapi.php`:

```
// 'pl' (default) or 'com'
'service' => env('SMSAPI_SERVICE', 'pl'),
```

Usage
-----

[](#usage)

Implement the `SmsAPINotification` contract on your notification and return an `SmsAPIMessage`:

```
use Illuminate\Notifications\Notification;
use CyberWolfStudio\LaravelSmsAPINotifications\SmsAPIPlChannel;
use CyberWolfStudio\LaravelSmsAPINotifications\SmsAPIMessage;
use CyberWolfStudio\LaravelSmsAPINotifications\Contracts\SmsAPINotification;

class OrderShipped extends Notification implements SmsAPINotification
{
    public function via($notifiable): array
    {
        return [SmsAPIPlChannel::class];
    }

    public function toSmsAPI($notifiable): SmsAPIMessage
    {
        return new SmsAPIMessage('Your order has been shipped!');
    }
}
```

### Routing

[](#routing)

Add a `routeNotificationForSmsapi` method to your notifiable model to return the phone number:

```
public function routeNotificationForSmsapi(): string
{
    return $this->phone_number;
}
```

To send to a contacts group instead, add `routeNotificationForSmsapiGroup`:

```
public function routeNotificationForSmsapiGroup(): string
{
    return $this->contacts_group;
}
```

License
-------

[](#license)

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

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance51

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity12

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![mikield](https://avatars.githubusercontent.com/u/4073672?v=4)](https://github.com/mikield "mikield (1 commits)")

### Embed Badge

![Health badge](/badges/cyberwolfstudio-laravel-smsmapi-notifications/health.svg)

```
[![Health](https://phpackages.com/badges/cyberwolfstudio-laravel-smsmapi-notifications/health.svg)](https://phpackages.com/packages/cyberwolfstudio-laravel-smsmapi-notifications)
```

###  Alternatives

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

Laravel Email Domain Rule

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

PHPackages © 2026

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