ems-spot/laravel-melipayamak-sms
Unofficial Laravel 5 notification channel for Melipayamak SMS. Configure credentials via .env, publish the package config, then send messages with SMS->text()->to()->sendText() and return EmsSpot\Melipayamak\SMS in via().
melipayamak library, reducing complexity for teams already familiar with Laravel’s notification system..env (useful for testing without live SMS costs).via() method signature changes, dependency injection updates).Notifiable trait updates, channel-specific configurations).melipayamak library (vendor lock-in risk if API changes).Notifiable).melipayamak library may have unmaintained PHP dependencies (e.g., Guzzle v5 vs. v6/7)..env (standard but no encryption or secret management guidance).via() method changes in Laravel 8+).notifications channel with a custom SMS driver?spatie/laravel-melipayamak)?melipayamak and unwilling to switch providers.via() method (e.g., return Notifiable::channels(['melipayamak'])).melipayamak library version in composer.json to avoid breaking changes.guzzlehttp/guzzle:^6.0).vendor:publish (as per README)..env with:
MELIPAYAMAK_TIMEOUT=30 # Add timeout config if supported
MELIPAYAMAK_RETRY_ATTEMPTS=3
EmsSpot\Melipayamak\SMS class to avoid real API calls.MELIPAYAMAK_DEBUG=true to verify debug recipient receives SMS.via() method to use Notifiable::channels().// app/Notifications/Channels/MelipayamakChannel.php
use Illuminate\Notifications\Notification;
class MelipayamakChannel extends Channel {
public function send($notifiable, Notification $notification) {
$sms = new \Melipayamak\SMS(
config('services.melipayamak.username'),
config('services.melipayamak.password')
);
$sms->send($notifiable->phone, $notification->toSmsLine());
}
}
melipayamak library’s PHP requirements.MELIPAYAMAK_DEBUG_RECIPIENT.Notifiable models to use EmsSpot\Melipayamak\SMS.melipayamak library is abandoned).melipayamak API changes).melipayamak library (switching providers requires rewriting).melipayamak library for deprecations.MELIPAYAMAK_DEBUG=true) for troubleshooting.melipayamak API changes, fork and patch the library.melipayamak supports it).| Failure Scenario | Impact | Mitigation |
|---|---|---|
melipayamak API downtime |
SMS not delivered | Implement retries with exponential backoff. |
How can I help you explore Laravel packages today?