Download the PHP package victoravelar/geld without Composer

On this page you can find all versions of the php package victoravelar/geld. 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 geld

Geld

Bring currency exchange rates to your Laravel application

Latest Version on Packagist Build Status Coverage Status Quality Score Total Downloads

Install

Via Composer

Getting started

Geld allows you to pull and store currency exchange rates using Fixer.io as source, it is highly configurable and it solely depends on your needs.

Usage

Set your Fixer.io API key as an environment variable for your project using FIXER_API_KEY as name.

Configuration

To check the configuration options, please refer to config/geld.php where you will find the available options and a detailed explanation of the purpose of each one of them.

If you are ok with the defaults then you are good to go but if you desire to change something run php artisan vendor:publish and select GeldServiceProvider from the list.

The geld.php file will be published to the Laravel default config folder.

Setting up the scheduler

To be able to use Task Scheduling in laravel you need to start Cron in your server, you can follow the introduction of the related Laravel documentation for a detailed explanation.

Pulling the exchange rates

If you are using a free Fixer.io account, you have access to hourly updates and it is recommended to pull the rates as often as possible.

Copy and paste the following code into your app/Console/Kernel.php file to start pulling rates every hour.

This snippet instructs your Laravel application to pull the rates every hour 5 minutes past the hour.

The history table

This table will potentially become a huge information container (if enabled) as every hour it will pull new records from the API, the history table is meant to solve some problems when displaying or calculating entries performed on a certain day at a certain time or for use cases where having access to older rates for a currency is required.

If you only need the latest exchange rates then you can disable the history storage by setting the history_mode configuration variable to false.

Retention period

We ship a command that soft deletes records older than the defined retention period which you can change using the retention configuration variable.

To schedule the execution of this command copy and paste the following snippet in the app/Console/Kernel.php file.

Data incineration

When gone means gone

Geld also chips an incinerator, this command will hard delete the records older than the defined incineration period, you can control this time window using the incinerate_after configuration variable.

If you don't want to hard delete information from the history table, you can disable the incinerator by setting the incinerate configuration variable to false.

To schedule the execution of this command copy and paste the following snippet in the app/Console/Kernel.php file.

Events

After every successful pull from Fixer.io, Geld will dispatch a RatesUpdated event that you can hook into.

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

Contributing

Please see CODE_OF_CONDUCT for details.

Security

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

Credits

License

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


All versions of geld with dependencies

PHP Build Version
Package Version
Requires php Version ~7.2
ext-json Version *
victoravelar/fixer-exchange Version ^1.0
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 victoravelar/geld contains the following files

Loading the files please wait ....