PHPackages                             a-mazalov/a1-notification-channel - 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. a-mazalov/a1-notification-channel

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

a-mazalov/a1-notification-channel
=================================

Notification channel for sms of operator A1 (velcome)

v1.0.3(5y ago)11421MITPHPPHP ^7.3|^8.0

Since Mar 2Pushed 4y ago1 watchersCompare

[ Source](https://github.com/a-mazalov/a1-notification-channel)[ Packagist](https://packagist.org/packages/a-mazalov/a1-notification-channel)[ Docs](https://github.com/a-mazalov/a-mazalov/a1-notification-channel)[ RSS](/packages/a-mazalov-a1-notification-channel/feed)WikiDiscussions main Synced yesterday

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

A1-notification-channel
=======================

[](#a1-notification-channel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/0ea2c4d431924443f4b1d84c2dcda8762845c825cd4405cc371cabc5523da12e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f612d6d617a616c6f762f61312d6e6f74696669636174696f6e2d6368616e6e656c3f7374796c653d666c61742d737175617265)](https://packagist.org/packages/a-mazalov/a1-notification-channel)

Пакет добавляет возможность отправки СМС уведомлений через оператора А1 (Velcome)

- [`Доступные методы`](/src/ClientInterface.php)

Установка
---------

[](#установка)

Установка через composer:

```
composer require a-mazalov/a1-notification-channel
```

Далее необходимо указать данные доступа.

Конфигурация
------------

[](#конфигурация)

```
php artisan vendor:publish --provider="A1\Channel\A1ServiceProvider" --tag="config"
```

##### Конфигурационный файл

[](#конфигурационный-файл)

```
// config/a1.php

return [
    "api_key" => env('A1_API_KEY', null),
    "api_login" => env('A1_API_LOGIN', null),
    "api_scheme" => env('A1_API_SCHEME', 'http'),
    "api_endpoint" => env('A1_API_ENDPOINT', 'http://smart-sender.a1.by/api/'),
];
```

##### Доступные ENV переменные

[](#доступные-env-переменные)

```
A1_API_KEY=
A1_API_LOGIN=
A1_API_SCHEME=http
A1_API_ENDPOINT=http://smart-sender.a1.by/api/
```

Установка в Lumen
-----------------

[](#установка-в-lumen)

### Регистрация провайдера

[](#регистрация-провайдера)

```
// bootstrap/app.php

$app->register(A1\Channel\A1ServiceProvider::class);

// Опционально регистрация фасада
$app->withFacades(true, [
    // ...
    'A1\Channel\A1Facade' => 'A1Client',
]);
```

Использование
-------------

[](#использование)

#### Пример канала уведомлений

[](#пример-канала-уведомлений)

```
namespace App\Notifications;

use A1\Channel\A1Message;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;

class TestNotification extends Notification
{
    use Queueable;

    public $message;

    public function __construct($message)
    {
        $this->message = $message;
    }

    public function via($notifiable)
    {
        return ['a1'];
    }

    // ..

    public function toA1($notifiable)
    {
        return (new A1Message)
            ->content($this->message);
    }
}
```

#### Получение номера телефона из модели

[](#получение-номера-телефона-из-модели)

```
// App\Models\v1\Employee
// Так же необходимо добавить трейт для уведомлений
use Notifiable;

public function routeNotificationForA1()
{
    return $this->mtel ? '375' . $this->mtel : null;
}
```

#### Уведомление пользователя

[](#уведомление-пользователя)

```
$user->notify(new Notification())
```

#### Отправка СМС напрямую через Фасад

[](#отправка-смс-напрямую-через-фасад)

```
// A1\Channel\A1Client;

A1Client::sendSms('375290001122', 'Текст сообщения');
```

### Testing

[](#testing)

```
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.

Credits
-------

[](#credits)

- [Alexander](https://github.com/a-mazalov)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 88.9% 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 ~5 days

Total

4

Last Release

1880d ago

PHP version history (2 changes)v1.0.0PHP ^7.3

v1.0.2PHP ^7.3|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/db59a7357054f1b121d2da1830c05a3337c39b9b3dabef6dfdebacf8b34653a7?d=identicon)[a-mazalov](/maintainers/a-mazalov)

---

Top Contributors

[![a-mazalov](https://avatars.githubusercontent.com/u/21226623?v=4)](https://github.com/a-mazalov "a-mazalov (8 commits)")[![aavtukhovich](https://avatars.githubusercontent.com/u/41624598?v=4)](https://github.com/aavtukhovich "aavtukhovich (1 commits)")

---

Tags

laravelnotificationchannela1-channela-mazalov

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/a-mazalov-a1-notification-channel/health.svg)

```
[![Health](https://phpackages.com/badges/a-mazalov-a1-notification-channel/health.svg)](https://phpackages.com/packages/a-mazalov-a1-notification-channel)
```

###  Alternatives

[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[liliom/laravel-firebase

Laravel FCM (Firebase Cloud Messaging) Notification Channel

2426.1k](/packages/liliom-laravel-firebase)[ghanem/laravel-smsmisr

Send SMS and SMS Notification via SMS Misr for Laravel

194.8k](/packages/ghanem-laravel-smsmisr)

PHPackages © 2026

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