All Projects → byte5digital → currency-converter

byte5digital / currency-converter

Licence: MIT License
Converts currencies with fixer.io API.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to currency-converter

Ratesapi
Forex conversion exchange rates api for free
Stars: ✭ 144 (+657.89%)
Mutual labels:  currency-converter
HexBot
A Relatively Simply Awesome Discord bot with Music, Games, Comics, Memes and other cool features. This bot is made in Python 3.8 using discord.py
Stars: ✭ 109 (+473.68%)
Mutual labels:  currency-converter
currencies
An exchange rates currency converter for Android
Stars: ✭ 47 (+147.37%)
Mutual labels:  currency-converter
Ruby Scripts
A collection of ruby scripts for those who live in the command line
Stars: ✭ 234 (+1131.58%)
Mutual labels:  currency-converter
salaryconverter
Equivalent salary converter using PPP
Stars: ✭ 42 (+121.05%)
Mutual labels:  currency-converter
Curry
Android currency conversion library
Stars: ✭ 24 (+26.32%)
Mutual labels:  currency-converter
Swap
💱 Currency exchange rates library
Stars: ✭ 1,195 (+6189.47%)
Mutual labels:  currency-converter
historical-bank-ruby
A Ruby Bank that serves historical exchange rates
Stars: ✭ 14 (-26.32%)
Mutual labels:  currency-converter
Coinc
💰💱Alfred Workflow for currencies conversion
Stars: ✭ 38 (+100%)
Mutual labels:  currency-converter
php-currency-api
Standardized wrapper for popular currency rate APIs. Currently supports FixerIO, CurrencyLayer, Open Exchange Rates and Exchange Rates API.
Stars: ✭ 17 (-10.53%)
Mutual labels:  currency-converter
Soulvercore
A powerful Swift framework for evaluating mathematical expressions
Stars: ✭ 245 (+1189.47%)
Mutual labels:  currency-converter
fixred
Fix outdated links in files with redirect URLs
Stars: ✭ 35 (+84.21%)
Mutual labels:  fixer
GoCurrency
Simple currency converter. Insert an amount, what currency to convert from and what currency to convert to.
Stars: ✭ 29 (+52.63%)
Mutual labels:  currency-converter
Currency Converter Swift3.0 Viper
Calculates money quick and easy way to see live foreign exchange rates (Based on swift 4.2, viper architecture and special thanks to https://github.com/hakanensari/fixer-io for conversion API)
Stars: ✭ 198 (+942.11%)
Mutual labels:  currency-converter
alfred-currency-conversion
Alfred 4 Workflow - See foreign exchange rates and currency conversion
Stars: ✭ 149 (+684.21%)
Mutual labels:  currency-converter
Alfred Calculate Anything
Alfred Workflow to calculate anything with natural language
Stars: ✭ 92 (+384.21%)
Mutual labels:  currency-converter
psr2r-sniffer
A PSR-2-R code sniffer and code-style auto-correction-tool - including many useful additions
Stars: ✭ 32 (+68.42%)
Mutual labels:  fixer
python-forex-quotes
Library to fetch and parse realtime Forex quotes and convert currencies
Stars: ✭ 25 (+31.58%)
Mutual labels:  currency-converter
MKT
Exchange Price Service , Stocks , Cryptocurrency,Stock prediction and more
Stars: ✭ 27 (+42.11%)
Mutual labels:  currency-converter
javascript-forex-quotes
JavaScript Library for fetching realtime forex quotes.
Stars: ✭ 38 (+100%)
Mutual labels:  currency-converter

A Laravel wrapper for fixer.io

Software License Travis Total Downloads

Important: Since fixer.io updated their API you have to register for an account to use this package! This package does not support premium features of fixer.io yet! If you are using fixer.io premium's features, you might not even need this package anymore => take a look at the /convert endpoint.

Install

Laravel Version 5.6+

composer require byte5digital/currency-converter

in your .env add your fixer.io api key FIXER_API_KEY=Your_api_key

optional php artisan vendor:publish --provider="Byte5\CurrencyConverter\CurrencyConverterServiceProvider"

Usage

// Converting currencies
Currency::convert(100, 'EUR')->into('USD');

// get currency rates
Currency::getLatestRates();

// get rates for different base (default: EUR)
Currency::setBase('USD')->getLatestRates();

// get specific currency rates
Currency::getLatestRates(['USD', 'GBP']);
Currency::getLatestRates('USD');

// get historical currency rates
Currency::getHistoricalRates('2000-01-03');
Currency::getHistoricalRates(Carbon::yesterday());
Currency::getHistoricalRates('2000-01-03', ['USD', 'GBP']);

Testing

currently not working => did not have the time to update tests after fixer.io Api update.

Run the tests with:

vendor/bin/phpunit

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security-related issues, please email [email protected] instead of using the issue tracker.

License

The MIT License (MIT). Please see License File for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].