PHPackages                             ramatimati/waliby - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ramatimati/waliby

ActivePackage[Utility &amp; Helpers](/categories/utility)

ramatimati/waliby
=================

WA Gateway Management for Laravel

v1.2.0(1y ago)0192MITPHP

Since Oct 25Pushed 1y ago1 watchersCompare

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

READMEChangelog (7)Dependencies (4)Versions (9)Used By (0)

Waliby (WA Gateway Library for Laravel)
=======================================

[](#waliby-wa-gateway-library-for-laravel)

Requirement
-----------

[](#requirement)

- Laravel &gt; 5.8
- Cron Jobs configuration, this package use laravel built in task scheduling to handle queued messages

```
* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1
```

- Laravel Queue configuration, use supervisor to keep your process running

```
php artisan queue:table
php artisan migrate
php artisan queue:work
```

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

[](#installation)

#### Use Composer

[](#use-composer)

```
composer require ramatimati/waliby

# or join the development program

composer require ramatimati/waliby:dev-main
```

#### Runing Migration

[](#runing-migration)

```
php artisan migrate
```

or you can specific run migration of this package

```
php artisan migrate --path=/vendor/ramatimati/waliby/src/database/migrations/2024_08_17_105350_create_waliby_metas_table.php
php artisan migrate --path=/vendor/ramatimati/waliby/src/database/migrations/2024_08_17_105403_create_message_templates_table.php
php artisan migrate --path=/vendor/ramatimati/waliby/src/database/migrations/2024_08_17_105510_create_message_histories_table.php
php artisan migrate --path=/vendor/ramatimati/waliby/src/database/migrations/2024_08_17_105515_create_events_table.php
php artisan migrate --path=/vendor/ramatimati/waliby/src/database/migrations/2024_08_17_105545_create_jobs_table.php
php artisan migrate --path=/vendor/ramatimati/waliby/src/database/migrations/2024_08_17_105555_create_job_logs_table.php
```

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

[](#configuration)

This package required base table or database view that contain phone number and name !
.env `required`

```
QUEUE_CONNECTION=database

# WALIBY PHONE BOOK PARAMS
WALIBY_PHONE_BOOK_CONNECTION=mysql
WALIBY_PHONE_BOOK=your table or database view
WALIBY_PHONE_NUMBER_COLUMN=
WALIBY_NAME_COLUMN=
WALIBY_COLUMN_CONDITION_NAME_1=required
#WALIBY_COLUMN_CONDITION_NAME_2=optional
#WALIBY_COLUMN_CONDITION_NAME_3=optional
#WALIBY_EVENT_PRIORITY_ID=optional // used to prioritize event in the waliby queue

# WALIBY WA GATEWAY
WALIBY_AUTH_TOKEN=
WALIBY_ENDPOINT_SINGLE_MESSAGE=https://example.com/send
WALIBY_WEBHOOK_MESSAGE_ID_KEY=id
WALIBY_WEBHOOK_STATUS_KEY=status
```

If you want to customize view, simply publish blade template from this package. Published file located in `resource/views/vendor/Waliby`

```
php artisan vendor:publish --tag=Waliby
```

Routes
------

[](#routes)

Waliby included some routes

```
https://example.com/waliby/templates
https://example.com/waliby/events
https://example.com/waliby/history
```

Carefull with content in this page, very sensitif information and you should secure it from public!

```
https://example.com/waliby/metas
```

#### Webhook

[](#webhook)

Waliby stores all activity on SendMessage function and included webhook url. Use this url to set webhook for updating message status. This url support `POST` or `GET` method

```
https://example.com/api/waliby/history/stats
```

Usage
-----

[](#usage)

You can simply call Waliby Class to run this library

```
use Ramatimati\Waliby\Waliby;

public function test(){
   Waliby::SendMessage($phoneNumber, $messageTemplateName)
}
```

#### Task Scheduling

[](#task-scheduling)

Waliby come with built in task scheduling every hour at 7, you can configure at *Waliby Event*, make sure you have configure cron job in your apllication

#### Available Method

[](#available-method)

1. `SendMessage($phoneNumber, $messageTemplateName)`This function only support sent single message
    - `string` phoneNumber =&gt; "62812xxxxxxxx"
    - `string` messageTemplateName =&gt; "template1"
2. `RemoveFromQueue($phoneNumber, $eventId)`This function used to remove single pending message in waliby queue
    - `string` phoneNumber =&gt; "62812xxxxxxxx"
    - `string` eventId =&gt; nullable

License
-------

[](#license)

[MIT](license)

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance48

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~30 days

Recently: every ~22 days

Total

7

Last Release

388d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9a3702d27050569b347563f15ffcb79d789df50e9f56a7fbab339bad2f6ac5ca?d=identicon)[ramatimati](/maintainers/ramatimati)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/ramatimati-waliby/health.svg)

```
[![Health](https://phpackages.com/badges/ramatimati-waliby/health.svg)](https://phpackages.com/packages/ramatimati-waliby)
```

###  Alternatives

[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[nativephp/mobile

NativePHP for Mobile

82724.0k43](/packages/nativephp-mobile)[ashallendesign/favicon-fetcher

A Laravel package for fetching website's favicons.

190272.4k3](/packages/ashallendesign-favicon-fetcher)[bensampo/laravel-embed

Painless responsive embeds for videos, slideshows and more.

142146.8k](/packages/bensampo-laravel-embed)[glhd/conveyor-belt

14797.0k](/packages/glhd-conveyor-belt)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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