PHPackages                             ravelino/laravel-wesender - 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. ravelino/laravel-wesender

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

ravelino/laravel-wesender
=========================

A Laravel package for notifying via Wesender api.

02PHP

Since Nov 29Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ravelinodecastro/laravel-wesender)[ Packagist](https://packagist.org/packages/ravelino/laravel-wesender)[ RSS](/packages/ravelino-laravel-wesender/feed)WikiDiscussions main Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Wesender for Laravel
====================

[](#wesender-for-laravel)

This package allows you to use [Wesenderons](https://wesender.co.ao) with Laravel (tested in version 8) to send SMS.

Contents
--------

[](#contents)

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

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

[](#installation)

You can install the package via composer:

```
composer require ravelino/laravel-wesender
```

### Configuration

[](#configuration)

Add your ApKey to your `.env`:

```
WESENDER_API_KEY=******************************
WESENDER_SPECIAL_CHARACTERS=true
```

### Advanced configuration

[](#advanced-configuration)

Run `php artisan vendor:publish --provider="Ravelino\Wesender\WesenderProvider"`

```
/config/wesender.php

```

Usage
-----

[](#usage)

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

```
use Ravelino\Wesender\WesenderChannel;
use Ravelino\Wesender\WesenderSmsMessage;
use Illuminate\Notifications\Notification;

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

    public function toWesender($notifiable)
    {
        return (new WesenderSmsMessage())
            ->content("Hello world!");
    }
}
```

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

```
public function routeNotificationForWesender()
{
    return '+1234567890';
}
```

### Available Message methods

[](#available-message-methods)

#### WesenderSmsMessage

[](#wesendersmsmessage)

- `content('')`: Accepts a string value for the notification body.

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)

- [Ravelino de Castro](https://github.com/ravelinodecastro)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

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://avatars.githubusercontent.com/u/43408517?v=4)[Ravelino De Castro](/maintainers/ravelinodecastro)[@ravelinodecastro](https://github.com/ravelinodecastro)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/ravelino-laravel-wesender/health.svg)

```
[![Health](https://phpackages.com/badges/ravelino-laravel-wesender/health.svg)](https://phpackages.com/packages/ravelino-laravel-wesender)
```

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M227](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)

PHPackages © 2026

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