Download the PHP package becker/conversion without Composer
On this page you can find all versions of the php package becker/conversion. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download becker/conversion
More information about becker/conversion
Files in becker/conversion
Download becker/conversion
More information about becker/conversion
Files in becker/conversion
Vendor becker
Package conversion
Short Description Laravel Unit Conversion
License MIT
Homepage https://github.com/becker/conversion
Package conversion
Short Description Laravel Unit Conversion
License MIT
Homepage https://github.com/becker/conversion
Please rate this library. Is it a good library?
Informations about the package conversion
Laravel Unit Conversion
This package helps to convert units. It was forked from abhimanyu003/conversion repository.
Units supported
- Acceleration
- Angle
- Area
- Storage
- Current
- Fuel
- Length
- Mass
- Pressure
- Speed
- Temperature
- Time
- Voltage
- Volume
Installation
Register the Service Provider
NOTE: You can skip this step if you are using Laravel 5.5 or higher. The package is automatically registered, due to the package discovery feature.
Open up the config/app.php
and register the new Service Provider:
You can also register the Alias:
How to use
Example:
-
Converting MB to KB
-
Converting mm to cm
- Converting kg to g
Formatting results:
Example:
Conversion Chart
Acceleration
- METRE_PER_SECOND_SQUARE
Angle
- TURN
- RADIAN
- DEGREE
- GRADIAN
Area
- SQUARE_METER
- HECTARE
- SQUARE_KILOMETER
- SQUARE_INCH
- SQUARE_FEET
- SQUARE_YARD
- ACRE
- SQUARE_MILE
Storage
- BIT
- BYTE
- KILOBIT
- KILOBYTE
- MEGABIT
- MEGABYTE
- GIGABIT
- GIGABYTE
- TERABIT
- TERABYTE
- PETABIT
- PETABYTE
Current
- STATAMPERE
- MICROAMPERE
- MILLIAMPERE
- AMPERE
- ABAMPERE
- KILOAMPERE
Fuel
- KILOMETERS_PER_LITRE
- LITRE_PER_100_KILOMETER
- MILES_PER_GALLON
- US_MILES_PER_GALLON
Length
- MILLIMETER
- CENTIMETER
- METER
- KILOMETER
- INCH
- FOOT
- YARD
- MILE
- NAUTICAL_MILE
Mass
- MICROGRAM
- MILLIGRAM
- GRAM
- KILOGRAM
- METRIC_TON
- OUNCE
- POUND
- STONE
- SHORT_TON
- LONG_TON
Pressure
- PASCAL
- KILOPASCAL
- MEGAPASCAL
- BAR
- MILLIMETERS_OF_MERCURY
- INCHES_OF_MERCURY
- POUNDS_PER_SQUARE_INCH
- ATMOSPHERE
Speed
- METER_PER_SECOND
- KILOMETERS_PER_HOUR
- FEET_PER_SECOND
- MILES_PER_HOUR
- KNOT
Temperature
- CELSIUS
- FAHRENHEIT
- KELVIN
Time
- NANOSECOND
- MICROSECOND
- MILLISECOND
- SECOND
- MINUTE
- HOUR
- DAY
- WEEK
- MONTH
- YEAR
- DECADE
- CENTURY
- MILLENIUM
Voltage
- VOLT
- KILOVOLT
Volume
- MILLILITRE
- LITRE
- CUBIC_METER
- GALLON
- QUART
- PINT
- TABLESPOON
- TEASPOON
- US_GALLON
- US_QUART
- US_PINT
- US_CUP
- US_OUNCE
- US_TABLESPOON
- US_TEASPOON
- CUBIC_INCH
- CUBIC_FOOT
Contribute
Feel free to contribute and update the repository.
All versions of conversion with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.1
The package becker/conversion contains the following files
Loading the files please wait ....