PHPackages                             jshar/lara-sender - 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. [API Development](/categories/api)
4. /
5. jshar/lara-sender

ActiveProject[API Development](/categories/api)

jshar/lara-sender
=================

SENDER.GE Integration for Laravel

01PHP

Since Aug 29Pushed 8mo agoCompare

[ Source](https://github.com/jshar/lara-sender)[ Packagist](https://packagist.org/packages/jshar/lara-sender)[ RSS](/packages/jshar-lara-sender/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

SENDER.GE Integration for Laravel
=================================

[](#senderge-integration-for-laravel)

[![Packagist](https://camo.githubusercontent.com/ca33750c56d713d6975e6acfed49ed5a95ad8d2966966a0a27590cfcaa323614/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a736861722f6c61726176656c2d73656e6465722e737667)](https://packagist.org/packages/jshar/laravel-sender)[![Packagist](https://camo.githubusercontent.com/e884466970e4f2cc20592395ace2039f01f52f3f1e6e72d3b4c86f14fb314f9d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a736861722f6c61726176656c2d73656e6465722e737667)](https://packagist.org/packages/jshar/laravel-sender)[![license](https://camo.githubusercontent.com/bb60a6c84189048fb251f0697c548e8670af545e8f8208f4413d204e4d8716e8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6a736861722f6c61726176656c2d73656e6465722e737667)](https://packagist.org/packages/jshar/laravel-sender)

[![laravel-sender](https://raw.githubusercontent.com/jshar/laravel-sender/main/assets/sender.png)](https://github.com/jshar/laravel-sender)

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Usage](#usage)
    - [Send Message](#send-message)
    - [Check Status](#check-status)
- [Notification](#notification)
- [Configuration](#configuration)
- [License](#license)

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

[](#installation)

To get started, you need to install package:

```
composer require jshar/lara-sender
```

If your laravel version is older than 5.5, then add this to your service providers in *config/app.php*:

```
'providers' => [
    ...
    Shar\Sender\SenderServiceProvider::class,
    ...
];
```

You can publish config file using this command:

```
php artisan vendor:publish --provider="Shar\Sender\SenderServiceProvider"
```

This command will copy config file in your config directory.

Usage
-----

[](#usage)

- [Send Message](#send-message)
- [Check Status](#check-status)

### Send Message

[](#send-message)

```
use Shar\Sender\Enums\MessageStatus;
use Shar\Sender\Enums\MessageType;
use Shar\Sender\Facades\Sender;

class SenderController extends Controller
{
    //
    public function __invoke()
    {
        // recipient who should get sms
        $mobile_number = '5XXXXXXXX';

        // content of the message
        $message = 'Welcome, you are getting this message from integration';

        // type of the message
        $type = MessageType::Advertising; // MessageType::Information

        $result = Sender::send($mobile_number, $message, $type);

        if (isset($result->data[0])) {
            // $result->data[0]->messageId
            // $result->data[0]->statusId

            if ((int)$result->data[0]->statusId === MessageStatus::Delivered) {
                // message has been sent
            }
        } else {
            // message was not sent
        }
    }
}
```

### Check Status

[](#check-status)

```
use Shar\Sender\Enums\MessageStatus;
use Shar\Sender\Facades\Sender;

class SenderController extends Controller
{
    //
    public function __invoke()
    {
        // message id provided by send method
        $message_id = 0000;

        $result = Sender::check($message_id);

        if (isset($result->data[0])) {
            // $result->data[0]->messageId
            // $result->data[0]->statusId
            // $result->data[0]->timestamp

            if ((int)$result->data[0]->statusId === MessageStatus::Delivered) {
                // message has been delivered
            }
        } else {
            // message status check failed
        }
    }
}
```

Notification
------------

[](#notification)

You can use this package as notification channel.

```
use Illuminate\Notifications\Notification;
use Shar\Sender\Notifications\SMSMessage;
use Shar\Sender\Channels\SenderChannel;
use Illuminate\Support\Facades\Log;

class WelcomeNotification extends Notification
{
    //
    public function via($notifiable)
    {
        return [SenderChannel::class];
    }

    //
    public function toSender($notifiable): SMSMessage
    {
        return (new SMSMessage())
            ->content('Your message goes here.')
            ->recipient($notifiable->phone)
            ->callback(function ($response) { // optional
                // use response here
            });
    }
}
```

Additional Information
----------------------

[](#additional-information)

### MessageType

[](#messagetype)

Message types has its own enum `Shar\Sender\Enums\MessageType`

KeyValueAdvertising1Information2### MessageStatus

[](#messagestatus)

Message statuses has its own enum `Shar\Sender\Enums\MessageStatus`

KeyValuePending0Delivered1Undelivered2Configuration
-------------

[](#configuration)

You can configure environment file with following variables:

KeyTypeDefaultMeaningSENDER\_DEBUGboolfalseThis value decides to log or not to log requests.SENDER\_API\_KEYstringThis is the api key, which should be generated by sender.ge tech stuff.SENDER\_API\_URLstringThis is the url provided by sender.ge support.License
-------

[](#license)

[jshar/lara-sender](https://github.com/jshar/laravel-sender) is licensed under a [MIT License](https://github.com/jshar/laravel-sender/blob/master/LICENSE).

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance44

Moderate activity, may be stable

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/jshar-lara-sender/health.svg)

```
[![Health](https://phpackages.com/badges/jshar-lara-sender/health.svg)](https://phpackages.com/packages/jshar-lara-sender)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M475](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M452](/packages/google-gax)

PHPackages © 2026

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