websms/php-sdk
PHP SDK for the websms service. Minimal repository with basic project scaffolding and contributor info; intended as a starting point for integrating websms messaging features into PHP applications.
websms/php-sdk is a lightweight PHP wrapper for the WebSMS API, ideal for Laravel applications requiring SMS functionality (e.g., notifications, OTPs, two-factor authentication). It abstracts HTTP requests to the WebSMS API, reducing boilerplate code for SMS operations..env or config files.retry helper).config/services.php or Vault (Hashicorp) could be used.logs table or a custom sms_messages table.vendor:publish to customize config).config/websms.php (if supported).namespace App\Services;
use Grschannel\Websms\Client;
class WebSmsService {
public function __construct(protected Client $client) {}
public function send(string $number, string $message) { ... }
}
AppServiceProvider.public function __construct(private WebSmsService $websms) {}
throttle middleware or a decorator pattern could enforce limits.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| WebSMS API downtime | SMS delivery failures | Implement retries + fallback to email/SMS |
| SDK deprecation | Broken functionality | Fork or migrate to a maintained SDK |
| Rate limiting | Throttled requests | Queue jobs + exponential backoff |
| Credential leaks | Security breach | Use Laravel Envoy or Hashicorp Vault |
| PHP version incompatibility | Integration failures | Test on Laravel’s supported PHP versions |
docs/integration.md in your Laravel repo.How can I help you explore Laravel packages today?