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

ActiveLibrary[API Development](/categories/api)

jawaly/smsgateway
=================

Laravel package to send SMS using 4jawaly.net API

11772[1 PRs](https://github.com/4jawaly/smsgateway/pulls)PHP

Since Nov 23Pushed 4y ago1 watchersCompare

[ Source](https://github.com/4jawaly/smsgateway)[ Packagist](https://packagist.org/packages/jawaly/smsgateway)[ RSS](/packages/jawaly-smsgateway/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)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 jawaly/smsgateway

```

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

[](#laravel-integration)

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

```
Jawaly\SmsGateway\SmsServiceProvider::class

```

Add new item to aliases array:

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

```

This will allow you to use Jawaly 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

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.9% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/46a5a6e48e9e10ad2a49b731cc822f9f8f64d618479325ea361ef6d0e402e3b2?d=identicon)[4jawaly](/maintainers/4jawaly)

---

Top Contributors

[![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)")

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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