ghanem/reloadly
Laravel package providing a simple facade to the Reloadly API for airtime top-ups. Fetch countries and operators, auto-detect operator by phone number, check balances, create recharge transactions, and list or retrieve transactions by ID.
.env for credentials (via published config). Risk of hardcoding or misconfiguration if not secured..env is compromised..env management and rotation policies.Reloadly::make()).ReloadlyTopUpFailed) if extended.composer require ghanem/reloadly.php artisan vendor:publish --provider="Ghanem\Reloadly\ReloadlyServiceProvider" --tag="config".Reloadly::countries()) against a sandbox Reloadly account.config/app.php service provider binding.ReloadlyTopUpService)..env with RELOADLY_API_KEY and RELOADLY_API_SECRET.Reloadly::topUp()).ReloadlyException).Log facade).Reloadly::countries()).APP_DEBUG=true).Reloadly::countries()) hit Reloadly’s API.
Cache::remember()).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Reloadly API downtime | Airtime top-ups fail | Implement fallback (e.g., queue retries, manual override). |
| Invalid API credentials | All calls fail | Validate credentials on startup; alert on failure. |
| Rate limiting by Reloadly | Throttled requests | Add retry logic with exponential backoff. |
| Package abandonment | No updates/bug fixes | Fork and maintain; switch to direct API client. |
| Laravel version incompatibility | Breaking changes | Test on new Laravel versions early. |
| Data corruption (e.g., malformed API response) | Invalid state in app | Validate responses; use Laravel’s validate() or a DTO layer. |
Reloadly::countries()) is straightforward..env management for API keys.How can I help you explore Laravel packages today?