2017 © Pedro Peláez
 

package currency-converter

Converts currencies with fixer.io API.

image

byte5digital/currency-converter

Converts currencies with fixer.io API.

  • Friday, June 8, 2018
  • by Naoray
  • Repository
  • 3 Watchers
  • 18 Stars
  • 42 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 14 Versions
  • 31 % Grown

The README.md

A Laravel wrapper for fixer.io

Software License Travis Total Downloads, (*1)

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., (*2)

Install

Laravel Version 5.6+

composer require byte5digital/currency-converter, (*3)

in your .env add your fixer.io api key FIXER_API_KEY=Your_api_key, (*4)

optional php artisan vendor:publish --provider="Byte5\CurrencyConverter\CurrencyConverterServiceProvider", (*5)

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., (*6)

Run the tests with:, (*7)

bash vendor/bin/phpunit, (*8)

Changelog

Please see CHANGELOG for more information what has changed recently., (*9)

Contributing

Please see CONTRIBUTING for details., (*10)

Security

If you discover any security-related issues, please email kkoenig@byte5.de instead of using the issue tracker., (*11)

License

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

The Versions

08/06 2018

dev-master

9999999-dev

Converts currencies with fixer.io API.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Krishan König

laravel converter currency

08/06 2018

dev-dev

dev-dev

Converts currencies with fixer.io API.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Krishan König

laravel converter currency

08/06 2018

2.0.x-dev

2.0.9999999.9999999-dev

Converts currencies with fixer.io API.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Krishan König

laravel converter currency

08/06 2018

2.0

2.0.0.0

Converts currencies with fixer.io API.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Krishan König

laravel converter currency

21/02 2018

1.2.x-dev

1.2.9999999.9999999-dev

Converts currencies with fixer.io API.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Krishan König

laravel converter currency

21/02 2018

v1.2

1.2.0.0

Converts currencies with fixer.io API.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Krishan König

laravel converter currency

21/02 2018

1.1.x-dev

1.1.9999999.9999999-dev

Converts currencies with fixer.io API.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Krishan König

laravel converter currency

21/02 2018

v1.1.5

1.1.5.0

Converts currencies with fixer.io API.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Krishan König

laravel converter currency

08/02 2018

v1.1.4

1.1.4.0

Converts currencies with fixer.io API.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Krishan König

laravel converter currency

08/02 2018

v1.1.3

1.1.3.0

Converts currencies with fixer.io API.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Krishan König

laravel converter currency

14/12 2017

v1.1.2

1.1.2.0

Converts currencies with fixer.io API.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Naoray Kroaths

06/12 2017

v1.1.1

1.1.1.0

Converts currencies with fixer.io API.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Naoray Kroaths

06/12 2017

v1.1

1.1.0.0

Converts currencies with fixer.io API.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Naoray Kroaths

05/12 2017

v1.0

1.0.0.0

Converts currencies with fixer.io API.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Naoray Kroaths