PHPackages                             mhmdahmd/hypersender - 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. mhmdahmd/hypersender

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

mhmdahmd/hypersender
====================

HyperSender Notifications Channel for Laravel

1.0.0(1y ago)1280MITPHPPHP ^8.2

Since Jun 9Pushed 1y agoCompare

[ Source](https://github.com/mhmdahmd2422/hypersender-laravel-notification)[ Packagist](https://packagist.org/packages/mhmdahmd/hypersender)[ RSS](/packages/mhmdahmd-hypersender/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

HyperSender Notification Channel for Laravel
============================================

[](#hypersender-notification-channel-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3095011420f37ceab5dd9b79c9de9c2367a9d2264a3702d411722c24dc459ff9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f687970657273656e6465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mhmdahmd/hypersender)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/bfc298a45e28cd0528c8ade14d2a3496994646df7a7cd615442d172d24083e96/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f687970657273656e6465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mhmdahmd/hypersender)

A Laravel notification channel for sending WhatsApp messages through the HyperSender API. This package seamlessly integrates with Laravel's notification system, allowing you to send WhatsApp messages to your users with a clean, fluent API.

Contents
--------

[](#contents)

- [Installation](#installation)
- [Configuration](#configuration)
- [Usage](#usage)
- [Available Methods](#available-methods)
- [Exception Handling](#exception-handling)
- [License](#license)

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

[](#installation)

You can install the package via composer:

```
composer require mhmdahmd/hypersender
```

Configuration
-------------

[](#configuration)

Add your HyperSender API credentials to your `config/services.php` file:

```
'hypersender-api' => [
    'token' => env('HYPERSENDER_API_TOKEN'),
    'instance_id' => env('HYPERSENDER_INSTANCE_ID'),
    'api_base_uri' => env('HYPERSENDER_API_BASE_URI', 'https://app.hypersender.com/api/whatsapp/v1'),
],
```

Then add these environment variables to your `.env` file:

```
HYPERSENDER_API_TOKEN=your-api-token
HYPERSENDER_INSTANCE_ID=your-instance-id

```

Usage
-----

[](#usage)

To use this package, you need to create a notification class in your Laravel application. Here's an example:

```
