PHPackages                             haladigitally/basitbot - 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. haladigitally/basitbot

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

haladigitally/basitbot
======================

PHP package to send messages using BasitBot API

v1.0.1(1y ago)10MITPHPPHP &gt;=7.4

Since Jun 30Pushed 1y agoCompare

[ Source](https://github.com/brahimlabdaa/basitbot)[ Packagist](https://packagist.org/packages/haladigitally/basitbot)[ RSS](/packages/haladigitally-basitbot/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (3)Used By (0)

BasitBot PHP Package
====================

[](#basitbot-php-package)

A simple PHP package to send messages using the [BasitBot API](https://basitbot.com).

---

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

[](#installation)

You can install the package via Composer:

```
composer require haladigitally/basitbot

Configuration (Laravel)
Publish the configuration file:

bash

php artisan vendor:publish --provider="Haladigitally\Basitbot\BasitbotServiceProvider" --tag=config
Add your BasitBot API credentials to your .env file:

.env

BASITBOT_ENDPOINT=https://basitbot.com/api/
BASITBOT_APP_KEY=your-app-key-here
BASITBOT_AUTH_KEY=your-auth-key-here

Basic example:

php
use Haladigitally\Basitbot\BasitBot;

$basitBot = new BasitBot();

// Send a simple text message
$response = $basitBot->sendText('RECEIVER_NUMBER', 'Hello from BasitBot!');

print_r($response);

| Method         | Description                     | Parameters                                                                  | Returns |
| -------------- | ------------------------------- | --------------------------------------------------------------------------- | ------- |
| `sendText`     | Send a text message             | `string $to`, `string $message`, `bool $sandbox = false`                    | `array` |
| `sendFile`     | Send a text message with a file | `string $to`, `string $message`, `string $fileUrl`, `bool $sandbox = false` | `array` |
| `sendTemplate` | Send a template message         | `string $to`, `string $templateId`, `array $variables`                      | `array` |
| `sendOtp`      | Send an OTP message             | `string $to`, `string $message`, `int $expireIn = 300`                      | `array` |

Examples

Send a Text Message

Edit
$response = $basitBot->sendText('966501234567', 'Hello, this is a test message!');
print_r($response);

Send a Text Message with File
php

$response = $basitBot->sendFile('966501234567', 'Please check the attached file.', 'https://example.com/file.pdf');
print_r($response);

Send a Template Message
php

$response = $basitBot->sendTemplate('966501234567', 'TEMPLATE_ID', [
    '{variableKey1}' => 'John',
    '{variableKey2}' => 'Doe',
]);
print_r($response);

Send an OTP Message
php

$response = $basitBot->sendOtp('966501234567', 'Your OTP is 123456', 300);
print_r($response);

License
The MIT License (MIT).
See LICENSE for details.

Contribution
Feel free to open issues or submit pull requests.

Contact
For questions or support, contact [basitbot.contact@gmail.com].
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance50

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

368d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c4e808284358ccafca55436aad2da3bb7c2bab3c20687d36fdbc98044b255c1d?d=identicon)[brahimlabdaa](/maintainers/brahimlabdaa)

---

Top Contributors

[![brahimlabdaa](https://avatars.githubusercontent.com/u/50141870?v=4)](https://github.com/brahimlabdaa "brahimlabdaa (2 commits)")

### Embed Badge

![Health badge](/badges/haladigitally-basitbot/health.svg)

```
[![Health](https://phpackages.com/badges/haladigitally-basitbot/health.svg)](https://phpackages.com/packages/haladigitally-basitbot)
```

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M82](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k114](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M91](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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