Download the PHP package flextype-components/number without Composer
On this page you can find all versions of the php package flextype-components/number. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download flextype-components/number
More information about flextype-components/number
Files in flextype-components/number
Package number
Short Description The Number Component contains methods that can be useful when working with numbers.
License MIT
Homepage https://github.com/flextype-components/curl
Informations about the package number
Number Component
The Number Component contains methods that can be useful when working with numbers.
Installation
Usage
Converts a number of bytes to a human readable number by taking the number of that unit that the bytes will go into it.
Converts a file size number to a byte value.
Converts a number into a more readable human-type number.
Checks if the value is between the minimum and maximum (min & max included).
Checks the value for an even number.
Checks if the value is greather than a given minimum.
Checks if the value is smaller than a given maximum.
Checks if the value is not greater than or equal a given maximum.
Checks if the value is greater than or equal to a given minimum.
Checks the value for an odd number.
Transforms a number by masking characters in a specified mask format, and ignoring characters that should be injected into the string without matching a character from the original string (defaults to space).
Formats a number by injecting non-numeric characters in a specified format into the string in the positions they appear in the format.
Formats a phone number.
Formats (masks) a credit card.
Formats a credit card expiration string. Expects 4-digit string (MMYY).
License
See LICENSE