dunp/smsend-laravel
Pacchetto Laravel per inviare SMS tramite il provider italiano smsend.it. Compatibile con Laravel 9 e 10, include configurazione pubblicabile, timeout, qualità e mittente di default. Integrazione rapida con poche righe di codice.
SmsService). This promotes separation of concerns and modularity.sending:message, sent:message) for async processing or logging..env for API keys and endpoints, adhering to Laravel’s 12-factor principles.Http::fake()) for unit/integration tests.Http client (Guzzle under the hood), ensuring consistency with other API integrations.composer require dunp/smsend-laravel)..env with Smsend.it credentials.SmsService facade wrapping the package’s client.SmsService::send().laravel-phone package).SendSmsJob).composer.json constraints).composer.json to avoid breaking changes..env management (e.g., Ansible/Vault) for API keys across environments.dd() for API responses).throttle middleware).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Smsend.it API downtime | SMS delivery halts | Fallback to a secondary provider (e.g., Twilio). |
| Invalid phone numbers | API errors/rejections | Validate numbers pre-send; log failures. |
| Rate limit exceeded | Throttled requests | Implement retry logic with jitter. |
| Queue worker crashes | Pending SMS not sent | Supervisor + dead-letter queue for recovery. |
| Configuration errors | No SMS sent | Validate .env on app startup. |
How can I help you explore Laravel packages today?