alaaelsaid/laravel-sms-helper

Sms helper

Maintainers

Package info

github.com/alaaels3id/laravel-sms-helper

pkg:composer/alaaelsaid/laravel-sms-helper

Statistics

Installs: 70

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.4.2 2024-10-01 13:57 UTC

This package is auto-updated.

Last update: 2026-03-14 08:44:42 UTC


README

Laravel SMS Helper

Installation

You can install the package via Composer.

composer require alaaelsaid/laravel-sms-helper

Publishing

After install publish file config

php artisan vendor:publish --tag="sms"

Command

You Can change sms current status with this command by [ on, off ] or get the current status

php artisan sms:current
php artisan sms:current off

Env

In the .env file you can add those keys:

SMS_PROVIDER=four_jawaly
SMS_PROVIDER_STATUS=false
SMS_CODE_DYNAMIC=false
SMS_DEFAULT_CODE=1111

Available SMS Providers

Malath - Hisms - Four Jawaly - Unifonic - Yamamah

Usage

use Alaaelsaid\LaravelSmsHelper\Facade\Sms;

// to send single phone number;
Sms::send('+201007153686', "hello world");

// to send multi phone numbers;
Sms::send(['+201007153686'], "hello world");

// to send single phone number && code is optional;
Sms::sendWithCode(['+201007153686'], '1111');