Download the PHP package danielme85/laravel-cconverter without Composer

On this page you can find all versions of the php package danielme85/laravel-cconverter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-cconverter

Laravel Currency Converter

GitHub PHP from Packagist GitHub release GitHub tag Travis (.org) Codecov

A simple currency conversion plug-in for Laravel 5.5+ 💵
Example usage: https://danielmellum.com/projects/currency-converter

Version testing and requirements

Version Tested with
dev-master Laravel 6.0
v0.3.* Laravel 6.0
v0.2.* Laravel 5.6
v0.1.* Laravel 5.5
v0.0.7 Laravel 5.4

If you are having composer requirement issues using the latest release and Laravel < v5.4, try the v0.0.7 release.

Please note:

Installation

Configuration

You can publish this vendor config file if you would like to make changes to the default config.

All config variables can also be changed in your local .env file:

Usage

There are static class "shortcuts" to convert or get one-time Currency series.

Working with multiple values

I would highly recommend creating a model instance and the non-static functions getRates() & convert() when doing multiple conversion or getting multiple currency series for the best performance. The currency rates are stored in the provider model by date/base-currency for quick and easy access.

You can override the settings when/if you create a new instance.

Use the three lettered ISO4217 code for to/from currencies: http://en.wikipedia.org/wiki/ISO_4217

Money Formatting

The package: gerardojbaez/money is included for an easier and more powerful Money Formatter, excellent alternative to money_format(). You can get the values of an conversion by setting round='money' (money formatter overrides rounding).

You can also get the money formatter itself trough the static Currency function:

This Money Formatter also ships with a handy helper function.

See Money Formatter github page for more information and usage. https://github.com/gerardojbaez/money

Supported functions per API

Default API is: The European Central Bank

Config var API HTTPS Historical Sign-up required URL
eurocentralbank The European Central Bank yes yes no https://sdw-wsrest.ecb.europa.eu/help/
openexchange OpenExchangeRates.com non-free non-free yes https://openexchangerates.org
currencylayer *CurrencyLayer non-free yes yes https://currencylayer.com
fixer *Fixer.io yes yes yes https://fixer.io

*CurrencyLayer and Fixer.io is the same company now, and it seems like the services have become one and the same.

Disclaimer

Please take note of the Terms of Use for the different data sources.
https://policies.yahoo.com/us/en/yahoo/terms/product-atos/yql/index.htm
https://currencylayer.com/terms
https://openexchangerates.org/terms

This code is released per the MIT open source license: http://opensource.org/licenses/MIT The actual rates and conversion will vary between the data sources. In addition I am no math professor, so you should probably not use this for super serious multi-billion dollar investments. If you are gonna spend your hard earned billion dollars on the money market, you should probably use something like this: http://www.forex.com/forex.html


All versions of laravel-cconverter with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
illuminate/support Version >=5.4
guzzlehttp/guzzle Version ^6.0
gerardojbaez/money Version ^0.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package danielme85/laravel-cconverter contains the following files

Loading the files please wait ....