PHPackages                             secrethash/currency - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. secrethash/currency

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

secrethash/currency
===================

Smart Currency Conversion PHP Script. Saves Quota and Your Money.

0.6.2+75ed261(6y ago)311[1 issues](https://github.com/secrethash/currency/issues)MITPHPPHP &gt;=5.3.0

Since Dec 11Pushed 6y ago2 watchersCompare

[ Source](https://github.com/secrethash/currency)[ Packagist](https://packagist.org/packages/secrethash/currency)[ Docs](https://github.com/secrethash/currency)[ RSS](/packages/secrethash-currency/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

[![Currency Tool](https://raw.githubusercontent.com/clippedcode/currency/master/display.jpg)](https://raw.githubusercontent.com/clippedcode/currency/master/display.jpg)

Introduction
============

[](#introduction)

Smart 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.

You 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"=>true` and run the Currency Conversion like a charm.

Usage
=====

[](#usage)

[![Just a Show-off](https://raw.githubusercontent.com/clippedcode/currency/master/just-a-showoff.png)](https://raw.githubusercontent.com/clippedcode/currency/master/just-a-showoff.png)Currency Conversion with Smart Currency Library is as simple as:

```
$currency = new Secrethash\Currency\Currency;

echo $currency->convert(100, 'USD', 'INR');
```

**Follow the Steps:**

1. Require the composer autoloader:

```
