florianv/swap
Retrieve live currency exchange rates from multiple providers (Fixer, currencylayer, exchangeratesapi, etc.) with optional caching and fallbacks. PSR-friendly and integrates with MoneyPHP; also available via Symfony bundle and Laravel package.
ExchangeRateService interface, enabling future-proofing for niche or proprietary APIs.florianv/laravel-swap wrapper simplifies integration by providing Service Provider, Facade, and configurable bindings for Laravel’s container.cache/simple-cache-bridge, minimizing additional dependencies..env) and dynamic fallback prioritization.php-http/curl-client, nyholm/psr7, and cache adapters may increase deployment size.Swap instance as a singleton in Laravel’s container.Swap methods via a facade (e.g., Swap::latest('EUR/USD')).config/swap.php for provider keys, cache settings, and fallbacks.Http facade) with HTTPlug adapter.cache/simple-cache-bridge).florianv/laravel-swap and test basic rate retrieval..env with API keys and configure config/swap.php.Swap to Laravel’s container and create a facade.Swap calls.curl or openssl is needed for HTTPS.Swap in AppServiceProvider and publish config.latest() and historical() methods.config:clear or Vault.ISO 4217 validation).florianv/swap and its dependencies (e.g., php-http, psr standards) for breaking changes.composer.json constraints to pin versions.getProviderName() to debug fallback issues.How can I help you explore Laravel packages today?