PHPackages                             ol-zamovshafu/devinotelecom-laravel - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. ol-zamovshafu/devinotelecom-laravel

ActiveLibrary[HTTP &amp; Networking](/categories/http)

ol-zamovshafu/devinotelecom-laravel
===================================

Sends SMS using Devinotelecom API

2.1.2(7y ago)053MITPHPPHP &gt;=5.6.4

Since Nov 22Pushed 7y agoCompare

[ Source](https://github.com/ol-zamovshafu/devinotelecom-laravel)[ Packagist](https://packagist.org/packages/ol-zamovshafu/devinotelecom-laravel)[ Docs](https://github.com/ol-zamovshafu/devinotelecom-laravel)[ RSS](/packages/ol-zamovshafu-devinotelecom-laravel/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (3)Dependencies (6)Versions (10)Used By (0)

DevinotelecomSms Notification Channel For Laravel 5.7+
======================================================

[](#devinotelecomsms-notification-channel-for-laravel-57)

[![Latest Version on Packagist](https://camo.githubusercontent.com/4aeb4f8d3e1d181036198e501e2b032a35c33d66fb67dc6df4a56dfb665c147d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f6c2d7a616d6f7673686166752f646576696e6f74656c65636f6d2d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ol-zamovshafu/devinotelecom-laravel)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

This package makes it easy to send notifications using [Devinotelecom](https://devinotele.com) with Laravel 5.7.

Contents
--------

[](#contents)

- [Installation](#installation)
    - [Setting up the DevinotelecomSms service](#setting-up-the-devinotelecomSms-service)
- [Usage](#usage)
    - [Available methods](#available-methods)
    - [Available events](#available-events)
- [Changelog](#changelog)
- [Testing](#testing)
- [Security](#security)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

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

[](#installation)

You can install this package via composer:

```
composer require ol-zamovshafu/devinotelecom-laravel
```

Next add the service provider to your `config/app.php`:

```
/*
 * Package Service Providers...
 */

NotificationChannels\Devinotelecom\DevinotelecomSmsServiceProvider::class,
```

Register the DevinotelecomSms alias to your application. This registration is not optional because the channel itself uses this very alias.

```
'DevinotelecomSms' => NotificationChannels\Devinotelecom\DevinotelecomSms::class,
```

### Setting up the DevinotelecomSms service

[](#setting-up-the-devinotelecomsms-service)

Add your desired client, login, password, originator (outbox name, sender name) and request timeout configuration to your `config/services.php` file:

```
...
    'DevinotelecomSms' => [
        'client'     => 'http',
        'http'       => [
            'endpoint' => 'https://integrationapi.net/rest/',
        ],
        'login'   => '',
        'password'   => '',
        'originator' => '', // Sender name.
        'timeout'    => 60,
    ],
...
```

Usage
-----

[](#usage)

Now you can use the channel in your via() method inside the notification:

```
use NotificationChannels\Devinotelecom\DevinotelecomSmsChannel;
use Zamovshafu\Devinotelecom\ShortMessage;

class ResetPasswordWasRequested extends Notification
{
    /**
     * Get the notification's delivery channels.
     *
     * @param  mixed  $notifiable
     * @return array
     */
    public function via($notifiable)
    {
        return [DevinotelecomSmsChannel::class];
    }

    /**
     * Get the DevinotelecomSms representation of the notification.
     *
     * @param  mixed  $notifiable
     * @return string|\Zamovshafu\Devinotelecom\ShortMessage
     */
    public function toDevinotelecomSms($notifiable) {
        return "Test notification";
        // Or
        return new ShortMessage($notifiable->phone_number, 'Test notification');
    }
}
```

Don't forget to place the dedicated method for DevinotelecomSms inside your notifiables. (e.g. User)

```
class User extends Authenticatable
{
    use Notifiable;

    public function routeNotificationForDevinotelecomSms()
    {
        return "905123456789";
    }
}
```

### Available methods

[](#available-methods)

DevinotelecomSms can also be used directly to send short messages.

Examples:

```
DevinotelecomSms::sendShortMessage($to, $message);
```

see: [devinotelecom-php](https://github.com/ol-zamovshafu/devinotelecom-php) documentation for more information.

### Available events

[](#available-events)

DevinotelecomSms Notification channel comes with handy events which provides the required information about the SMS messages.

1. **Message Was Sent** (`NotificationChannels\Devinotelecom\Events\MessageWasSent`)
2. **Sending Message** (`NotificationChannels\Devinotelecom\Events\SendingMessage`)

Example:

```
namespace App\Listeners;

use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use NotificationChannels\Devinotelecom\Events\MessageWasSent;

class SentMessageHandler
{
    /**
     * Handle the event.
     *
     * @param  MessageWasSent  $event
     * @return void
     */
    public function handle(MessageWasSent $event)
    {
        $response = $event->response;
        $message = $event->message;
    }
}
```

### Notes

[](#notes)

$response-&gt;groupId() will throw BadMethodCallException if the client is set to 'http'.

Change client configuration with caution.

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Oleg Lobanov](https://github.com/ol-zamovshafu)
- [All Contributors](../../contributors)

License
-------

[](#license)

Copyright (c) Hilmi Erdem KEREN

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

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 75% 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 ~90 days

Recently: every ~65 days

Total

9

Last Release

2786d ago

Major Versions

v1.0.1 → 2.0.0-beta2018-02-28

### Community

Maintainers

![](https://www.gravatar.com/avatar/da0c30463bf0817b256e123563abb4dcabde3e33bc81301885ca5b8ca9bfb5ad?d=identicon)[Oleg Lobanov](/maintainers/Oleg%20Lobanov)

---

Top Contributors

[![erdemkeren](https://avatars.githubusercontent.com/u/1636960?v=4)](https://github.com/erdemkeren "erdemkeren (21 commits)")[![ol-zamovshafu](https://avatars.githubusercontent.com/u/44866464?v=4)](https://github.com/ol-zamovshafu "ol-zamovshafu (4 commits)")[![mpociot](https://avatars.githubusercontent.com/u/804684?v=4)](https://github.com/mpociot "mpociot (2 commits)")[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ol-zamovshafu-devinotelecom-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/ol-zamovshafu-devinotelecom-laravel/health.svg)](https://phpackages.com/packages/ol-zamovshafu-devinotelecom-laravel)
```

###  Alternatives

[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k95.4M307](/packages/laravel-horizon)[illuminate/auth

The Illuminate Auth package.

10528.2M1.2k](/packages/illuminate-auth)[illuminate/broadcasting

The Illuminate Broadcasting package.

7127.2M209](/packages/illuminate-broadcasting)[illuminate/notifications

The Illuminate Notifications package.

513.1M1.1k](/packages/illuminate-notifications)[spatie/laravel-backup-server

Backup multiple applications

17120.9k1](/packages/spatie-laravel-backup-server)[api-platform/laravel

API Platform support for Laravel

58171.6k14](/packages/api-platform-laravel)

PHPackages © 2026

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