PHPackages                             aghanem/jawaly - 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. aghanem/jawaly

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

aghanem/jawaly
==============

Laravel package to send SMS using 4jawaly.net API

v1.08(5y ago)0227MITPHP

Since Aug 26Pushed 5y agoCompare

[ Source](https://github.com/aghanemsure/4jawaly)[ Packagist](https://packagist.org/packages/aghanem/jawaly)[ Docs](http://4jawaly.net)[ RSS](/packages/aghanem-jawaly/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (1)Versions (9)Used By (0)

4jawaly gateway Laravel package
===============================

[](#4jawaly-gateway-laravel-package)

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

[](#installation)

Begin by installing this package through Composer. Run this command from the Terminal:

```
composer require aghanem/jawaly

```

Laravel integration
-------------------

[](#laravel-integration)

Open config/app.php, and add a new item to the providers array.

```
Aghanem\Jawaly\SmsServiceProvider::class

```

Add new item to aliases array:

```
'Jawaly' => Aghanem\Jawaly\Facades\Jawaly::class

```

This will allow you to use Aghanem facade :

```
use Jawaly;

```

...

```
Jawaly::send($message);

```

Now you can copy config file and migration file to your project using this line in terminal:

```
php artisan vendor:publish

```

This will copy jawaly.php config file and sms log database migration If you faced any problem publishing these files just copy src/config/jawaly.php to your project config file, and src/database/migrations/\* files to your project database migrations folder.

Config
------

[](#config)

You have to change username and password in config file "you can put them in .env file as defined". It's better to use unicode encoding so let it to be true to use unicode to better Arabic message encoding.

You can set default sender here.

You can use file or database to store your message log, if you use database you have to migrate your database after publish package files.

Usage
-----

[](#usage)

You can use the facade directly.

```
Jawaly::send($message);

```

You can set numbers in two ways:

```
Jawaly::send($message, $numbers);

```

or:

```
Jawaly::setTo($numbers)->send($message);

```

You can set sender name in two ways:

```
Jawaly::send($message, $numbers, $sender);

```

Or:

```
Jawaly::setFrom($sender)->send($message);

```

Credit
------

[](#credit)

This method doesn't take any parameters, you can use it simply:

```
Jawaly::getCredits();

```

This will return an array with credits in second element if first element true, or response message in second element if first element false.

SMS Log
-------

[](#sms-log)

If you use database for log container in jawaly.php config file, this will store log in sms\_log table every time you send message. If you use file for log container, this will store send log in storage/logs/jawaly.log

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 57.1% 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 ~25 days

Recently: every ~43 days

Total

8

Last Release

1910d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/01d3a38a8e20912f6bf8c56da3fdef3ffd25fc75abeb861bf56260483b7e9c04?d=identicon)[aghanem](/maintainers/aghanem)

---

Top Contributors

[![aghanemsure](https://avatars.githubusercontent.com/u/53741350?v=4)](https://github.com/aghanemsure "aghanemsure (12 commits)")[![marwanzak](https://avatars.githubusercontent.com/u/3001555?v=4)](https://github.com/marwanzak "marwanzak (8 commits)")[![4jawaly](https://avatars.githubusercontent.com/u/12710594?v=4)](https://github.com/4jawaly "4jawaly (1 commits)")

---

Tags

smsgateway4jawaly

### Embed Badge

![Health badge](/badges/aghanem-jawaly/health.svg)

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

###  Alternatives

[infobip/infobip-api-php-client

PHP library for consuming Infobip's API

921.8M10](/packages/infobip-infobip-api-php-client)[gr8shivam/laravel-sms-api

A modern, flexible Laravel package for integrating any SMS gateway with REST API support

10138.4k](/packages/gr8shivam-laravel-sms-api)[nadar/aspsms

Simple to use sms sending class for the aspsms.com gateway.

1049.2k2](/packages/nadar-aspsms)[minchao/every8d-php

A EVERY8D SMS SDK for PHP (Unofficial)

1239.9k1](/packages/minchao-every8d-php)[ender/yunpian-sms

A php SDK for yunpian(云片网络短信服务商) sms RESTFULL API

294.9k](/packages/ender-yunpian-sms)[mediumart/orange-sms

A php library to interact with the orange sms api for MiddleEast and Africa.

1311.1k1](/packages/mediumart-orange-sms)

PHPackages © 2026

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