New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

sbudah/panaceamobile

PanaceaMobile Notifications driver.
27 1

Larablocks Analysis

sbudah/panaceamobile works with Laravel 5 (latest release 0.0.5, Aug 24, 2016), which reached end of life: no more fixes, even for security.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • Supports only Laravel 5, past end of life
  • No release in the last 12 months (last: Aug 24, 2016)
  • 0 downloads a month (needs 10,000)
  • 1 GitHub star (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Aug 24, 2016.
  • No releases in the last 12 months.
  • First released: Aug 13, 2016.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Dec 2, 2026.

Install
composer require sbudah/panaceamobile
Latest Version:0.0.5
PHP:>=5.6.4
Laravel:5
License:MIT
Last Updated:Aug 24, 2016
Links: GitHub  ·  Packagist
Maintainer: Sbudah

PanaceaMobile notifications channel for Laravel 5.3 [WIP]

Latest Version on Packagist Software License Build Status StyleCI SensioLabsInsight Quality Score Total Downloads

This package makes it easy to send notifications using PanaceaMobile with Laravel 5.3.

Contents

Installation

You can install the package via composer:

composer require sbudah/panaceamobile

You must install the service provider:

// config/app.php
'providers' => [
    ...
    NotificationChannels\PanaceaMobile\PanaceaMobileServiceProvider::class,
];

Setting up the PanaceaMobile service

Create an account at Panacea Mobile and create an API token.

Add your PanaceaMobile login, secret key (hashed password) and default sender name to your config/services.php:

// config/services.php

'panaceamobile' => [
    'login'  => env('PANACEAMOBILE_LOGIN'), // Your Username
    'secret' => env('PANACEAMOBILE_SECRET'), // Your Token
    'sender' => 'Sbudah' // Phone number to send SMS from
]

Usage

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

use Illuminate\Notifications\Notification;
use NotificationChannels\PanaceaMobile\PanaceaMobileMessage;
use NotificationChannels\PanaceaMobile\PanaceaMobileChannel;

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

    public function toPanaceaMobile($notifiable)
    {
        return (new PanaceaMobileMessage())
            ->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 phone_number attribute of the Notifiable model. If you want to override this behaviour, add the routeNotificationForPanaceaMobile method to your Notifiable model.

// app/User.php

public function routeNotificationForPanaceaMobile()
{
    return '27111000101';
}

Example #2

<?php

namespace App;

use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;

class User extends Authenticatable
{
    use Notifiable;

    /**
     * Route notifications for the Nexmo channel.
     *
     * @return string
     */
    public function routeNotificationForPanaceaMobile()
    {
        return $this->phone;
    }
}

Available methods

  • ->content(''): Specifies the SMS content/text.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

laravel-notification-channels/smsc-ru

SmscRu Notifications channel for Laravel 5.3.

209,102 51
fenos/notifynder

Management system of internal notifications for Laravel 5.*

208,081 423
carropublic/notifications

A collections of notification channels and senders

49,470 0
difftechnology/notifynder

Management system of internal notifications for Laravel 5.*

34 0
jmpatricio/notifications

Notifications package for Laravel

4 1

Version History

Version Released PHP Laravel License
0.0.5 >=5.6.4 ^5.3@dev MIT
0.0.4 >=5.6.4 ^5.3@dev MIT
0.0.3 >=5.6.4 ^5.3@dev MIT
0.0.2 >=5.6.4 ^5.3@dev MIT
v0.0.1 >=5.6.4 ^5.3@dev MIT
Pre-releases (1)
Version Released PHP Laravel License
v0.0.3-alpha >=5.6.4 ^5.3@dev MIT