library converter
Convert units
clarkeash/converter
Convert units
- Sunday, September 17, 2017
- by clarkeash
- Repository
- 1 Watchers
- 1 Stars
- 0 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
Convert
Convert metrics from one form to another., (*1)
, (*2)
Installation
composer require clarkeash/converter
Usage
Convert Memory Sizes
Convert::size()->of(500)->megabytes()->to()->gigabytes(); // 0.5
Convert::size()->of(2)->mebibytes()->to()->bytes(); // 2097152
See the Size class to see all the available conversion methods., (*3)
Convert Time
Convert::time()->from(3)->weeks()->to()->days(); // 21
Convert::time()->from(4)->scores()->and(7)->years()->into()->years(); // 87
See the Time class to see all the available conversion methods., (*4)
dev-master
9999999-dev
Convert units
Sources
Download
MIT
The Development Requires
by
Ashley Clarke