Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
L

laravel-whatsapp-server

> 编程语言
Open source

Simple RESTful WhatsApp API with Laravel 8

530 stars0 likes2 views
WebsiteGitHub

About

Simple RESTful WhatsApp API with Laravel 8

Tutorial Update Baileys API

  1. Tutorial installation here
  2. Add bulk messages here

Baileys Restful API with Laravel

An implementation of @adiwajshing/Baileys as a simple RESTful API service with multiple device support.

Credits

  1. Framework : Laravel 8
  2. Admin Panel : Crudbooster
  3. Backend Server : @ookamiiixd/baileys-api

Requirement

  1. php 7.4
  2. MySQL / MariaDB
  3. NodeJs 14 or higher

Frontend Installation

  1. First clone or download this repository:
bash
git clone https://github.com/saifulcoder/laravel-whatsapp-server.git
  1. Enter directory project cd laravel-whatsapp-server
  2. Execute composer install to install the dependencies.
  3. Setting the database configuration, rename .env.example to .env and open file at project root directory
bash
DB_DATABASE=**your_db_name**
DB_USERNAME=**your_db_user**
DB_PASSWORD=**password**
  1. Setting the URL backend server configuration, open .env file at project root directory
bash
URL_WA_SERVER=http://localhost:3000
  1. Import database db.sql

  2. Run laravel

bash
php artisan serve --port=80
  1. Dashboard Admin
bash
/admin/login

default email : [email protected]

default password : 123456

Backend Installation

Simple RESTful WhatsApp API by @ookamiiixd/baileys-api .

  1. Enter to the backend project directory cd backend.
  2. Execute npm i to install the dependencies.
  3. Build the project using the build script npm run build

You can skip this part if you're using the prebuilt one from the release page

Setup

  1. Copy the .env.example file and rename it into .env, then update your connection url in the DATABASE_URL field
  2. Update your provider in the prisma/schema.prisma file if you're using database other than MySQL
  3. Run your migration
bash
npx prisma migrate (dev|deploy)

or push the schema

bash
npx prisma db push

Don't forget to always re-run those whenever there's a change on the prisma/schema.prisma file

.env Configurations

env
# Listening Host
HOST="localhost"

# Listening Port
PORT="3000"

# Database Connection URL
DATABASE_URL="mysql://root:12345@localhost:3306/baileys_api"

# Reconnect Interval (in Milliseconds)
RECONNECT_INTERVAL="5000"

# Maximum Reconnect Attempts
MAX_RECONNECT_RETRIES="5"

# Maximum SSE QR Generation Attempts
SSE_MAX_QR_GENERATION="10"

# Pino Logger Level
LOG_LEVEL="warn"

Usage

  1. Make sure you have completed the Installation and Setup step
  2. You can then start the app using the start script
bash
npm run start
  1. Now the endpoint should be available according to your environment variables configuration. Default is at http://localhost:3000

API Docs

The API documentation is available online here. You can also import the Postman Collection File (postman_collection.json) into your Postman App alternatively

Notes

  • There's no authentication, you may want to implement your own. I don't want to force anyone into using a specific authentication method, choose whatever you love

Notice

This project is intended for learning purpose only, don't use it for spamming or any activities that's prohibited by WhatsApp

Functions laravel-wa-server

Multiple Device ✔
Send text ✔
Admin Panel ✔
Multiple Users ✔
User Privilege ✔
API RESTFul ✔
Send image, video, audio and docs ✔
Send stickers ✔
Send stickers GIF ✔
Send Buttons coming soon
Send Bulk Message coming soon
Send Message with schedule coming soon
Receive message coming soon
Get Chat List coming soon
Get Chat Conversation coming soon
Webhook coming soon

For Improvement and project

contact us [email protected]

Contributing

This project helps you and you want to help keep it going? Buy me a coffee:

or via

https://saweria.co/saifulcoder

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

PHP

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言