ghanem/dtone
Laravel package providing a clean interface to the DT One DVS API. Configure sandbox/production credentials via .env, optional request retries, and use the Dtone facade to browse services, countries, and operators with paginated DTO responses.
DtoneCallStarted, DtoneCallFailed) for reactive workflows (e.g., webhooks, notifications)..env, which is critical for staging vs. production parity.DTONE_RETRIES) mitigates transient API failures, though exponential backoff would be a worthwhile enhancement.DtoneClient into controllers/services.call:completed).Http facade or Mockery to test interactions.php artisan vendor:publish)..env for sandbox/production.Dtone::initiateCall()).composer.json to avoid transitive updates.DtoneApiException).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| DT One API downtime | Call failures, missed webhooks | Implement exponential backoff retries; notify users. |
| Auth credential leakage | Unauthorized API usage | Rotate keys via .env; use Laravel Envoy for secure updates. |
| Rate limiting | Throttled requests | Add queue delays; implement circuit breakers. |
| Package abandonment | No updates for API changes | Fork the repo; submit PRs to upstream. |
| Webhook delivery failures | Unprocessed call events | Use dead-letter queues for failed webhooks. |
| PHP/Laravel version conflicts | Integration breaks | Pin dependencies; test on CI. |
Dtone::initiateCall() for outbound calls").DTONE_IS_PRODUCTION)..env secrets are managed securely (e.gHow can I help you explore Laravel packages today?