PHPackages                             fateel-tech/taqnyat-sms-laravel - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. fateel-tech/taqnyat-sms-laravel

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

fateel-tech/taqnyat-sms-laravel
===============================

Laravel package for easy integration with the Taqnyat SMS API, allowing you to send and manage SMS directly within your Laravel applications.

v1.1.0(1y ago)3231[3 PRs](https://github.com/Fateel-Tech/taqnyat-sms-laravel/pulls)MITPHPPHP ^8.2CI passing

Since Nov 12Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/Fateel-Tech/taqnyat-sms-laravel)[ Packagist](https://packagist.org/packages/fateel-tech/taqnyat-sms-laravel)[ Docs](https://github.com/fateel-tech/taqnyat-sms-laravel)[ GitHub Sponsors](https://github.com/FateelTech)[ RSS](/packages/fateel-tech-taqnyat-sms-laravel/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (13)Versions (6)Used By (0)

Taqnyat SMS Laravel
===================

[](#taqnyat-sms-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3a7d4a7bc7349c0bf2249fdafda8f62ddb74f65ae99d6dab291af1275e5a7e18/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f66617465656c2d746563682f7461716e7961742d736d732d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/fateel-tech/taqnyat-sms-laravel)[![GitHub Tests Action Status](https://camo.githubusercontent.com/5ed9e3efb39bfb4c1b9121ba0f21edf5798dda3cf3fa123351bd19ef25fde28a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f66617465656c2d746563682f7461716e7961742d736d732d6c61726176656c2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/fateel-tech/taqnyat-sms-laravel/actions?query=workflow%3Arun-tests+branch%3Amaster)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/0651ee8bbb8b1c3f89e4772e60b9f0d9c657e0987d3cc331d5869b4cd2c5a9ba/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f66617465656c2d746563682f7461716e7961742d736d732d6c61726176656c2f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/fateel-tech/taqnyat-sms-laravel/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/84355d8168f04647610e1a46ccfd1b8c1a10759c02513e47859711a22340b40e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f66617465656c2d746563682f7461716e7961742d736d732d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/fateel-tech/taqnyat-sms-laravel)

Taqnyat SMS Laravel is a Laravel package for easy integration with the [Taqnyat SMS API](https://dev.taqnyat.sa/ar/doc/sms/), allowing you to send and manage SMS directly within the comfort of your Laravel applications.

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

[](#installation)

You can install the package via composer:

```
composer require fateel-tech/taqnyat-sms-laravel
```

You can publish the config file with:

```
php artisan vendor:publish --tag="taqnyat-sms-laravel-config"
```

The following config file will be published in `config/taqnyat-sms.php`.

```
return [
    /**
     * This is the URL where the Taqnyat API is located.
     *
     * In most cases, you won't need to change this value.
     */
    'endpoint' => env('TAQNYAT_API_URL', 'https://api.taqnyat.sa'),

    /**
     * This is the sender name that will be used when sending SMS messages.
     */
    'sender_name' => env('TAQNYAT_API_SENDER_NAME', env('APP_NAME')),

    /**
     * This is the token that will be used to authenticate with the Taqnyat API
     */
    'bearer_token' => env('TAQNYAT_API_TOKEN'),

    /**
     * This is the timeout for the HTTP client
     */
    'timeout' => env('TAQNYAT_API_TIMEOUT', 10),
];
```

Set the `TAQNYAT_API_TOKEN` and `TAQNYAT_API_SENDER_NAME` in your `.env` file.

```
TAQNYAT_API_SENDER_NAME=*************
TAQNYAT_API_TOKEN=********************************
```

Usage Examples
--------------

[](#usage-examples)

```
use FateelTech\TaqnyatSmsLaravel\Facades\TaqnyatSms;

// Send a message to a single recipient
TaqnyatSms::sendMsg('Hello world', '966500000001');

// Send a message to multiple recipients
TaqnyatSms::sendMsg('Hello world', ['966500000001', '966500000002']);

// Send an advertisement message (appends -AD to the sender name)
TaqnyatSms::asAdvertisement()->sendMsg('Hello world', '966500000001');

// Get the account balance
$accountBalanceInfo = TaqnyatSms::getAccountBalance();
$balance = $accountBalanceInfo->getBalance();
$currency = $accountBalanceInfo->getCurrency();
$expiryDate = $accountBalanceInfo->getExpiryDate();

// Get Taqnyat Service Status
$serviceStatus = TaqnyatSms::getServiceStatus();
$serviceStatus->isUp() // true if the service is up, false otherwise
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Fateel Tech](https://github.com/Fateel-Tech)
- [Faris Alherf](https://github.com/farishrf)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance69

Regular maintenance activity

Popularity18

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 56% 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 ~109 days

Total

2

Last Release

437d ago

### Community

Maintainers

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

---

Top Contributors

[![farishrf](https://avatars.githubusercontent.com/u/23425456?v=4)](https://github.com/farishrf "farishrf (14 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (6 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (5 commits)")

---

Tags

laravelFateel Techtaqnyat-sms-laraveltaqnyat smsLaravel client for Taqnyat SMS API

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/fateel-tech-taqnyat-sms-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/fateel-tech-taqnyat-sms-laravel/health.svg)](https://phpackages.com/packages/fateel-tech-taqnyat-sms-laravel)
```

###  Alternatives

[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.4M35](/packages/laravel-notification-channels-telegram)[mckenziearts/laravel-notify

Flexible flash notifications for Laravel

1.7k1.1M5](/packages/mckenziearts-laravel-notify)[propaganistas/laravel-disposable-email

Disposable email validator

5762.6M6](/packages/propaganistas-laravel-disposable-email)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[xammie/mailbook

Laravel Mail Explorer

482458.3k1](/packages/xammie-mailbook)[spatie/laravel-notification-log

Log notifications sent by your Laravel app

207902.8k](/packages/spatie-laravel-notification-log)

PHPackages © 2026

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