hamdy/dtone
Laravel package that integrates DT One’s DVS API into your Laravel app, providing a simple foundation for connecting to DT One services (e.g., digital value and voucher workflows) with a package-based setup.
Dtone::makeCall(), Dtone::sendSMS()). Reduces manual HttpClient/Guzzle usage..env setup for API credentials (keys, endpoints). Assumes DT One’s API is stable—no fallback mechanisms if the API changes.HttpClient or Guzzle under the hood (no direct dependency declared, but implied).DtoneJob::dispatch()).composer require hamdy/dtone
Publish config:
php artisan vendor:publish --provider="Hamdy\Dtone\DtoneServiceProvider"
DTONE_API_KEY, DTONE_BASE_URL to .env.voice, sms) in config/dtone.php.use Hamdy\Dtone\Facades\Dtone;
$call = Dtone::makeCall(['to' => '+1234567890', 'from' => '+9876543210']);
/dtone/call-status).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| DT One API downtime | Calls/SMS fail silently | Queue jobs with retries; notify users. |
| Invalid API credentials | All DVS operations fail | Validate .env keys on app startup. |
| DT One API schema changes | Package methods break | Fork/replace package; add API contract tests. |
| High latency in DVS responses | Poor UX for real-time calls | Implement timeouts; use async callbacks. |
| Rate limit exceeded | Throttled requests | Add retry logic with jitter. |
Mockery).HttpClient exceptions).How can I help you explore Laravel packages today?