Download the PHP package andriwil0176/laravel-watzap without Composer
On this page you can find all versions of the php package andriwil0176/laravel-watzap. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download andriwil0176/laravel-watzap
More information about andriwil0176/laravel-watzap
Files in andriwil0176/laravel-watzap
Package laravel-watzap
Short Description Laravel package wrapper for Watzap API (official endpoints)
License MIT
Informations about the package laravel-watzap
Laravel Watzap
Laravel package untuk integrasi Watzap API.
Mendukung multi-number, queue dengan random delay, round-robin sender, dan webhook handler.
✨ Features
- ✅ Check API status
- ✅ Validate WhatsApp number
- ✅ Grab WhatsApp groups & participants
- ✅ Send Text, Image (URL), File (URL)
- ✅ Send to Group (Text, Image, File)
- ✅ Webhook management (set, get, unset)
- ✅ Queue support (default ON) dengan random delay antar pesan (30–120s)
- ✅ Multi-number round-robin (auto pilih
number_keydari array config)
📦 Install
Publish config:
⚙️ Configuration
Tambahkan ke .env:
🚀 Usage
Via Facade
Via Dependency Injection
Example Artisan Command
🧪 Testing
Run PHPUnit:
🔗 Webhook
Route default:
Controller akan mengembalikan payload apa adanya.
Kamu bisa extend untuk handle event incoming_chat, dll.
📱 Phone Number Utilities
Selain integrasi ke API Watzap, package ini juga menyediakan helper untuk validasi dan normalisasi nomor WhatsApp ke format internasional (E.164).
🔍 Cek format nomor $client = app(\Andriwil0176\Watzap\WatzapClient::class);
$client->isValidNumberFormat('6281234567890'); // true (sudah format E.164) $client->isValidNumberFormat('081234567890'); // false (masih format lokal) $client->isValidNumberFormat('12025550123'); // true (nomor US)
🔄 Normalisasi nomor lokal $client = app(\Andriwil0176\Watzap\WatzapClient::class);
// Indonesia (default kode negara 62) $client->normalizeNumber('08123456789'); // Hasil: "628123456789"
// UK (kode negara 44) $client->normalizeNumber('02071838750', '44'); // Hasil: "442071838750"
⚠️ WhatsApp hanya menerima format internasional (E.164). Tidak ada nomor WhatsApp valid yang dimulai dengan 0.
🏗 Example App
Repo ini juga menyertakan folder example/ yang berisi:
- Controller demo (
WatzapDemoController) - Artisan Command demo (
SendWatzapCommand)
🛠 Development Notes
- Namespace default:
Andriwil0176\Watzap→ ubah sesuai username/org kamu. - Queue default ON dengan delay random (30–120s). Bisa dimatikan via
WATZAP_USE_QUEUE=false. - Round-robin akan otomatis memilih
number_keydari array config.
📜 License
MIT License
Copyright (c) 2025 Andri Willyarso
Permission is hereby granted, free of charge, to any person obtaining a copy...
All versions of laravel-watzap with dependencies
illuminate/support Version ^10.0|^11.0|^12.0
guzzlehttp/guzzle Version ^7.0