PHPackages                             getheybot/heybot-client-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. getheybot/heybot-client-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

getheybot/heybot-client-php
===========================

Heybot PHP SDK Client

1.0.18(1y ago)0696proprietaryPHPPHP ^8.2 || ^8.3

Since May 12Pushed 1y agoCompare

[ Source](https://github.com/getheybot/heybot-client-php)[ Packagist](https://packagist.org/packages/getheybot/heybot-client-php)[ Docs](https://github.com/getheybot/heybot-client-php)[ RSS](/packages/getheybot-heybot-client-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (25)Used By (0)

Heybot - PHP SDK Client
=======================

[](#heybot---php-sdk-client)

Install

```
composer require getheybot/heybot-client-php

```

WhatsApp Messaging
------------------

[](#whatsapp-messaging)

Send messages to one phone number

```
# Basic usage

$whatsapp = new \Heybot\Client\Http\Whatsapp(apiKey: '');

$whatsapp->phoneNumber("521782003377");

$whatsapp->request([
    \Heybot\Client\Message\Text::create(["text" => "¡Hi there!"]),
    \Heybot\Client\Message\Image::create(["url" => "https://heybot.me/image.png", "text" => "¡Hi there!"]),
]);
```

Interactive list

```
$whatsapp = new \Heybot\Client\Http\Whatsapp(apiKey: '');

$optionA = \Heybot\Client\Message\InteractiveListSectionOption::create([
    "id" => "optionA",
    "title" => "title a",
    "description" => "description a",
]);

$optionB = \Heybot\Client\Message\InteractiveListSectionOption::create([
    "id" => 123,
    "title" => "title b",
    "description" => "description b",
]);

$optionC = \Heybot\Client\Message\InteractiveListSectionOption::create([
    "id" => "optionA123",
    "title" => "title c",
    "description" => "description c",
]);

$sections = [
    \Heybot\Client\Message\InteractiveListSection::create([
        "title" => "First section",
        "description" => "some a",
        "options" => [
            $optionA,
        ]
    ]),
    \Heybot\Client\Message\InteractiveListSection::create([
        "title" => "Second section",
        "description" => "some b",
        "options" => [
            $optionB, $optionC,
        ]
    ])
];

\Heybot\Client\Message\InteractiveList::create([
    "id" => 1111,
    "title" => "demo",
    "text" => "some description",
    "buttonTitle" => "Menú",
    "sections" => $sections
]);
```

Interactive options

```
$whatsapp = \Heybot\Client\Message\InteractiveText::create([
    "id" => "",
    "header" => "",
    "text" => "",
    "footer" => "",
    "options" => [
        \Heybot\Client\Message\InteractiveButton::create([
            "id" => "foo",
            "text" => "bar"
        ]),
        \Heybot\Client\Message\InteractiveButton::create([
            "id" => "foo2",
            "text" => "bar2"
        ]),
        \Heybot\Client\Message\InteractiveButton::create([
            "id" => "foo3",
            "text" => "bar3"
        ]),
    ],
]);
```

Contact

```
$whatsapp = \Heybot\Client\Message\Contact::create([
    "name" => \Heybot\Client\Message\ContactName::create([
        "firstName" => "Dev",
        "lastName" => "Support",
        "formattedName" => "Dev Support",
    ]),
    "org" => [
        \Heybot\Client\Message\ContactOrg::create([
            "company" => "Meta Inc.",
        ])
    ],
    "emails" => [
        \Heybot\Client\Message\ContactEmail::create([
            "email" => "example@gmail.com",
            "type" => "WORK",
        ])
    ],
    "phones" => [
        \Heybot\Client\Message\ContactPhone::create([
            "phone" => "7738305433",
            "type" => "Mobile",
        ])
    ],
    "addresses" => [
        \Heybot\Client\Message\ContactAddress::create([
            "city" => "Menlo Park",
            "country" => "United States",
            "countryCode" => "us",
            "state" => "CA",
            "street" => "1 Hacker Way",
            "type" => "HOME",
            "zip" => "94025",
        ]),
        \Heybot\Client\Message\ContactAddress::create([
            "city" => "Menlo Park",
            "country" => "United States",
            "countryCode" => "us",
            "state" => "CA",
            "street" => "200 Jefferson Dr",
            "type" => "WORK",
            "zip" => "94025",
        ])
    ],
    "urls" => [
        \Heybot\Client\Message\ContactAddress::create([
            "url" => "https://www.facebook.com",
            "type" => "WORK",
        ])
    ],
]);
```

Send template message
---------------------

[](#send-template-message)

### usually for massive sends

[](#usually-for-massive-sends)

```
$whatsapp = new \Heybot\Client\Http\Whatsapp(apiKey: '')

$whatsapp->template(templateId: '{template-id}');

$messages = [
    \Heybot\Client\Message\Template::create([
        'phoneNumber' => '5698544585',
        'params' => ['foo', 'bar'], // The template params by index position, optional.
        'buttons' => [['index' => 0, 'id' => 'postback_text']] // The `postback_text` by index position, optional.
    ])
    \Heybot\Client\Message\Template::create([
        'phoneNumber' => '5523456782',
        'params' => [],
        'buttons' => [],
    ]),
];

$whatsapp->request($messages);
```

Send Call To Action message
---------------------------

[](#send-call-to-action-message)

```
$whatsapp = new \Heybot\Client\Http\Whatsapp(apiKey: '');

$whatsapp = \Heybot\Client\Message\CallToAction::create([
    'buttonTex' => 'Click Me',
    'buttonUrl' => 'https://heybot.cloud',
    'text' => '¡Welcome to Heybot!',
    'footerText' => 'Thank you',
]);

$whatsapp = \Heybot\Client\Message\CallToAction::create([
    'headerImage' => 'https;//heybot.cloud/logo.png',
    'buttonTex' => 'Click Me',
    'buttonUrl' => 'https://heybot.cloud',
    'text' => '¡Welcome to Heybot!',
    'footerText' => 'Thank you',
]);

$whatsapp = \Heybot\Client\Message\CallToAction::create([
    'headerVideo' => 'https;//heybot.cloud/logo.mp4',
    'buttonTex' => 'Click Me',
    'buttonUrl' => 'https://heybot.cloud',
    'text' => '¡Welcome to Heybot!',
    'footerText' => 'Thank you',
]);
```

Request location
================

[](#request-location)

```
$whatsapp = new \Heybot\Client\Http\Whatsapp(apiKey: '');

$whatsapp = \Heybot\Client\Message\RequestLocation::create([
    'text' => 'Share your location',
]);
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity65

Established project with proven stability

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

Total

23

Last Release

535d ago

Major Versions

0.0.8 → 1.0.02024-05-21

PHP version history (2 changes)0.0.1PHP ^8.2

1.0.16PHP ^8.2 || ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/3ea2e73f25ea629bed43a32750d3938c4fa477bc80671861fe07eb5647674da6?d=identicon)[dsalcedo](/maintainers/dsalcedo)

---

Top Contributors

[![batnieluyo](https://avatars.githubusercontent.com/u/78667266?v=4)](https://github.com/batnieluyo "batnieluyo (24 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/getheybot-heybot-client-php/health.svg)

```
[![Health](https://phpackages.com/badges/getheybot-heybot-client-php/health.svg)](https://phpackages.com/packages/getheybot-heybot-client-php)
```

###  Alternatives

[yajra/laravel-datatables-oracle

jQuery DataTables API for Laravel

4.9k33.8M339](/packages/yajra-laravel-datatables-oracle)[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[watson/active

Laravel helper for recognising the current route, controller and action

3253.6M14](/packages/watson-active)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[statikbe/laravel-cookie-consent

Cookie consent modal for EU

213396.7k](/packages/statikbe-laravel-cookie-consent)[laragraph/utils

Utilities for using GraphQL with Laravel

2113.8M7](/packages/laragraph-utils)

PHPackages © 2026

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