Download the PHP package ondris/latte-unit-conversion without Composer
On this page you can find all versions of the php package ondris/latte-unit-conversion. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ondris/latte-unit-conversion
More information about ondris/latte-unit-conversion
Files in ondris/latte-unit-conversion
Download ondris/latte-unit-conversion
More information about ondris/latte-unit-conversion
Files in ondris/latte-unit-conversion
Vendor ondris
Package latte-unit-conversion
Short Description Unit conversion filters for Latte
License MIT
Package latte-unit-conversion
Short Description Unit conversion filters for Latte
License MIT
Please rate this library. Is it a good library?
Informations about the package latte-unit-conversion
Latte Unit Conversion
Simple Latte extension providing unit conversion filters for Nette and Latte applications.
Installation
Install the package via Composer:
Register the extension in your config.neon:
Configuration
You can set the default precision used by all filters:
Default value:
Available Filters
kiloToPound
Converts kilograms to pounds.
poundToKilo
Converts pounds to kilograms.
kiloToGram
Converts kilograms to grams.
gramToKilo
Converts grams to kilograms.
kiloToOunce
gramToPound
gramToOunce
poundToGram
poundToOunce
ounceToKilo
ounceToGram
ounceToPound
meterToKilo
meterToInch
meterToFoot
meterToYard
meterToMile
kiloToMeter
kiloToInch
kiloToFoot
kiloToYard
kiloToMile
inchToMeter
inchToKilo
inchToFoot
inchToYard
inchToMile
footToMeter
footToKilo
footToInch
footToYard
footToMile
yardToMeter
yardToKilo
yardToInch
yardToFoot
yardToMile
mileToMeter
mileToKilo
mileToInch
mileToFoot
mileToYard
Examples
Output:
With precision:
Output:
Using configured precision:
Output:
Requirements
- PHP 8.2+
- Latte 3+
- Nette DI 3+
License
MIT License
All versions of latte-unit-conversion with dependencies
PHP Build Version
Package Version
The package ondris/latte-unit-conversion contains the following files
Loading the files please wait ...