Skip to content

bartoszkubicki/magento2-money-adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BKubicki Magento money-php library adapter

Overview

Library is small adapter for money-php library. Provides two implementations of BKubicki\Magento2MoneyAdapter\CurrencyAwareMoneyFactoryInterface.

  • BaseCurrencyAwareMoneyFactory gives you money object with base currency (either global or website)
  • CurrentCurrencyAwareMoneyFactory gives you money object with current currency (base or displayed if differs)

Prerequisites

  • PHP 7.2 / 7.3 / 7.4

Installation

To install the extension use the following commands:

 composer require bkubicki/magento2-money-adapter

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Changelog

See changelog here.

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details.

TODO

  • add integration tests for factories

About

Adapter for money-php library for Magento 2

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages