Releases: Skillshare/formatphp
Releases · Skillshare/formatphp
1.0.2
1.0.1
1.0.0
0.7.1
0.7.0
0.6.0
0.5.1
0.5.0
Added
- Provide functionality for formatting numbers and currency through
Intl\NumberFormat
, as well asFormatPHP::formatNumber()
andFormatPHP::formatCurrency()
convenience methods. - Add
UnableToFormatNumberException
thrown when we're unable to format a number string.
Changed
- Sort extracted messages descending by key, using a natural, case-insensitive sorting algorithm.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
0.4.1
0.4.0
Added
- Add
Intl\NumberFormatOptions
to allow users to configure number string formatting. - Add
Intl\DateTimeFormatOptions
to allow users to configure date and time string formatting. - Provide functionality for formatting dates and times through
Intl\DateTimeFormat
, as well asFormatPHP::formatDate()
andFormatPHP::formatTime()
convenience methods. - Add
UnableToFormatStringException
from which other formatting exceptions will descend. - Add
UnableToFormatDateTimeException
thrown when we're unable to format a date or time string. - Allow instantiation of
FormatPHP
without configuration or message collection instances; FormatPHP will use the system's default locale, in this case.- Instantiation of
Intl\Locale
without a locale argument will default to the system default locale. - Instantiation of
Config
without a locale argument will create anIntl\Locale
using the system default locale.
- Instantiation of
Changed
- Update
UnableToFormatMessageException
to descend fromUnableToFormatStringException
.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.