php-prices | A simple PHP library for complex monetary prices management
kandi X-RAY | php-prices Summary
kandi X-RAY | php-prices Summary
php-prices is a PHP library. php-prices has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.
Version 2.x This new major version is shifting the package towards more flexibility and configuration possibilities in general. One of the main differences is that we replaced moneyphp/money with brick/money under the hood. This introduces a ton of breaking changes, mainly on the instantiation methods that now reflect brick/money's API in order to keep things developer friendly. The 1.x branch will still be available and maintained for a while, but we strongly recommend updating to 2.x. Using the underlying brick/money library, this simple Price object allows to work with complex composite monetary values which include exclusive, inclusive, VAT (and other potential taxes) and discount amounts. It makes it safer and easier to compute final displayable prices without having to worry about their construction.
Version 2.x This new major version is shifting the package towards more flexibility and configuration possibilities in general. One of the main differences is that we replaced moneyphp/money with brick/money under the hood. This introduces a ton of breaking changes, mainly on the instantiation methods that now reflect brick/money's API in order to keep things developer friendly. The 1.x branch will still be available and maintained for a while, but we strongly recommend updating to 2.x. Using the underlying brick/money library, this simple Price object allows to work with complex composite monetary values which include exclusive, inclusive, VAT (and other potential taxes) and discount amounts. It makes it safer and easier to compute final displayable prices without having to worry about their construction.
Support
Quality
Security
License
Reuse
Support
php-prices has a low active ecosystem.
It has 100 star(s) with 7 fork(s). There are 6 watchers for this library.
It had no major release in the last 12 months.
There are 0 open issues and 1 have been closed. There are 1 open pull requests and 0 closed requests.
It has a neutral sentiment in the developer community.
The latest version of php-prices is v2.0.1
Quality
php-prices has 0 bugs and 0 code smells.
Security
php-prices has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
php-prices code analysis shows 0 unresolved vulnerabilities.
There are 0 security hotspots that need review.
License
php-prices is licensed under the MIT License. This license is Permissive.
Permissive licenses have the least restrictions, and you can use them in most projects.
Reuse
php-prices releases are available to install and integrate.
Installation instructions, examples and code snippets are available.
It has 1402 lines of code, 167 functions and 27 files.
It has medium code complexity. Code complexity directly impacts maintainability of the code.
Top functions reviewed by kandi - BETA
kandi has reviewed php-prices and discovered the below as its top functions. This is intended to give you an instant insight into php-prices implemented functionality, and help decide if they suit your requirements.
- Creates a new modifier .
- Applies the action .
- Get exclusive after
- Sets the vat .
- Extract currency from original string
- Set price formatter
- Convert value to money .
- Serialize the object .
- Convert value to money .
- Parses a price .
Get all kandi verified functions for this library.
php-prices Key Features
No Key Features are available at this moment for php-prices.
php-prices Examples and Code Snippets
No Code Snippets are available at this moment for php-prices.
Community Discussions
No Community Discussions are available at this moment for php-prices.Refer to stack overflow page for discussions.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install php-prices
Each Price object has a Brick\Money\Money instance which is considered to be the item's unchanged, per-unit & exclusive amount. All the composition operations, such as adding VAT or applying discounts, are added on top of this base value. It is common practice and always best to work with amounts represented in the smallest currency unit (minor values) such as "cents".
Support
Feel free to suggest changes, ask for new features or fix bugs yourself. We're sure there are still a lot of improvements that could be made, and we would be very happy to merge useful pull requests.
Find more information at:
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page