Download the PHP package lokeland/shipping-value-objects without Composer
On this page you can find all versions of the php package lokeland/shipping-value-objects. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lokeland/shipping-value-objects
More information about lokeland/shipping-value-objects
Files in lokeland/shipping-value-objects
Package shipping-value-objects
Short Description Collection of value objects regularly used when working with products and shipping.
License MIT
Homepage https://github.com/lokeland/shipping-value-objects
Informations about the package shipping-value-objects
Value objects for working with shipping attributes
This library contains a set of value objects regularly used when working with products and shipping.
In addition to that it also comes with a couple of custom collections extended from Illuminate\Collections
(from Laravel).
Things to note:
- All operations on value objects are immutable.
- Only the most relevant (metric) units is added, but you're welcome to submit a pull request.
Installation
You can install the package via composer:
Usage
Value objects
Weight
Note Values are stored as grams internally
Measurement
Note Values are stored as millimeters internally
Dimensions
Shipping attributes
Volume
Note Values are stored as cubic millimeters internally
Collections
Measurement collection
Weight collection
Min and max
When adding or subtracting a value, you can provide min/max as the second arguments, like this:
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Jarand
- All Contributors
Made using package skeleton from Spatie.
License
The MIT License (MIT). Please see License File for more information.