Download the PHP package wmde/euro without Composer
On this page you can find all versions of the php package wmde/euro. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor wmde
Package euro
Short Description Value object for representing a positive amount of Euro
License GPL-2.0-or-later
Homepage https://github.com/wmde/Euro
Package euro
Short Description Value object for representing a positive amount of Euro
License GPL-2.0-or-later
Homepage https://github.com/wmde/Euro
Please rate this library. Is it a good library?
Informations about the package euro
Euro
Value Object that represents a positive amount of Euro.
Installation
To add this package as a local, per-project dependency to your project, simply add a
dependency on wmde/euro
to your project's composer.json
file.
Here is a minimal example of a composer.json
file that just defines a dependency on
Euro 1.x:
Usage
Construction
Constructing from Euro cents (int):
Constructing from a Euro amount (float):
Constructing from a Euro amount (string):
Constructing from a Euro amount (int):
Access
Comparison
Running the tests
For tests only
composer test
For style checks only
composer cs
For a full CI run
composer ci
Release notes
1.1.1 (dev)
- Large numbers now cause an InvalidArgumentException rather than a TypeError
1.1.0 (2018-03-21)
- Bumped minimum PHP version from 7.0 to 7.1
1.0.2 (2018-03-20)
- Internal changes to avoid dealing with floats when constructing an Euro object from string
1.0.1 (2018-03-17)
- Fixed rounding issue occurring on some platforms
1.0.0 (2016-07-31)
- Initial release
All versions of euro with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
ext-json Version *
ext-json Version *
The package wmde/euro contains the following files
Loading the files please wait ....