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

ActiveLibrary[API Development](/categories/api)

abdallahmohammed/alsaad-php
===========================

PHP Client for using Alsaad's API.

v1.0.0(6y ago)0351MITPHPPHP &gt;=7.1CI failing

Since May 12Pushed 6y ago1 watchersCompare

[ Source](https://github.com/AbdallaMohammed/alsaad-php)[ Packagist](https://packagist.org/packages/abdallahmohammed/alsaad-php)[ RSS](/packages/abdallahmohammed-alsaad-php/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (6)Versions (2)Used By (1)

Client Library For PHP
======================

[](#client-library-for-php)

[![Build Status](https://camo.githubusercontent.com/eea243489a546ce6025452d8a7ae3398fcb1116990b48d183a47241c6452f587/68747470733a2f2f7472617669732d63692e6f72672f416264616c6c614d6f68616d6d65642f616c736161642d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/AbdallaMohammed/alsaad-php)

*This library requires a minimum PHP version of 7.1*

This is the PHP client library for use Alsaad2's API. To use this, you'll need a Alsaad2 account.

- [Installation](#installation)
- [Usage](#usage)
- [Examples](#examples)

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

[](#installation)

To install the PHP client library to your project, we recommend using [Composer](https://getcomposer.org/).

```
composer install abdallahmohammed/alsaad-php

```

Usage
-----

[](#usage)

If you're using Composer, make sure the autoloader is included in your project's bootstrap file:

```
require_once "vendor/autoload.php";
```

Create a client with your Username and Password:

```
$client = new Alsaad\Client([
    'username' => ALSAAD2_USERNAME,
    'password' => ALSAAD2_PASSWORD,
]);
```

Examples
--------

[](#examples)

#### Sending a Message

[](#sending-a-message)

To use Alsaad2's SMS API to send an SMS message, call the `$client->message()->send()` method.

```
$message = $client->message()->send([
    'to' => ALSAAD2_TO, //can be array of numbers or string
    'from' => ALSAAD2_SENDER,
    'message' => 'Hello World'
]);
```

The API response data can be accessed as array properties of the message.

#### Accessing Response Data

[](#accessing-response-data)

When things go wrong, you'll receive an Exception. The exception class `Alsaad\Client\Exception\Request` support an additional `getEntity()` method which you can use in addition to `getCode()` and `getMessage()` to find out more about what went wrong. The entity returned will typically be an object related to the operation, or the response object from the API call.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

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

Unknown

Total

1

Last Release

2197d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/528edaaf4cec2c4872feecfe766beb012b234e9479334fa3cdf216d7b180fca9?d=identicon)[AbdullahMohamedRezk](/maintainers/AbdullahMohamedRezk)

---

Top Contributors

[![AbdallaMohammed](https://avatars.githubusercontent.com/u/41541325?v=4)](https://github.com/AbdallaMohammed "AbdallaMohammed (14 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/abdallahmohammed-alsaad-php/health.svg)

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

###  Alternatives

[saippuakauppias/safe-browsing

Client to use Google's and Yandex Safe Browsing API (v4)

1020.2k](/packages/saippuakauppias-safe-browsing)

PHPackages © 2026

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