{"id":33948575,"url":"https://github.com/maxime-morel/fixer-api-php","last_synced_at":"2026-06-01T04:31:27.818Z","repository":{"id":56991139,"uuid":"135736500","full_name":"maxime-morel/fixer-api-php","owner":"maxime-morel","description":"PHP API wrapper for Fixer.io foreign exchange rates and currency conversion JSON API","archived":false,"fork":false,"pushed_at":"2018-06-03T16:31:31.000Z","size":23,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-27T09:18:06.678Z","etag":null,"topics":["api","conversion-rate","currencies","currency-codes","currency-converter","php","rates"],"latest_commit_sha":null,"homepage":"https://fixer.io/","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/maxime-morel.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":"2018-06-01T15:48:02.000Z","updated_at":"2024-05-21T17:02:07.000Z","dependencies_parsed_at":"2022-08-21T10:10:39.845Z","dependency_job_id":null,"html_url":"https://github.com/maxime-morel/fixer-api-php","commit_stats":null,"previous_names":["maxime-morel/fixer-api-php","infiniweb/fixer-api-php"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/maxime-morel/fixer-api-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxime-morel%2Ffixer-api-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxime-morel%2Ffixer-api-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxime-morel%2Ffixer-api-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxime-morel%2Ffixer-api-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxime-morel","download_url":"https://codeload.github.com/maxime-morel/fixer-api-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxime-morel%2Ffixer-api-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33760645,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"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":["api","conversion-rate","currencies","currency-codes","currency-converter","php","rates"],"created_at":"2025-12-12T18:44:48.327Z","updated_at":"2026-06-01T04:31:27.813Z","avatar_url":"https://github.com/maxime-morel.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP wrapper for Fixer API\n\nThis API wrapper provides a simple way to access [fixer.io API](https://fixer.io/documentation) in order to easily consume the endpoints with a PHP application.\n\n---\n\n- [Installation](#installation)\n- [QuickStart](#quick-start)\n\n\nWe are supporting multiple endpoints:\n\n- [symbols](#symbols): Retrieve the list of currencies supported by Fixer\n- [rates](#rates): Return real-time exchange rate data AND historical data\n- [convert](#convert): Return real-time exchange rate data\n\n---\n\n### Installation\n\nYou can use composer to include this package to your project:\n\n    composer require infiniweb/fixer-api-php\n\n### Quick Start\n\nYou will need first to instanciate the Fixer class:\n\n    $fixer = new \\InfiniWeb\\FixerAPI\\Fixer();\n\nAnd provide the Fixer API Key:\n\n    $fixer-\u003esetAccessKey($apiKey);\n\nMake sure to first get your Free or paid API Key [here https://fixer.io/product](https://fixer.io/product)\n\nYou are now ready to consume the API!\n\n### Symbols\n\nTo get the list of Symbols, simply use the following:\n\n    $symbols = $fixer-\u003esymbols-\u003eget();\n\nThis will return a list of symbols (ISO 4217 Currency Code) as a simple array:\n\n    Array\n    (\n        [AED] =\u003e United Arab Emirates Dirham\n        [AFN] =\u003e Afghan Afghani\n        [ALL] =\u003e Albanian Lek\n        ...\n\n### Rates\n\nThe are various ways to get rates. It can be real-time data, historical data or series data (from a date to another date)\n\n#### Real-time rates\n\nYou can get the latest rates for all or for specific currencies:\n\n    $baseCurrency = \"EUR\";\n    $symbols = array(\"USD\", \"GBP\");\n    $return = $fixer-\u003erates-\u003eget($baseCurrency, $symbols);\n\nThis will return the rates of provided currencies compared to the base currency.\n\n    Array\n    (\n        [timestamp] =\u003e 1528014248\n        [base] =\u003e EUR\n        [rates] =\u003e Array\n            (\n                [USD] =\u003e 1.166583\n                [GBP] =\u003e 0.874168\n            )\n    )\n\n#### Historical rates\n\nYou could also retrive historical rate data by including the date in the request, such as:\n\n    $fixer-\u003erates-\u003eget($baseCurrency, $symbols, \"2018-01-19\");\n\nNote that the date needs to be following this format: `YYYY-MM-DD`\n\n#### Time-series rates\n\nYou can get daily rates from a starting end an end date, using:\n\n    $return = $fixer-\u003erates-\u003egetDailyRates(\"2018-05-01\", \"2018-05-03\", $baseCurrency, $symbols);\n\n    Array\n    (\n        [base] =\u003e EUR\n        [rates] =\u003e Array\n            (\n                [2018-05-01] =\u003e stdClass Object\n                    (\n                        [USD] =\u003e 1.199468\n                        [GBP] =\u003e 0.881297\n                    )\n                [2018-05-02] =\u003e stdClass Object\n                    (\n                        [USD] =\u003e 1.195602\n                        [GBP] =\u003e 0.880967\n                    )\n                ...\n\n\n### Fluctuations\n\nThe parameters to retrieve the fluctuations are exactly the same then the time-series rates.\n\n    $return = $fixer-\u003erates-\u003egetDailyFluctuation(\"2018-05-01\", \"2018-05-03\", $baseCurrency, $symbols);\n\nYou will then get the daily flactuations for each currencies from the start to end date:\n\n    Array\n    (\n        [base] =\u003e EUR\n        [rates] =\u003e Array\n            (\n                [USD] =\u003e stdClass Object\n                    (\n                        [start_rate] =\u003e 1.199468\n                        [end_rate] =\u003e 1.199326\n                        [change] =\u003e -0.0001\n                        [change_pct] =\u003e -0.0118\n                    )\n                [GBP] =\u003e stdClass Object\n                    (\n                        [start_rate] =\u003e 0.881297\n                        [end_rate] =\u003e 0.883748\n                        [change] =\u003e 0.0025\n                        [change_pct] =\u003e 0.2781\n                    )\n            )\n    )\n\n### Convert\n\nYou can request the conversion from a currency to another. If you provide a date, it will return an historical rate.\n\n    $from = \"EUR\";\n    $to = \"USD\";\n    $amount = \"25\";\n    $date = \"2018-01-19\";\n    $return = $fixer-\u003econvert-\u003eget($from, $to, $amount, $date);\n\nYou will receive the following array:\n\n    Array\n    (\n        [timestamp] =\u003e 1516406399\n        [rate] =\u003e 1.222637\n        [result] =\u003e 30.565925\n    )\n\n### Additional features\n\n#### SSL support\n\nAll paid subscription plans available on Fixer.io come with 256-bit SSL encryption. You can enable SSL support by providing extra information in the class constructor:\n\n    $config = array('ssl' =\u003e true);\n    $fixer = new \\InfiniWeb\\FixerAPI\\Fixer($config);\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxime-morel%2Ffixer-api-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxime-morel%2Ffixer-api-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxime-morel%2Ffixer-api-php/lists"}