{"id":18653295,"url":"https://github.com/secrethash/currency","last_synced_at":"2025-10-04T02:10:27.811Z","repository":{"id":62541752,"uuid":"158360731","full_name":"secrethash/currency","owner":"secrethash","description":"The one in all Currency Library.","archived":false,"fork":false,"pushed_at":"2019-12-15T05:31:22.000Z","size":266,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-01T03:47:44.293Z","etag":null,"topics":["composer-package","currency","currency-converter","free-forever"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/secrethash.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":null,"patreon":"shashwatmishra","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2018-11-20T09:07:26.000Z","updated_at":"2023-03-19T17:44:51.000Z","dependencies_parsed_at":"2022-11-02T15:46:49.538Z","dependency_job_id":null,"html_url":"https://github.com/secrethash/currency","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/secrethash/currency","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/secrethash%2Fcurrency","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/secrethash%2Fcurrency/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/secrethash%2Fcurrency/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/secrethash%2Fcurrency/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/secrethash","download_url":"https://codeload.github.com/secrethash/currency/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/secrethash%2Fcurrency/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278254466,"owners_count":25956604,"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-10-04T02:00:05.491Z","response_time":63,"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":["composer-package","currency","currency-converter","free-forever"],"created_at":"2024-11-07T07:11:02.932Z","updated_at":"2025-10-04T02:10:27.774Z","avatar_url":"https://github.com/secrethash.png","language":"PHP","funding_links":["https://patreon.com/shashwatmishra"],"categories":[],"sub_categories":[],"readme":"﻿![Currency Tool](https://raw.githubusercontent.com/clippedcode/currency/master/display.jpg)\n# Introduction\n\nSmart Currency PHP Library utilizes the Smart Caching and Certain API providers to convert currency without having the need to pay anything. It saves your quotas of free plans of the API Providers. Smart Currency makes your currency conversions smarter with a \"Self-drive\" Mode. It utilizes Composer to manage it as a Package and helps you to use the library from your own private repository too.\n\nYou don't need to Pay Anything to any Currency Exchange API providers, all you need is their Free/Basic Accounts and feed the Smart Currency Library with your API Keys. It will smartly convert the amount to your desired Currency. We have built a self-drive mode to help you to cut the chase, just complete your configuration file with `\"selfdrive\"=\u003etrue` and run the Currency Conversion like a charm.\n\n# Usage\n![Just a Show-off](https://raw.githubusercontent.com/clippedcode/currency/master/just-a-showoff.png)\nCurrency Conversion with Smart Currency Library is as simple as:\n```php\n$currency = new Secrethash\\Currency\\Currency;\n\necho $currency-\u003econvert(100, 'USD', 'INR');\n```\n**Follow the Steps:**\n1. Require the composer autoloader:\n```php\n\u003c?php\nrequire ('vendor/autoload.php’);\n```\n2. Call the Package:\n```php\n$currency = new Secrethash\\Currency\\Currency;\n$currency-\u003econvert(100, 'USD’, 'INR’);\n$currency-\u003econvertWith('exchangerate’, 100, 'INR’, 'USD’);\n```\n\n# Roadmap\n- [ ] Laravel Service Provider\n- [ ] Laravel Publish Config\n- [ ] Publishing Configuration file\n- [x] Smart Caching (via [gilbitron/PHP-SimpleCache](https://github.com/gilbitron/PHP-SimpleCache))\n- [x] Self-Drive Mode\n- [x] Composer Project\n- [x] Extensive Providers\n\n# Installation\nJust run:\n```bash\ncomposer require secrethash/currency\n```\n# Function explained:\n### 1. convert();\n ```php\nconvert(int $amount, string $from, string $to)\n```\n Three Parameters, namely - Amount, From, To\n-   `$amount`: *(Type: Integer)* Accepts the amount to convert.    \n-   `$from`: *(Type: String)* Accepts String with Currency Code (ex: `USD` or `INR`)\n-   `$to`: *(Type: String)* Accepts String with Currency Code (ex: `USD` or `INR`)\n### 2. convertWith();\n```php\nconvertWith(string $provider, int $amount, string $from, string $to)\n```\nSame as `convert()` except an additional provider parameter.\n-   `$provider`: *(Type: String)* API Service Provider that is Available (ex: `exchangerate` or `currencylayer`).\n-   `$amount`: *(Type: Integer)* Amount to be converted\n-   `$from`: *(Type: String)* Accepts String with Currency Code (ex: `USD` or `INR`)\n-   `$to`: *(Type: String)* Accepts String with Currency Code (ex: `USD` or `INR`)\n\n# License\nThis project is licensed under (ɔ) Copyleft GNU GPL v3.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsecrethash%2Fcurrency","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsecrethash%2Fcurrency","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsecrethash%2Fcurrency/lists"}