PHPackages                             deyan-ardi/ganadev-notif - 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. deyan-ardi/ganadev-notif

ActiveLibrary[API Development](/categories/api)

deyan-ardi/ganadev-notif
========================

Laravel Ganadev Notification Service is a Laravel package that is used to help speed up the integration process between the applications you are developing with the Ganadev Notification Sender API. This package includes ready-to-use functions that really help your work process

v3.0.1(2y ago)01511MITPHPPHP ^7.3|7.4|^8.0|^8.1|^8.2

Since Mar 18Pushed 2y ago1 watchersCompare

[ Source](https://github.com/deyan-ardi/ganadev-notif)[ Packagist](https://packagist.org/packages/deyan-ardi/ganadev-notif)[ RSS](/packages/deyan-ardi-ganadev-notif/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (17)Used By (0)

Laravel Ganadev Notification Service Package
============================================

[](#laravel-ganadev-notification-service-package)

[![php](https://camo.githubusercontent.com/d282cc3193faee11ee32307d0c4c9d809e8fafa4b3a8c12c6afbf35d4f7ec617/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d3737374242343f7374796c653d666f722d7468652d6261646765266c6f676f3d706870266c6f676f436f6c6f723d7768697465)](https://camo.githubusercontent.com/d282cc3193faee11ee32307d0c4c9d809e8fafa4b3a8c12c6afbf35d4f7ec617/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d3737374242343f7374796c653d666f722d7468652d6261646765266c6f676f3d706870266c6f676f436f6c6f723d7768697465)[![bootstrap](https://camo.githubusercontent.com/5a580364ff3bd338370177402c5c050ff81a1933927e1e475c920c90850b38a3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d4646324432303f7374796c653d666f722d7468652d6261646765266c6f676f3d6c61726176656c266c6f676f436f6c6f723d7768697465)](https://camo.githubusercontent.com/5a580364ff3bd338370177402c5c050ff81a1933927e1e475c920c90850b38a3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d4646324432303f7374796c653d666f722d7468652d6261646765266c6f676f3d6c61726176656c266c6f676f436f6c6f723d7768697465)

What Is Ganadev Notification Sender API?
----------------------------------------

[](#what-is-ganadev-notification-sender-api)

Ganadev Notification Sender is an API developed by GanaDev Com to simplify and support the process of sending notifications faster without disturbing the main application. The concept used in the development of this API is Microservice, your application sends a notification request via our API, and we will help send it to your users. With this concept, your application will have a much faster execution time than usual. Ganadev Notification Sender currently only supports sending notifications via Email and WhatsApp.

- GanaDev Com API Notification v3 URL =&gt;

What Is Laravel Ganadev Notification Service Package?
-----------------------------------------------------

[](#what-is-laravel-ganadev-notification-service-package)

Laravel Ganadev Notification Service is a Laravel package that is used to help speed up the integration process between the applications you are developing with the Ganadev Notification Sender API. This package includes ready-to-use functions that really help your work process, so you don't need to do it manually anymore

Support Version
---------------

[](#support-version)

Laravel VersionSupport4.2.x`No`5.x.x`No`6.x.x`No`7.x.x`Yes`8.x.x`Yes`9.x.x`Yes`10.x.x`Yes`System Requerements
-------------------

[](#system-requerements)

- PHP Version "^7.3|7.4|^8.0|^8.1|^8.2"
- Guzzle HTTP (Default By Laravel, Please install if missing from your Laravel)

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

[](#installation)

- Open terminal, run this command

```
composer require deyan-ardi/ganadev-notif
```

- After successful, run this command to publish config file name `ganadevnotif.php` in config folder Laravel

```
php artisan vendor:publish --provider="DeyanArdi\GanadevNotif\GanadevServiceProvider" --tag="config"
```

- Add this key in project `.env` file

```
GANADEV_REPLACE_STATUS=true
GANADEV_NOTIF_DEVICE=""
GANADEV_NOTIF_TOKEN=""
```

How To Get API TOKEN
--------------------

[](#how-to-get-api-token)

- Please contact GanaDev Com by this url . When your request approved, you will be get the account to login in GanaDev Com Notification API v3 ()
- Select the settings menu in the upper right corner
- In the API Key column is your API Token, Copy this to your .env as GANADEV\_NOTIF\_TOKEN

How To Register Device
----------------------

[](#how-to-register-device)

- Click Dashboad menu
- Choose Add Devices and fill all required form.
- Connect your Device to WhatsApp by using Linked Device Feature in WhatsApp
- By defaut WA Notif Status and Email Notif Status is Active, if disabled you cant use WhatsApp API or Email API
- Copy the Number of Devices to your .env as GANADEV\_NOTIF\_DEVICE configuration

How To Use
----------

[](#how-to-use)

### Integration With Laravel Mailer

[](#integration-with-laravel-mailer)

To integration this package with Laravel Mailer, first you must add new mailer method in `config/mail.php`

```
'mailers' => [
    // ....
    'ganadev' => [
            'transport' => 'smtp',
            'host' => env('GANADEV_MAIL_HOST'),
            'port' => env('GANADEV_MAIL_PORT'),
            'encryption' => env('GANADEV_MAIL_ENCRYPTION'),
            'username' => env('GANADEV_MAIL_USERNAME'),
            'password' => env('GANADEV_MAIL_PASSWORD'),
            'timeout' => null,
            'local_domain' => env('GANADEV_MAIL_EHLO_DOMAIN'),
    ],
    // ....
]
```

After that, set the default MAIL\_MAILER to `ganadev` and set GANADEV\_REPLACE\_STATUS to `true` in .env file

```
MAIL_MAILER=ganadev
GANADEV_REPLACE_STATUS=true
```

That way, every time you send an email using Laravel Mailer. Then the email configuration used is the configuration from the Ganadev Notification Sender API server. Later, if you make changes to your email configuration, you can simply change it on the Ganadev Notification Sender API () server, so all your app that use the Device Account will be updated too. Another advantage, you no longer need to fear that your email configuration will be known by other people, because your email configuration is separate from your application.

Finally, if you activate this function, by default this package will automatically make a request to the Ganadev Notification Sender API server every 15 minutes. This means, if later you make changes to the Device Account on the Ganadev Notification Sender API server. The change will be felt 15 minutes later. You can change the configuration in the `idle_time` configuration in the `config/ganadevnotif.php` file. We provide default options, namely requests every 15 minutes, 30 minutes, or 60 minutes.

### Integration With Laravel Queue

[](#integration-with-laravel-queue)

By default, this package send request to API Server using Laravel Queue method used in your application QUEUE\_CONNECTION setting. You can disabled it by set `must_queue` to false in `config/ganadevnotif.php`.

If you want running spesific API Function manually using Jobs, you can publish Jobs file using this command

```
php artisan vendor:publish --provider="DeyanArdi\GanadevNotif\GanadevServiceProvider" --tag="jobs"
```

Now all job will be publish to Jobs folder and you can call it using Laravel Queue method. Please read documentation of Laravel Queue in .

### Send Mail Message Only

[](#send-mail-message-only)

You can send email message (without image) using methode name `sendMailMessage`, this method required 3 paramaeters `send_to`,`subject`, and `message`. Example usage :

```
use DeyanArdi\GanadevNotif\GanadevApi;

public function sendingMessageText(){
    $send_to = "yourtargetemail@gmail.com";
    $subject = "Test Subject";

    // Using Text Message
    $message = "Text Message"
    GanadevApi::sendMailMessage($send_to, $subject, $message)
}

public function sendingWithCustomView(){
    $send_to = "yourtargetemail@gmail.com";
    $subject = "Test Subject";

    // Using Laravel Views
    $message = view('emails.exampleNotification', compact('subject','send_to'))->render(); // Your custom view with render method
    GanadevApi::sendMailMessage($send_to, $subject, $message)
}
```

### Send Mail Media (With Image or Other Media)

[](#send-mail-media-with-image-or-other-media)

You can send email message (with image or other media) using methode name `sendMailMedia`, this method required 6 paramaeters `send_to`,`subject`, `message`, `filename`, `link` and `mime_type`. For list of mime\_type, please check here [https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics\_of\_HTTP/MIME\_types/Common\_types](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types)Example usage :

```
use DeyanArdi\GanadevNotif\GanadevApi;

public function sendingMessageText(){
    $send_to = "yourtargetemail@gmail.com";
    $subject = "Test Subject";
    $filename = "test.jpg"; // Filename must with file extension, support all document (docx, doc, xls, xlsx, video, audio, image, pdf dan zip)
    $link = "https://[yourdomain]/images/test.jpg"; //File must be upload on server, cant support localhost
    $mime_type ="image/jpeg";

    // Using Text Message
    $message = "Text Message"
    GanadevApi::sendMailMedia($send_to, $subject, $message, $filename, $link, $mime_type);
}

public function sendingWithCustomView(){
    $send_to = "yourtargetemail@gmail.com";
    $subject = "Test Subject";
    $filename = "test.jpg"; // Filename must with file extension, support all document (docx, doc, xls, xlsx, video, audio, image, pdf dan zip)
    $link = "https://[yourdomain]/images/test.jpg"; //File must be upload on server, cant support localhost
    $mime_type ="image/jpeg";

    // Using Laravel Views
    $message = view('emails.exampleNotification', compact('subject','send_to'))->render(); // Your custom view with render method
    GanadevApi::sendMailMedia($send_to, $subject, $message, $filename, $link, $mime_type)
}
```

### Send WhatsApp Message Only

[](#send-whatsapp-message-only)

You can send whatsapp message (without image) using methode name `sendWaMessage`, this method required 2 paramaeters `send_to` and `message`. Example usage :

```
use DeyanArdi\GanadevNotif\GanadevApi;

public function yourExampleFunction(){
    $send_to = "6281915003004" // Must include country code
    $message = "Text Message"
    GanadevApi::sendWaMessage($send_to, $message)
}
```

### Send WhatsApp Media (With Image or Other Media)

[](#send-whatsapp-media-with-image-or-other-media)

You can send whatsapp media (with image or other media) using methode name `sendWaMedia`, this method required 4 paramaeters `send_to`, `link`, `type`, and `message`. Example usage :

```
use DeyanArdi\GanadevNotif\GanadevApi;

public function sendingImageVideo(){
    $send_to = "6281915003004" // Must include country code
    $type = "image" // please choose one type [image,video,audio,pdf,xls,xlsx,doc,docx,zip]
    $link = "https://[yourdomain]/images/test.jpg";

    // If you choose type "image" or "video", you can add caption for message
    $caption = "Text Message"
    GanadevApi::sendWaMedia($send_to, $link, $type, $caption)
}

public function sendingAudio(){
    $send_to = "6281915003004" // Must include country code
    $type = "image" // please choose one type [image,video,audio,pdf,xls,xlsx,doc,docx,zip]
    $link = "https://[yourdomain]/images/test.jpg";
    $ppt = true; // If you choose type "audio, you can add ppt configuration, the value is true = voice note | false = audio

    GanadevApi::sendWaMedia($send_to, $link, $type, $ppt)
}

public function sendingOtherMedia(){
    $send_to = "6281915003004" // Must include country code
    $type = "image" // please choose one type [image,video,audio,pdf,xls,xlsx,doc,docx,zip]
    $link = "https://[yourdomain]/images/test.jpg";

    // If you choose "pdf","xls","xlsx","doc","docx","zip", you can follow this
    GanadevApi::sendWaMedia($send_to, $link, $type)
}
```

### Get "Device Account" Information

[](#get-device-account-information)

The term "Device Account" means the configuration that contains your email and whatsapp data.You can get detail of device you use by using method `getDevice`, this method not required parameter. Example usage :

```
use DeyanArdi\GanadevNotif\GanadevApi;

public function yourExampleFunction(){
    GanadevApi::getDevice() // This method return detail of your device using in app, this request using api token and device id to get
}
```

### Response Structure

[](#response-structure)

By default, response of the method is `json response`, you can change it with `array` in `config/ganadevnotif.php`. This is example structure response of the method

```
{
    "status":200,
    "message":""
    "data":""
}
```

Contributing
------------

[](#contributing)

- [GanaDev Com](https://ganadev.com)

Version
-------

[](#version)

- v3.0.1

License
-------

[](#license)

The Laravel Ganadev Notification Service Package is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 98.1% 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 ~12 days

Recently: every ~27 days

Total

16

Last Release

961d ago

Major Versions

v1.0.2 → v2.0.02023-05-03

v2.0.x-dev → v3.0.12023-09-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/26a4f20ba48cc2a0dba1bc1e700699b02ce81c113b5f8003d637a056a7109724?d=identicon)[deyan-ardi](/maintainers/deyan-ardi)

---

Top Contributors

[![deyan-ardi](https://avatars.githubusercontent.com/u/60816261?v=4)](https://github.com/deyan-ardi "deyan-ardi (52 commits)")[![Andndre](https://avatars.githubusercontent.com/u/81848639?v=4)](https://github.com/Andndre "Andndre (1 commits)")

---

Tags

apiganadevganadev-notiflaravellaraveldeyandeyan-ardiganadevganadev-notif

### Embed Badge

![Health badge](/badges/deyan-ardi-ganadev-notif/health.svg)

```
[![Health](https://phpackages.com/badges/deyan-ardi-ganadev-notif/health.svg)](https://phpackages.com/packages/deyan-ardi-ganadev-notif)
```

###  Alternatives

[rakibdevs/openweather-laravel-api

Laravel package to connect https://openweathermap.org/ to get customized weather data for any location on the globe immediately

7648.2k](/packages/rakibdevs-openweather-laravel-api)

PHPackages © 2026

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