bkubicki/magento2-money-adapter

Adapter for money-php library for Magento 2

1.1.1 2024-11-12 16:48 UTC

This package is auto-updated.

Last update: 2024-12-12 17:01:17 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