PHPackages                             boyo/laravel-link-mobility - 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. boyo/laravel-link-mobility

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

boyo/laravel-link-mobility
==========================

Laravel notifications with Link Mobility

v1.3(1y ago)0863[1 PRs](https://github.com/boyanraichev/laravel-link-mobility/pulls)MITPHPPHP &gt;=7.3

Since Mar 14Pushed 1y ago2 watchersCompare

[ Source](https://github.com/boyanraichev/laravel-link-mobility)[ Packagist](https://packagist.org/packages/boyo/laravel-link-mobility)[ Docs](https://github.com/boyanraichev/laravel-link-mobility)[ RSS](/packages/boyo-laravel-link-mobility/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (7)Used By (0)

LinkMobility Notification channel
=================================

[](#linkmobility-notification-channel)

This package adds a notification channel for linkmobility.com services. You can use it to send SMS messages and Viber for Business messages.

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

[](#installation)

composer require boyo/laravel-link-mobility

Config
------

[](#config)

Add the following to your services config file.

```
'link-mobility' => [
	'api_key' => env('LINK_MOBILITY_API_KEY',''),
	'api_secret' => env('LINK_MOBILITY_API_SECRET',''),
	'service_id' => env('LINK_MOBILITY_SERVICE_ID', '1'),
	'sc_sms' => env('LINK_MOBILITY_SMS_SENDER', ''),
	'sc_viber' => env('LINK_MOBILITY_VIBER_SENDER', ''),
	'prefix' => '',
	'log' => env('LINK_MOBILITY_LOG',true),
	'log_channel' => env('LINK_MOBILITY_LOG_CHANNEL','stack'),
	'send' => env('LINK_MOBILITY_SEND',false),
	'bulglish' => true,
	'allow_multiple' => false,
],
```

- *api\_key* your LINK Mobility API\_KEY
- *api\_secret* your LINK Mobility API\_SECRET
- *service\_id* your LINK Mobility Service ID
- *log* if the messages should be written to a log file
- *log\_channel* the log channel to log messages to
- *send* if the messages should be sent (production/dev environment)
- *bulglish* if cyrillic text should be converted to latin letters for SMS messages (cyrillic messages are limited to 67 characters)
- *allow\_multiple* if SMS messages above 160 characters should be allowed (billed as multiple messages)

Send test
---------

[](#send-test)

To send a test message use the following artisan command:

`php artisan link-mobility:test phone --message='content' --channel=sms --promo`

- channel can have the following values: sms|viber|viber-sms
- promo will send a promo test message with image and button

Direct usage
------------

[](#direct-usage)

You can instantiate a `Boyo\LinkMobility\LinkMobilityMessage` object and send it immediately.

```
use Boyo\LinkMobility\LinkMobilityMessage;
use Boyo\LinkMobility\LinkMobilitySender;

class MyClass
{
	public function myFunction()
	{
		$message = (new LinkMobilityMessage())->to('359888888888')->channel('viber-sms')->sms('SMS text')->viber('Viber text');

		$client = new LinkMobilitySender();
		$client->send($message);
	}
}
```

Usage with notifications
------------------------

[](#usage-with-notifications)

1. Create a message file that extends `Boyo\LinkMobility\LinkMobilityMessage`. It can take whatever data you need in the construct and should implement a `build()` method that defines the messages text content - a good practice would be to render a view file, so that your message content is in your views. You should only define the methods for the delivery channels that your are going to use.

```
use Boyo\LinkMobility\LinkMobilityMessage;

class MyMessage extends LinkMobilityMessage
{
	public function __construct($data)
    {
        $this->id = $data->id; // your unique message id, add other parameters if needed
    }

	public function build() {
		// set your sms text
		$this->sms('SMS text');

		// set your viber text
		$this->viber('Viber text');

		return $this;
	}
}
```

2. In your Notification class you can now include the LinkMobility channel in the `$via` array returned by the `via()` method.

```
use Boyo\LinkMobility\LinkMobilityChannel;

via($notifiable)
{

	// ...

	$via[] = LinkMobilityChannel::class;

	return $via

}
```

Within the same Notification class you should also define a method `toSms()`:

```
public function toSms($notifiable)
{
	return (new MyMessage($unique_id))->to($notifiable->phone)->channel('viber-sms');
}
```

The channel method is where you define the delivery channel you wish to use.

- **sms** delivery by sms only (this is the default value, if you omit the channel method)
- **viber** delivery by viber only
- **viber-sms** delivery attempted by viber, if not successful delivery by sms

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance46

Moderate activity, may be stable

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

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

Total

5

Last Release

410d ago

Major Versions

v0.1 → v1.02022-04-12

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

laravelnotificationssmslink-mobility

### Embed Badge

![Health badge](/badges/boyo-laravel-link-mobility/health.svg)

```
[![Health](https://phpackages.com/badges/boyo-laravel-link-mobility/health.svg)](https://phpackages.com/packages/boyo-laravel-link-mobility)
```

###  Alternatives

[tzsk/sms

A robust and unified SMS gateway integration package for Laravel, supporting multiple providers.

320244.3k6](/packages/tzsk-sms)

PHPackages © 2026

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