bkubicki/magento2-money-adapter

Adapter for money-php library for Magento 2

1.1.0 2022-12-08 10:37 UTC

This package is auto-updated.

Last update: 2024-10-08 15:03:49 UTC


README

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