Download the PHP package notchafrica/laravel-toolkit without Composer
On this page you can find all versions of the php package notchafrica/laravel-toolkit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download notchafrica/laravel-toolkit
More information about notchafrica/laravel-toolkit
Files in notchafrica/laravel-toolkit
Package laravel-toolkit
Short Description This is my package laravel-toolkit
License MIT
Homepage https://github.com/notchafrica/laravel-toolkit
Informations about the package laravel-toolkit
Laravel-toolkit
This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
Installation
You can install the package via composer:
You can publish and run the migrations with:
You can publish the config file with:
This is the contents of the published config file:
Optionally, you can publish the views using
Currency
The Laravel Currency Toolkit makes it easy to implement multi-currency pricing into your application and store the exchange data for fast real-time conversions.
Usage
The simplest way to use these methods is through the helper function currency()
or by using the facade. For the examples below we will use the helper method.
Converting
This is a shortcut to the most commonly used convert
method, which converts the given amount into the provided currency.
Arguments:
$amount
- The float amount to convert
$from
- The current currency code of the amount. If not set, the application default will be used (see config/notchpay-toolkit.php
file).
$to
- The currency code to convert the amount to. If not set, the user-set currency is used.
$format
- Should the returned value be formatted.
Usage:
Formatting
Quickly parse a given amount into the proper currency format. This is a shortcut to the most commonly used format
method.
Manage
Easily add, update, or delete currencies from the default storage. This is extremely helpful when there are changes to currency data, such as symbols and such.
Arguments:
Seed
Used to seed currencies in local database
Updating Exchange
Update exchange rates from restuniverse.com An API key is needed to use Rest Universe. Add yours to the config file.
Note: Yahoo has discontinued the use of their exchange rate API, so it has been removed from the package.
Cleanup
Used to clean the Laravel cached exchanged rates and refresh it from the database. Note that cached exchanged rates are cleared after they are updated using one of the command above.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- chapdel
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-toolkit with dependencies
illuminate/contracts Version ^9.0|^10.0
rennokki/laravel-eloquent-query-cache Version ^3.4
spatie/laravel-package-tools Version ^1.13.0