{"id":25239252,"url":"https://github.com/vedranbe/foreign-rates","last_synced_at":"2026-04-26T23:31:32.067Z","repository":{"id":98916218,"uuid":"302172565","full_name":"vedranbe/foreign-rates","owner":"vedranbe","description":":rocket: Foreign rates plugin for WP","archived":false,"fork":false,"pushed_at":"2024-02-07T23:34:56.000Z","size":441,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T19:38:21.463Z","etag":null,"topics":["wordpress","wordpress-plugin"],"latest_commit_sha":null,"homepage":"https://github.com/vedranbe/","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/vedranbe.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-10-07T22:13:26.000Z","updated_at":"2021-10-09T13:01:58.000Z","dependencies_parsed_at":"2023-03-06T10:30:36.191Z","dependency_job_id":null,"html_url":"https://github.com/vedranbe/foreign-rates","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vedranbe/foreign-rates","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vedranbe%2Fforeign-rates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vedranbe%2Fforeign-rates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vedranbe%2Fforeign-rates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vedranbe%2Fforeign-rates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vedranbe","download_url":"https://codeload.github.com/vedranbe/foreign-rates/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vedranbe%2Fforeign-rates/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32317163,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"ssl_error","status_checked_at":"2026-04-26T23:26:25.802Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["wordpress","wordpress-plugin"],"created_at":"2025-02-11T18:14:46.452Z","updated_at":"2026-04-26T23:31:32.051Z","avatar_url":"https://github.com/vedranbe.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Foreign rates plugin for WP\nForeign Exchange Rates using exchangeratesapi.io\n\n### How it works?\nThis plugin is using API from exchangeratesapi.io and creating file inside /wp-content/plugins/foreignrates/json/data.json. \nData download is scheduled with WP cron as event called 'load_api_hook'. It is scheduled to run once a day. Better option is usage of a server cron job, because WordPress cron is not reliable on sites with small loads. Categories and tags are created on plugin activation.\n\nIt contains 3 main components:\n\n1. Shortcode\n2. Widget\n3. Exchange rates for posts\n\n#### 1. Shortcode\n\nIt's intended to be in the sidebar using the following sample code [foreign_rates base=\"EUR\" currencies=\"CAD,CHF,GBP,USD\"].\nData is loaded directly from http://api.exchangeratesapi.io/latest. Other components use local file. It uses Jquery for calculations. \nOption for switching currencies and inline switch for currency names (not data in API) are included.\n\n#### 2. Widget\nWidget has its own options for currencies.\n\n#### 3. Exchange rates for posts\nOptions are defined in the 'Foreign Rates Settings' page. It has 'Base currency', 'Convert to', 'Display in' and 'Enabled' options. \nSince the base rate in API is always 'EUR', it programatically calculates rates ratios from all currencies in JSON file.\nIt will show at the bottom of posts if all options are set and the post is older than one week, post category set to 'Currency' and tag set to 'EUR'.\nLinks to posts on 'Homepage'.\n```\u003c?php fr_show_in_post(get_the_ID()); ?\u003e``` should be added to single.php in your theme folder.\n\n### Version\n1.0 alpha\n\n### Bugs\nThere is a possibility of some bugs which will be fixed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvedranbe%2Fforeign-rates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvedranbe%2Fforeign-rates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvedranbe%2Fforeign-rates/lists"}