Download the PHP package wawabot/laravel without Composer

On this page you can find all versions of the php package wawabot/laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel

WaWaBot Laravel

Latest Version on Packagist Total Downloads License

Package Laravel untuk mengirim pesan WhatsApp melalui WaWaBot API. Cukup install package ini, set api_key dan account_id, lalu panggil method untuk kirim teks, gambar, atau kelola sesi WhatsApp.

Persyaratan

Instalasi

Masuk ke folder project Laravel Anda, lalu jalankan:

Tidak perlu menambah repositories di composer.json — package sudah tersedia di Packagist.

Laravel akan otomatis mendeteksi WaWaBotServiceProvider lewat auto-discovery.

Publish config (opsional)

File config akan tersedia di config/wawabot.php.

Set environment variables

Tambahkan ke file .env:

Variabel Keterangan
WAWABOT_BASE_URL Base URL API (default: https://wa-api.wawabot.id)
WAWABOT_API_KEY API key dari penyedia layanan
WAWABOT_ACCOUNT_ID ID akun WhatsApp Anda (contoh: user-1)

Instalasi alternatif (development)

Install dari folder lokal atau GitHub (tanpa Packagist) **Folder lokal** — untuk develop package sebelum publish: **Langsung dari GitHub** — jika perlu versi `dev-main` sebelum rilis di Packagist:

Alur penggunaan (pertama kali)

Sebelum bisa kirim pesan, akun WhatsApp harus ditautkan lewat QR code:

  1. Start sesistart()
  2. Ambil QRqr(), tampilkan ke user (browser/API)
  3. Scan di HP — Buka WhatsApp → Pengaturan (ikon roda gigi) → Perangkat tertautTautkan perangkat → arahkan kamera ke QR
  4. Cek status logininfoMe() atau session()
  5. Kirim pesansend() atau sendMedia()

Penggunaan

Via Facade (menggunakan config .env)

Via dependency injection

Instansiasi manual (multi akun / tanpa .env)

Berguna jika satu aplikasi mengelola beberapa akun WhatsApp:


Contoh lengkap: dari pairing sampai kirim pesan


Daftar method

Method HTTP Endpoint Deskripsi
start() POST /accounts/{id}/start Memulai sesi akun
session() GET /accounts/{id}/session Status sesi akun
qr($isHtml) GET /accounts/{id}/qr Ambil QR code untuk scan
infoMe() GET /info-me Cek nomor & status login
send($to, $text) POST /accounts/{id}/send Kirim pesan teks
sendMedia($to, $path, $caption) POST /accounts/{id}/send-media Kirim gambar/file
lookup($to) GET /accounts/{id}/lookup Cek nomor WhatsApp
logout() POST /accounts/{id}/logout Logout / putus sesi

Semua request mengirim header:

Parameter send()

Parameter sendMedia()

Format file mengikuti dukungan API (jpeg, png, pdf, dll.).

Parameter qr()


Penanganan error

Jika API mengembalikan status error (4xx/5xx), package akan melempar WaWaBot\Exceptions\WaWaBotException:


Development & testing

Clone repository:


Lisensi

MIT


All versions of laravel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/contracts Version ^10.0|^11.0|^12.0
illuminate/http Version ^10.0|^11.0|^12.0
illuminate/support Version ^10.0|^11.0|^12.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package wawabot/laravel contains the following files

Loading the files please wait ...