⚙️ Installation
Laravel Currency Formatter is a Laravel package designed to format monetary values according to different global currencies. This section outlines how to install the package and ensure it meets all necessary requirements.
Requirements
Before proceeding with the installation, make sure your development environment meets the following requirements:
- PHP: Laravel Currency Formatter requires PHP. Specific versions compatible with the package are not mentioned in the source code. Developers should ensure compatibility with their Laravel application's PHP version.
- Laravel: This package is designed for Laravel applications. It requires Laravel versions 7.0, 8.0, 9.0, or 10.0. Ensure your application is developed with one of these Laravel versions.
Ensure that your application's composer.json
includes compatible versions of illuminate/support
:
"require": {
"illuminate/support": "^7.0|^8.0|^9.0|^10.0"
}
Installing Laravel Currency Formatter
To install the Laravel Currency Formatter package, run the following command in your project's root directory:
composer require magarrent/laravel-currency-formatter
This command utilizes Composer to add the Laravel Currency Formatter package to your project dependencies and automatically handles the package installation.
After successfully completing the installation, the package is ready for use within your Laravel application, providing an intuitive API for formatting monetary values according to different global currencies.
Next Steps: After installation, you may proceed to configure and utilize the package within your application. Refer to the Usage section for details on formatting currencies with the Laravel Currency Formatter.
This documentation should assist developers in understanding the steps and requirements for installing the Laravel Currency Formatter package, enabling them to integrate currency formatting capabilities into their Laravel applications effectively.