{"id":15029570,"url":"https://github.com/alfaexchange/laravel-package","last_synced_at":"2026-03-15T08:24:00.720Z","repository":{"id":56944946,"uuid":"454848543","full_name":"alfaexchange/laravel-package","owner":"alfaexchange","description":"Laravel package for working with api.alfaexchange.io API service","archived":false,"fork":false,"pushed_at":"2022-02-04T13:12:06.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-27T14:32:12.479Z","etag":null,"topics":["alfaexchange","composer-package","currency","currency-api","currency-conversion","currency-converter-php","currency-exchange-rates","currency-rates","exchange-rates"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alfaexchange.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-02T16:22:52.000Z","updated_at":"2022-11-09T12:14:15.000Z","dependencies_parsed_at":"2022-08-21T07:50:39.826Z","dependency_job_id":null,"html_url":"https://github.com/alfaexchange/laravel-package","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/alfaexchange/laravel-package","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alfaexchange%2Flaravel-package","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alfaexchange%2Flaravel-package/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alfaexchange%2Flaravel-package/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alfaexchange%2Flaravel-package/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alfaexchange","download_url":"https://codeload.github.com/alfaexchange/laravel-package/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alfaexchange%2Flaravel-package/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28050307,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-26T02:00:06.189Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alfaexchange","composer-package","currency","currency-api","currency-conversion","currency-converter-php","currency-exchange-rates","currency-rates","exchange-rates"],"created_at":"2024-09-24T20:11:03.998Z","updated_at":"2025-12-26T08:32:22.574Z","avatar_url":"https://github.com/alfaexchange.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u003ca href=\"https://alfaexchnage.io\" target=\"_blank\"\u003e\u003cimg src=\"https://avatars2.githubusercontent.com/u/87022758?s=20\u0026v=4\" width=\"20\"\u003e\u003c/a\u003e alfaexchange Laravel SDK Package\n\n[![Build Status](https://travis-ci.com/alfaexchange/laravel-package.svg?token=E8WZTvpNHoqu5bG7wouf\u0026branch=master)](https://travis-ci.com/alfaexchange/laravel-package)\n[![Latest Stable Version](https://poser.pugx.org/alfaexchange/laravel-package/v)](//packagist.org/packages/alfaexchange/laravel-package)\n[![Total Downloads](https://poser.pugx.org/alfaexchange/laravel-package/downloads)](//packagist.org/packages/alfaexchange/laravel-package)\n[![License](https://poser.pugx.org/alfaexchange/laravel-package/license)](//packagist.org/packages/alfaexchange/laravel-package)\n\n*alfaexchange Laravel Package* - PHP SDK [Laravel](https://github.com/laravel/laravel) for work with [Alfa Exchange](https://www.alfaexchnage.io/).\n\n- [Introduction](#introduction)\n- [Install](#install)\n- [Configure](#configure)\n- [Methods](#methods)\n    - [Latest](#latest)\n\n# Introduction\nThe [laravel-alfaexchange](https://github.com/alfaexchange/laravel-package) package allows you to build web and console applications based on [Laravel](https://github.com/laravel/laravel) framework that integrate with your [Alfa Exchange](https://alfaexchange.com) account.\nWith over 15 exchange rate data sources, the Alfa Exchange API is delivering exchanging rates data for more than 170 world currencies. This API has several endpoints, where each of them serves a different purpose, use case. The endpoints include functionalities like receiving the latest exchange rates information for a specific set, or for all currencies; conversion from one to another currency; receiving data Time-series for multiple or for one currency, and preserving the API daily for the fluctuation data.\n\nWith [laravel-alfaexchange](https://github.com/alfaexchange/laravel-package) API SDK you can:\n - Obtain real-time, accurate and reliable currency exchange rate data for hundreds of worldwide currencies, updated as often as every 60 seconds.\n - Our API is integrated with a number of highly reputable foreign exchange rate sources, offering the most recent and accurate rates for 200+ pairs.\n - Make use of a scalable infrastructure that can handle anything from a few requests a day up to thousands of API requests per second.\n - Integrate the API in under 10 minutes without the need of a credit card. You will get 250 monthly requests for free, premium plans start at only **$9.99**.\n# Install\nTo install you can install the package via composer\n\n```shell script\ncomposer require alfaexchange/laravel-package\n```\n\nYou should publish the migration and the `config/alfaexchange.php` config file with\n\n```shell script\nphp artisan vendor:publish --provider=\"AlfaExchange\\Api\\AlfaExchangeServiceProvider\"\n```\n\n# Configure\nProject setup is done through the `.env` of your project\n\n- `ALFAEXCHANGE_API_KEY` - Personal Device API key for your application\n- `ALFAEXCHANGE_TIMEOUT` - Maximum wait request from Alfa Exchange API\n\n# Methods\nThe `AlfaExchange\\Api\\AlfaExchangeService` instance can execute all methods which provided Alfa Exchange API\n\n## Latest\nFetch a single currency exchange rate or all available currency rates\n\n```php\n(new AlfaExchangeService())-\u003elatest(string $from, ?string $to)\n```\n\n### Params\n\n|  **Param**                | **Type**    | **Description**                                     |\n|:--------------------------|:------------|:----------------------------------------------------|\n| `from`                    | `string`    | Base currency 3-letter symbol                       |\n| `to`                      | `string`    | Optional parameter. Target currency 3-letter symbol |\n\n### Response object\n\nReturned `AlfaExchange\\Api\\Objects\\ExchangeObject` with structure\n|  **Param**                | **Type**                               | **Description**                                     |\n|:--------------------------|:---------------------------------------|:----------------------------------------------------|\n| `success`                 | `boolean`                              | Success trigger                                     |\n| `timestamp`               | `timestamp`                            | Last currency updated                               |\n| `base`                    | `string`                               | Base currency 3-letter symbol                       |\n| `rates`                   | `AlfaExchange\\Api\\Objects\\RatesObject` | List of rates                                       |\n\nExample request object\n\n```php\nAlfaExchange\\Api\\Objects\\ExchangeObject^ {#1030\n  #properties: array:4 [\n    \"success\" =\u003e true\n    \"timestamp\" =\u003e 1643911210\n    \"base\" =\u003e \"USD\"\n    \"rates\" =\u003e AlfaExchange\\Api\\Objects\\RatesObject^ {#1027\n      #properties: array:150 [\n        \"GBP\" =\u003e 0.73519\n        \"MKD\" =\u003e 54.52694\n        \"GEL\" =\u003e 3.017\n        \"GHS\" =\u003e 6.25082\n        \"GIP\" =\u003e 0.73519\n        \"GNF\" =\u003e 8999.25746\n        \"GTQ\" =\u003e 7.68349\n        \"GYD\" =\u003e 209.87509\n        \"HKD\" =\u003e 7.79134\n        \"HNL\" =\u003e 24.48849\n        \"HRK\" =\u003e 6.59393\n        \"HTG\" =\u003e 102.88342\n        \"HUF\" =\u003e 309.60601\n        \"ILS\" =\u003e 3.1943\n        \"INR\" =\u003e 74.67339\n        \"KHR\" =\u003e 4060.75622\n        \"IQD\" =\u003e 1457.59048\n        \"ISK\" =\u003e 126.21766\n        \"JOD\" =\u003e 0.70777\n        \"KES\" =\u003e 113.27094\n        \"MMK\" =\u003e 1773.0023\n        \"MNT\" =\u003e 2853.99834\n        \"MOP\" =\u003e 7.91287\n        \"MRU\" =\u003e 36.3883\n        \"MUR\" =\u003e 43.98724\n        \"MYR\" =\u003e 4.18324\n        \"MZN\" =\u003e 63.65875\n        \"NAD\" =\u003e 15.2317\n        \"AUD\" =\u003e 1.40058\n        \"AWG\" =\u003e 1.7996\n        \"AZN\" =\u003e 1.69329\n        \"BBD\" =\u003e 1.99911\n        \"BDT\" =\u003e 84.84991\n        \"BGN\" =\u003e 1.72991\n        \"BHD\" =\u003e 0.37607\n        \"BIF\" =\u003e 2015.49048\n        \"BMD\" =\u003e 0.99914\n        \"BND\" =\u003e 1.34348\n        \"BOB\" =\u003e 6.8836\n        \"BSD\" =\u003e 1.00148\n        \"BTN\" =\u003e 74.95423\n        \"BRL\" =\u003e 5.29837\n        \"BWP\" =\u003e 11.55846\n        \"CAD\" =\u003e 1.26775\n        \"CDF\" =\u003e 2001.19836\n        \"CHF\" =\u003e 0.92029\n        \"CLF\" =\u003e 0.02581\n        \"CLP\" =\u003e 818.21657\n        \"CNH\" =\u003e 6.35154\n        \"CNY\" =\u003e 6.35963\n        \"CZK\" =\u003e 21.24887\n        \"DKK\" =\u003e 6.51412\n        \"DOP\" =\u003e 57.65665\n        \"DZD\" =\u003e 140.60168\n        \"EGP\" =\u003e 15.74045\n        \"ERN\" =\u003e 15.13024\n        \"EUR\" =\u003e 0.87421\n        \"FJD\" =\u003e 2.14691\n        \"FKP\" =\u003e 0.73519\n        \"GMD\" =\u003e 52.87129\n        \"IDR\" =\u003e 14363.58156\n        \"KGS\" =\u003e 84.79477\n        \"KMF\" =\u003e 432.70425\n        \"KPW\" =\u003e 899.95515\n        \"KRW\" =\u003e 1198.5605\n        \"KWD\" =\u003e 0.30209\n        \"KYD\" =\u003e 0.81909\n        \"MGA\" =\u003e 4001.42627\n        \"COP\" =\u003e 3952.05082\n        \"CUP\" =\u003e 24.99224\n        \"CVE\" =\u003e 96.87617\n        \"ETB\" =\u003e 49.78422\n        \"KZT\" =\u003e 434.20405\n        \"MDL\" =\u003e 17.98425\n        \"AMD\" =\u003e 481.90326\n        \"ANG\" =\u003e 1.78644\n        \"AOA\" =\u003e 527.09989\n        \"SAR\" =\u003e 3.74793\n        \"ZAR\" =\u003e 15.26912\n        \"WST\" =\u003e 2.62287\n        \"NZD\" =\u003e 1.50027\n        \"SZL\" =\u003e 15.25919\n        \"QAR\" =\u003e 3.63934\n        \"YER\" =\u003e 249.8548\n        \"TJS\" =\u003e 11.26196\n        \"PGK\" =\u003e 3.49157\n        \"PKR\" =\u003e 175.7578\n        \"TWD\" =\u003e 27.80413\n        \"TTD\" =\u003e 6.72663\n        \"XAF\" =\u003e 573.44562\n        \"SEK\" =\u003e 9.11057\n        \"RON\" =\u003e 4.32393\n        \"PAB\" =\u003e 0.99907\n        \"RWF\" =\u003e 1011.29254\n        \"XPF\" =\u003e 104.24426\n        \"SGD\" =\u003e 1.34386\n        \"TRY\" =\u003e 13.56605\n        \"PYG\" =\u003e 7059.10204\n        \"OMR\" =\u003e 0.38377\n        \"TMT\" =\u003e 3.48959\n        \"PLN\" =\u003e 3.96364\n        \"VUV\" =\u003e 113.293\n        \"VND\" =\u003e 22678.15526\n        \"TND\" =\u003e 2.86085\n        \"ZMW\" =\u003e 18.38949\n        \"XOF\" =\u003e 573.43606\n        \"SYP\" =\u003e 2512.17109\n        \"USD\" =\u003e 1.0\n        \"NPR\" =\u003e 115.6162\n        \"TZS\" =\u003e 2310.23607\n        \"UYU\" =\u003e 43.89166\n        \"RUB\" =\u003e 76.55254\n        \"THB\" =\u003e 33.12839\n        \"NOK\" =\u003e 8.73474\n        \"SRD\" =\u003e 21.0775\n        \"PHP\" =\u003e 50.99876\n        \"XCD\" =\u003e 2.69916\n        \"PEN\" =\u003e 3.8587\n        \"XDR\" =\u003e 0.71468\n        \"RSD\" =\u003e 103.35762\n        \"SDG\" =\u003e 440.37745\n        \"TOP\" =\u003e 2.29196\n        \"SHP\" =\u003e 0.73519\n        \"SLL\" =\u003e 11352.67867\n        \"SOS\" =\u003e 583.85961\n        \"JPY\" =\u003e 114.8641\n        \"LAK\" =\u003e 11324.44732\n        \"LSL\" =\u003e 15.30154\n        \"LYD\" =\u003e 4.58473\n        \"MAD\" =\u003e 9.27297\n        \"LBP\" =\u003e 1508.79657\n        \"LKR\" =\u003e 201.42039\n        \"LRD\" =\u003e 152.85806\n        \"JMD\" =\u003e 155.9091\n        \"AFN\" =\u003e 95.0154\n        \"SCR\" =\u003e 14.53216\n        \"MVR\" =\u003e 15.65958\n        \"AED\" =\u003e 3.67231\n        \"UZS\" =\u003e 10784.30219\n        \"DJF\" =\u003e 177.89426\n        \"NGN\" =\u003e 415.91983\n        \"ALL\" =\u003e 107.30854\n        \"UAH\" =\u003e 28.49109\n        \"ARS\" =\u003e 105.31323\n        \"BZD\" =\u003e 2.01413\n        \"IRR\" =\u003e 42020.96766\n        \"MWK\" =\u003e 812.43062\n        \"MXN\" =\u003e 20.57654\n        \"BAM\" =\u003e 1.7128\n        \"UGX\" =\u003e 3493.85012\n      ]\n    ]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falfaexchange%2Flaravel-package","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falfaexchange%2Flaravel-package","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falfaexchange%2Flaravel-package/lists"}