PHPackages                             csgt/notification-channel-direkto - 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. csgt/notification-channel-direkto

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

csgt/notification-channel-direkto
=================================

Notification channel Direkto.

v6.0.1(10mo ago)01.2kMITPHPPHP &gt;=7.2

Since Sep 2Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/csgt/laravel-notification-channel-direkto)[ Packagist](https://packagist.org/packages/csgt/notification-channel-direkto)[ Docs](https://github.com/csgt/laravel-notification-channels-direkto)[ RSS](/packages/csgt-notification-channel-direkto/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (14)Used By (0)

Direkto notifications channel for Laravel 5.4 - 8.0
===================================================

[](#direkto-notifications-channel-for-laravel-54---80)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3fba8ea4c9748be5348b1ebc939d5dc6a8a6b508978cecb411cbc76023bf4dab/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f637367742f6e6f74696669636174696f6e2d6368616e6e656c2d646972656b746f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/csgt/notification-channel-direkto)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/7242e9eda77667abdafd8a12fe8da5a293fdc95f6a917aa3ca86c1c500dd132e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f637367742f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c2d646972656b746f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/csgt/notification-channel-direkto)

This package makes it easy to send \[Direkto notifications\] with Laravel Laravel &gt;5.4 branch 5.x Laravel &gt;8 branch 6.x

Contents
--------

[](#contents)

- [Usage](#usage)
    - [Available Message methods](#available-message-methods)
- [Changelog](#changelog)
- [Testing](#testing)
- [Security](#security)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

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

[](#installation)

You can install the package via composer:

```
composer require csgt/notification-channel-direkto
```

You must install the service provider:

```
// config/app.php
'providers' => [
    ...
    NotificationChannels\Direkto\DirektoProvider::class,
],
```

### Setting up your Direkto account

[](#setting-up-your-direkto-account)

Add your Direkto Account SID, Auth Token, and From Number (optional) to your `config/services.php`:

```
// config/services.php
...
'direkto' => [
    'account_url'   => env('DIREKTO_ACCOUNT_URL'),
    'account_token' => env('DIREKTO_AUTH_TOKEN'),
],
...
```

Usage
-----

[](#usage)

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

```
use NotificationChannels\Direkto\DirektoChannel;
use NotificationChannels\Direkto\DirektoMessage;
use Illuminate\Notifications\Notification;

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

    public function toDirekto($notifiable)
    {
        return (new DirektoMessage())
            ->content("Your {$notifiable->service} account was approved!");
    }
}
```

In order to let your Notification know which phone are you sending/calling to, the channel will look for the `celular` attribute of the Notifiable model. If you want to override this behaviour, add the `routeNotificationForDirekto` method to your Notifiable model.

```
public function routeNotificationForDirekto()
{
    return $this->mobile;
}
```

### Available Message methods

[](#available-message-methods)

#### DirektoSmsMessage

[](#direktosmsmessage)

- `from('')`: Accepts a phone to use as the notification sender.
- `content('')`: Accepts a string value for the notification body.

Changelog
---------

[](#changelog)

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

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)

- [CS](https://github.com/csgt)

License
-------

[](#license)

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

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance55

Moderate activity, may be stable

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

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

Recently: every ~572 days

Total

13

Last Release

304d ago

Major Versions

1.0.4 → 5.5.12018-01-30

5.8.2 → v6.0.02021-04-23

PHP version history (4 changes)1.0.0PHP &gt;=5.5.9

5.6.0PHP &gt;=7.0.0

v6.0.0PHP &gt;=8.0.0

v6.0.1PHP &gt;=7.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7926376?v=4)[csgt](/maintainers/csgt)[@csgt](https://github.com/csgt)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/csgt-notification-channel-direkto/health.svg)

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

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