org_heigl / valueobjects
Some Value-Objects
Installs: 2 096
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 3
Forks: 0
Open Issues: 2
Requires (Dev)
- phpunit/phpunit: ^6.0
This package is auto-updated.
Last update: 2024-11-06 07:48:47 UTC
README
Value Objects
A collection of ValueOpjects that help me make my life easier.
The collection currently includes
- Gis - A component for Geographic shapes like Points, Rectangles, Dimensions, Polygons and Shapes.
- Pixel - A Pixel-Representation
- DPI - A DPI-Representation
Stuff to be converted
$valueObject = new Pixels(2000); $dimension = new DotsPerInch(72); $converter = new Converter(new DotsPerInch(72)); $converter->from(new Pixels(2000)) ->to('\\Org_Heigl\\ValueObjects\\Length\\Meter') ->convert();