smsapi/php-client
PHP client library for SMSAPI, providing a simple way to send SMS and manage messaging features from PHP applications. Suitable for integrating SMS notifications and related services into Laravel or custom PHP projects.
send() via bus:queue).Mockery).notifications channel or augment it?Illuminate\Support\Facades\Http) or Guzzle.twilio/sdk) may offer better Laravel integration.spatie/laravel-ignition for error handling) if package is too minimal.Http::fake()).// app/Providers/SmsServiceProvider.php
public function register() {
$this->app->singleton(SmsClient::class, function ($app) {
return new \SmsApi\Client(config('services.smsapi.key'));
});
}
sendSms() dispatches a job).SmsSent events) and monitoring (e.g., Laravel Telescope).^8.0 for Laravel 9+).SmsApiException).sms_attempted, sms_failed) to a table.| Failure Type | Impact | Mitigation |
|---|---|---|
| Provider API Outage | SMS delivery stops | Fallback to email + alerting. |
| Rate Limit Exceeded | Throttled requests | Exponential backoff + queue delays. |
| Invalid Credentials | All SMS fail | Rotate keys via config + monitoring. |
| Silent API Changes | Breaking changes go unnoticed | Feature flags + automated API checks. |
How can I help you explore Laravel packages today?