bakr/laravel-smsmisr

Laravel package for sending SMS using SMSMisr API

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/bakr/laravel-smsmisr

v1.0.0 2025-08-05 16:42 UTC

This package is auto-updated.

Last update: 2026-01-14 06:41:29 UTC


README

Latest Version on Packagist

Total Downloads

A modern Laravel package for sending SMS messages using the SMSMisr gateway.
Built with simplicity, flexibility, and modern Laravel practices in mind.

πŸ“š Table of Contents

✨ Features

  • πŸ“¬ Send single or bulk SMS messages
  • ⏱️ Support for scheduling future messages
  • 🧾 Laravel Facade support
  • πŸ›‘οΈ Clean and tested codebase
  • βœ… Supports Laravel 10+ out of the box
  • πŸ”„ Simple configuration and usage

πŸ“¦ Installation

composer require bakr/smsmisr

Laravel 10+ will auto-discover the service provider and facade.

βš™οΈ Configuration

You can publish the config file:

php artisan vendor:publish --tag=smsmisr-config

This will create a config file at config/smsmisr.php:

return [
    'username'  => env('SMSMISR_USERNAME'),
    'password'  => env('SMSMISR_PASSWORD'),
    'sender_id' => env('SMSMISR_SENDER_ID'),
];

Then set your .env:

SMSMISR_USERNAME=your_username
SMSMISR_PASSWORD=your_password
SMSMISR_SENDER_ID=your_sender_id

πŸ§ͺ Usage

Send a Single SMS

use Bakr\Smsmisr\Facades\Smsmisr;

Smsmisr::send('201234567890', 'Your verification code is 123456');

Send to Multiple Recipients

Smsmisr::send(['201234567890', '201112223334'], 'Promo: 50% off today!');

Schedule an SMS

Smsmisr::schedule('201234567890', 'Happy New Year πŸŽ‰', now()->addMinutes(10));

βœ… Requirements

PHP ^8.1

Laravel ^10.0 or newer

No external dependencies (uses Laravel's native HTTP client)

πŸ’‘ Examples

Controller Example:

public function notifyUser(Request $request)
{
    Smsmisr::send($request->phone, 'Welcome to our platform!');
    return response()->json(['status' => 'sent']);
}
Smsmisr::schedule('201234567890', 'Don’t miss our event tomorrow!', now()->addDay());

🀝 Contributing

PRs are welcome! Please open issues first for any breaking or feature discussions.

To contribute locally:

git clone https://github.com/bakr/smsmisr.git
cd smsmisr
composer install
composer test

Make sure your code is clean and tested before submitting a PR.

πŸ“„ License

This package is open-sourced software licensed under the MIT license.

πŸ™Œ Credits

Developed with ❀️ by Mohamed Bakr

Inspired by the need for clean SMS integrations in Laravel projects

Built for the community β€” feel free to star ⭐️ and share