PHPackages                             maree/whatsapp-ibot - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. maree/whatsapp-ibot

ActiveLibrary[HTTP &amp; Networking](/categories/http)

maree/whatsapp-ibot
===================

package to send whatsapp messages with ibot api

06PHP

Since May 10Pushed 4y ago1 watchersCompare

[ Source](https://github.com/mohamedmaree/WhatsappIbot)[ Packagist](https://packagist.org/packages/maree/whatsapp-ibot)[ RSS](/packages/maree-whatsapp-ibot/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

WhatsappIbot
============

[](#whatsappibot)

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

[](#installation)

You can install the package via [Composer](https://getcomposer.org).

```
composer require maree/whatsapp-ibot
```

- Publish your Whatsapp config file with

```
php artisan vendor:publish --provider="Maree\WhatsappIbot\WhatsappIbotServiceProvider" --tag="whatsapp"
```

- then change your WhatsappIbot config from config/whatsapp.php file

```
    "access_token"   => "" ,
    "instance_id"    => "" ,
```

Usage
-----

[](#usage)

- Create a new Instance ID

```
use Maree\WhatsappIbot\WhatsappIbot;
$response = WhatsappIbot::CreateInstance();
```

- Display QR code to login to Whatsapp web. You can get the results returned via Webhook

```
use Maree\WhatsappIbot\WhatsappIbot;
$response = WhatsappIbot::GetQRCode();
```

- Get all return values from Whatsapp. Like connection status, Incoming message, Outgoing message, Disconnected, Change Battery,...
    - Params:
    - webhook\_url

```
use Maree\WhatsappIbot\WhatsappIbot;
$response = WhatsappIbot::RecevingWebhook('https://webhook.site/1b25464d6833784f96eef4xxxxxxxxxx');
```

- Logout Whatsapp web and do a fresh scan

```
use Maree\WhatsappIbot\WhatsappIbot;
$response = WhatsappIbot::RebootInstance();
```

- This will logout Whatsapp web, Change Instance ID, Delete all old instance data

```
use Maree\WhatsappIbot\WhatsappIbot;
$response = WhatsappIbot::ResetInstance();
```

- Re-initiate connection from app to Whatsapp web when lost connection

```
use Maree\WhatsappIbot\WhatsappIbot;
$response = WhatsappIbot::Reconnect();
```

- Send a text message to a phone number through the app
    - Params:
    - phone\_number= 2010027\*\*\*\*\*
    - message = test message

```
use Maree\WhatsappIbot\WhatsappIbot;
$response = WhatsappIbot::SendTextMessage($phone_number='2010027*****','maree test');
```

- Send a media or file with message to a phone number through the app
    - Params:
    - number = 2010027\*\*\*\*\*
    - message = maree test
    - media\_url =
    - filename (Just use for send document) = bmw.png

```
use Maree\WhatsappIbot\WhatsappIbot;
$response = WhatsappIbot::SendMediaMessage($number = '2010027*****',$message = 'media',$media_url = 'https://imgd.aeplcdn.com/0x0/n/cw/ec/41406/bmw-8-series-right-front-three-quarter8.jpeg',$filename = 'bmw');
```

- Send a text message to a group through the app
    - Params:
    - group\_id = 2010027\*\*\*\*\*@c.us
    - message = group message

```
use Maree\WhatsappIbot\WhatsappIbot;
$response = WhatsappIbot::SendTextMessageGroup($group_id = '2010027*****@c.us',$message = 'group message');
```

- Send a media or file with message to a group through the app
    - Params:
    - group\_id = 2010027\*\*\*\*\*@c.us
    - message = test message
    - media\_url =
    - filename (Just use for send document) = bmw.png

```
use Maree\WhatsappIbot\WhatsappIbot;
$response = WhatsappIbot::SendMediaMessageGroup($group_id = '2010027*****@c.us',$message = 'group message',$media_url = 'https://www.mercedes-benz-mena.com/ar/passengercars/mercedes-benz-cars/models/gle/coupe-c167/explore/highlights/_jcr_content/contentgallerycontainer/par/contentgallery/par/contentgallerytile_58586423/image.MQ6.8.20191119092227.jpeg',$filename = 'media group');
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0e88e6da55b1e4b359544c3e94fab80c6f73b3ce7ac82afd1d872a41aeb349fa?d=identicon)[mohamedmaree](/maintainers/mohamedmaree)

---

Top Contributors

[![mohamedmaree](https://avatars.githubusercontent.com/u/12659069?v=4)](https://github.com/mohamedmaree "mohamedmaree (5 commits)")

### Embed Badge

![Health badge](/badges/maree-whatsapp-ibot/health.svg)

```
[![Health](https://phpackages.com/badges/maree-whatsapp-ibot/health.svg)](https://phpackages.com/packages/maree-whatsapp-ibot)
```

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

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