PHPackages                             codebuglab/letsbot-php - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. codebuglab/letsbot-php

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

codebuglab/letsbot-php
======================

Official PHP client for the LetsBot WhatsApp Business API. Seamlessly integrate WhatsApp messaging into your PHP &amp; Laravel applications to automate customer communication, build chatbots, send notifications, and manage interactions.

2.0.1(1y ago)0666MITPHPPHP ^7.4|^8.0CI passing

Since Aug 6Pushed 1y agoCompare

[ Source](https://github.com/codebuglab/letsbot-php)[ Packagist](https://packagist.org/packages/codebuglab/letsbot-php)[ Docs](https://letsbot.net)[ Fund](https://letsbot.net)[ RSS](/packages/codebuglab-letsbot-php/feed)WikiDiscussions main Synced yesterday

READMEChangelog (2)Dependencies (5)Versions (4)Used By (0)

LetsBot PHP Package
===================

[](#letsbot-php-package)

[![Tests](https://github.com/codebuglab/letsbot-php/workflows/Tests/badge.svg)](https://github.com/codebuglab/letsbot-php/actions)[![codecov](https://camo.githubusercontent.com/73e16eeb104674da668bbe60fa3ae7274e256a0e390e5c55a21b2a834bb43015/68747470733a2f2f636f6465636f762e696f2f67682f636f64656275676c61622f6c657473626f742d7068702f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/codebuglab/letsbot-php)[![Total Downloads](https://camo.githubusercontent.com/02479c9a5a18d817ca3dd4d3af0b8bb79ffd64ea31d8f8bbcbb3878cfef9ea42/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f64656275676c61622f6c657473626f742d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/codebuglab/letsbot-php)[![Latest Version on Packagist](https://camo.githubusercontent.com/ba14d8bce95f4e027b40fd0c4a67aa67260a76783155b839b1673ff4330fe9a8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f64656275676c61622f6c657473626f742d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/codebuglab/letsbot-php)[![License](https://camo.githubusercontent.com/89462ad317742113872c0acb7d935968cb23d46a4edf210bcc94c20799cea65a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f636f64656275676c61622f6c657473626f742d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/codebuglab/letsbot-php)

A comprehensive PHP package for integrating with the LetsBot WhatsApp API. This package provides a powerful, easy-to-use interface to leverage WhatsApp's extensive messaging capabilities in your PHP applications.

> LetsBot transforms business messaging by providing access to WhatsApp's platform, used by 2 billion people worldwide with 60 billion daily messages. Our RESTful API enables you to connect your WhatsApp number to various third-party systems, programming languages, CMS, CRMs &amp; CLI tools with minimal hassle and no complex dependencies.

Table of Contents
-----------------

[](#table-of-contents)

- [Requirements](#requirements)
- [Installation](#installation)
- [Configuration](#configuration)
- [Basic Usage](#basic-usage)
- [API Features](#api-features)
- [Documentation](#documentation)
- [Testing](#testing)
- [Compatibility](#compatibility)
- [License](#license)
- [Support](#support)

Requirements
------------

[](#requirements)

- PHP 7.4 or higher
- Guzzle HTTP 7.0 or higher
- A LetsBot account with API credentials

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

[](#installation)

### Laravel

[](#laravel)

If you're using Laravel, install the package via Composer:

```
composer require codebuglab/letsbot-php
```

After installation, publish the configuration file:

```
php artisan vendor:publish --tag=letsbot-config
```

You can find the config file in `config/letsbot.php`.

### PHP Native

[](#php-native)

For PHP native or OOP applications:

```
require 'vendor/autoload.php';

$lb = (new \LetsBot\Api\LetsBot);
$lb::$api_key = 'your_api_key'; // Set API key
$lb::$ssl_verify = false; // Set SSL verification (true/false, default is true)

$result = $lb->ChatList()->send();
echo json_encode($result);
```

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

[](#configuration)

The configuration file contains essential settings for the API connection:

```
return [
  'api_key' => env('LETS_BOT_API_KEY', 'test'),
  'ssl_verify' => true,
];
```

- `api_key`: Your API key generated from the LetsBot dashboard
- `ssl_verify`: This option can disable SSL certificate verification if you're in development. Set to `false` to skip SSL certificate errors.

Basic Usage
-----------

[](#basic-usage)

The package provides an alias `LetsBot\Api\LetsBot::class` for easy use:

```
// In Laravel
use LetsBot;

return LetsBot::sessionStatus()->send();

// OR use the helper function
return lb()->sessionStatus()->send();
```

All methods follow a common pattern:

1. Fluent interface:

    ```
    LetsBot::method()->param1(value)->param2(value)->send();
    ```
2. Array parameter:

    ```
    LetsBot::method()->send([
      'param1' => value,
      'param2' => value
    ]);
    ```

### Example: Sending a Text Message

[](#example-sending-a-text-message)

```
// Fluent interface
LetsBot::message()
    ->phone('1234567890')
    ->body('Hello from LetsBot!')
    ->send();
```

API Features
------------

[](#api-features)

The LetsBot PHP package provides comprehensive access to all WhatsApp Business API features:

- **Message Operations** - Send texts, react to messages, reply to specific messages, mentions, and more
- **Media Messages** - Share images, videos, documents, audio clips, and other media content
- **Interactive Messages** - Create button messages, list messages, and other interactive content
- **Chat Operations** - Manage chats, set status, archive conversations, and more
- **Group Operations** - Create and manage groups, add/remove participants, and group settings
- **User Operations** - Check presence, manage profiles, block/unblock users
- **Product Operations** - Manage product catalogs and listings
- **Instance Operations** - Manage your WhatsApp instance settings and status
- **Authentication** - Handle QR codes and session management

Documentation
-------------

[](#documentation)

For detailed documentation on all available features and methods, please refer to the following guides:

- [Message Operations](src/Docs/Message.md) - Text messages, stickers, reactions, replies, and message management
- [Media Messages](src/Docs/Media.md) - Images, videos, files, audio, and other media types
- [Button Messages](src/Docs/Buttons.md) - Interactive button messages with various configurations
- [List Messages](src/Docs/ListMessage.md) - Structured lists with sections and items
- [Chat Operations](src/Docs/Chat.md) - Managing conversations and chat settings
- [Group Operations](src/Docs/Groups.md) - Creating and managing groups
- [User Operations](src/Docs/User.md) - User management and profiles
- [Product Operations](src/Docs/Products.md) - Product catalogs and management
- [Instance Operations](src/Docs/Instance.md) - Instance configuration and status
- [QR Code and Sessions](src/Docs/QrAndSesstions.md) - Authentication and session management

Testing
-------

[](#testing)

The package includes comprehensive test coverage. To run tests:

```
composer test
```

To generate code coverage reports:

```
composer test-coverage
```

This will generate an HTML code coverage report in the `coverage` directory.

Compatibility
-------------

[](#compatibility)

This package is tested with PHP 7.4, 8.0, 8.1, and 8.2 to ensure maximum compatibility across different environments and projects.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Support
-------

[](#support)

Need assistance? Contact the LetsBot support team:

- Email:
- Phone/WhatsApp: +966559408401
- Documentation:

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance47

Moderate activity, may be stable

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

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 ~335 days

Total

3

Last Release

392d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1b739843a13277460d1b33db36cacdd3fe8c5c5942f458ed26284aba28c16849?d=identicon)[CodeBugLab](/maintainers/CodeBugLab)

---

Top Contributors

[![CommentakMedia](https://avatars.githubusercontent.com/u/70331129?v=4)](https://github.com/CommentakMedia "CommentakMedia (9 commits)")

---

Tags

whatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-chatwhatsappbotphpapiclientlaravelnotificationmessagingwhatsappcommunicationchatbotletsbot

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/codebuglab-letsbot-php/health.svg)

```
[![Health](https://phpackages.com/badges/codebuglab-letsbot-php/health.svg)](https://phpackages.com/packages/codebuglab-letsbot-php)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k9.5M89](/packages/openai-php-laravel)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

783.8k](/packages/scriptdevelop-whatsapp-manager)[mozex/anthropic-laravel

Laravel integration for the Anthropic API: facade, config publishing, install command, testing fakes, messages, streaming, tool use, thinking, and batches.

74331.3k1](/packages/mozex-anthropic-laravel)[gr8shivam/laravel-sms-api

A modern, flexible Laravel package for integrating any SMS gateway with REST API support

10240.6k](/packages/gr8shivam-laravel-sms-api)[hafael/azure-mailer-driver

Supercharge your Laravel or Symfony app with Microsoft Azure Communication Services (ACS)! Effortlessly add email, chat, voice, video, and telephony-over-IP for next-level communication. 🚀

15130.8k](/packages/hafael-azure-mailer-driver)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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