PHPackages                             maatify/whysms - 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. [API Development](/categories/api)
4. /
5. maatify/whysms

ActiveLibrary[API Development](/categories/api)

maatify/whysms
==============

PHP library for WhySms API handler, known by our team

5.0.1(9mo ago)081proprietaryPHP

Since Oct 24Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/Maatify/whysms)[ Packagist](https://packagist.org/packages/maatify/whysms)[ Docs](https://github.com/Maatify/)[ RSS](/packages/maatify-whysms/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

[![Current version](https://camo.githubusercontent.com/007ebeed705fd0664c7ef65017a0f8fc8b60ea2d9ac1f66c457e2c41b74f580b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6161746966792f776879736d73)](https://packagist.org/packages/maatify/whysms)[![Packagist PHP Version Support](https://camo.githubusercontent.com/2652a68c1105243b1bf8bd987f3387ba9d57378847b9e2b8fb25480683021c24/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6d6161746966792f776879736d73)](https://packagist.org/packages/maatify/whysms)[![Monthly Downloads](https://camo.githubusercontent.com/12a06aeab6a6a628bb8d38a63602dffdebada93ee18e659b041fe870b582b401/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6d6161746966792f776879736d73)](https://packagist.org/packages/maatify/whysms/stats)[![Total Downloads](https://camo.githubusercontent.com/44cafc16f8c7f596c14be7691f35c5d713ece52ed20aab0d34367009991e5dc6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6161746966792f776879736d73)](https://packagist.org/packages/maatify/whysms/stats)[![Stars](https://camo.githubusercontent.com/c80e162451bd3299855fb8c0bb6d283cced619a7051a58f52c79694e689e1d16/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f6d6161746966792f776879736d73)](https://github.com/maatify/whysms/stargazers)

Installation
============

[](#installation)

```
composer require maatify/whysms
```

Usage
=====

[](#usage)

### Instance

[](#instance)

```
use Maatify\WhySms\WhySms;

require_once __DIR__ . '/vendor/autoload.php';

$why_sms = new WhySms(__API_TOKEN__, __SENDER_ID__); // WhySms instance
```

### Check Balance

[](#check-balance)

```
$result = $why_sms->->CheckBalance();

print_r($result);
```

#### Response Example :

[](#response-example-)

##### Success Example

[](#success-example)

> ```
>   Array
>   (
>       [success] => 1
>       [remaining_unit] => 7
>       [expired_on] => 1st Jun 33, 7:16 PM
>   )
>
> ```

##### Error Example

[](#error-example)

> ```
>   Array
>   (
>       [success] =>
>       [error] => (err-Maatify\WhySms\Request::Curl) cURL Error (22): The requested URL returned error: 401 Unauthorized
>   )
>
> ```

### Send SMS Message

[](#send-sms-message)

```
$result = $why_sms->SendSms(__PHONE_NUMBER__, __SMS_MESSAGE__);

print_r($result);
```

#### Response Example :

[](#response-example--1)

##### Success Example

[](#success-example-1)

> ```
>   Array
>   (
>       [success] => 1
>       [details] => Your message was successfully delivered
>       [uid] => 64c7392312ecb
>       [to] => __PHONE_NUMBER__
>       [from] => __SMS_MESSAGE__
>       [message] => Welcome to first test from why sms
>       [status] => Delivered
>       [cost] => 1
>   )
>
> ```

##### Error Example

[](#error-example-1)

> ```
>   Array
>   (
>       [success] =>
>       [error] => (err-Maatify\WhySms\Request::Curl) cURL Error (22): The requested URL returned error: 404 Not Found
>   )
>
> ```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance57

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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 ~655 days

Total

2

Last Release

281d ago

Major Versions

1.1.2 → 5.0.12025-08-10

### Community

Maintainers

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

---

Top Contributors

[![megyptm](https://avatars.githubusercontent.com/u/33574895?v=4)](https://github.com/megyptm "megyptm (12 commits)")[![Maatify](https://avatars.githubusercontent.com/u/130119162?v=4)](https://github.com/Maatify "Maatify (3 commits)")

---

Tags

phpapismsproviderhandlerEgyptwhysmswhysms.com

### Embed Badge

![Health badge](/badges/maatify-whysms/health.svg)

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

###  Alternatives

[unicodeveloper/jusibe-php-lib

Jusibe PHP Library

3417.4k1](/packages/unicodeveloper-jusibe-php-lib)[lakshmaji/plivo

Send SMS using Plivo Cloud API

2016.8k](/packages/lakshmaji-plivo)[lakshmajim/plivo

Send SMS using Plivo Cloud API

205.7k](/packages/lakshmajim-plivo)[okolaa/termiiphp

Termii Rest API php library

112.4k](/packages/okolaa-termiiphp)

PHPackages © 2026

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