Skip to content

Releases: Skillshare/formatphp

1.0.2

23 Aug 19:00
e6c5322
Compare
Choose a tag to compare

Added

  • Nothing.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Allow use of symfony/console ^6.0 and symfony/process ^6.0.

1.0.1

15 Jun 14:42
1.0.1
34e1e7a
Compare
Choose a tag to compare

Added

  • Nothing.

Changed

  • Use MIT license for use by widest audience possible.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Nothing.

1.0.0

10 Jun 21:34
1.0.0
8bd3657
Compare
Choose a tag to compare

Added

  • Documentation and readiness as a public open source project.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Nothing.

0.7.1

23 May 19:20
4ded2e2
Compare
Choose a tag to compare

Added

  • Nothing.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Disallow the use of string callables in values passed to the formatter. Only array callables and closures are allowed.

0.7.0

11 Feb 17:09
0.7.0
7e2d278
Compare
Choose a tag to compare

Added

  • Provide functionality for formatting locale-appropriate display names with Intl\DisplayNames and FormatPHP::formatDisplayName().

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Nothing.

0.6.0

07 Feb 19:51
0.6.0
4074912
Compare
Choose a tag to compare

Added

  • Implement the dayPeriod property for formatting dates/times.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Multiply percentages by 100 internally to match the behavior of FormatJS.

  • Use the correct calendar and clean up time zones.

0.5.1

01 Feb 18:55
0.5.1
25a89de
Compare
Choose a tag to compare

Added

  • Nothing.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Do not default to narrowSymbol for currencyDisplay.

0.5.0

01 Feb 15:30
0.5.0
af5d303
Compare
Choose a tag to compare

Added

  • Provide functionality for formatting numbers and currency through Intl\NumberFormat, as well as FormatPHP::formatNumber() and FormatPHP::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

21 Jan 19:22
0.4.1
5cb8617
Compare
Choose a tag to compare

Added

  • Nothing.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Ensure non-ascii strings do not break pseudo locales.

0.4.0

21 Jan 18:16
0.4.0
7055bdc
Compare
Choose a tag to compare

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 as FormatPHP::formatDate() and FormatPHP::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 an Intl\Locale using the system default locale.

Changed

  • Update UnableToFormatMessageException to descend from UnableToFormatStringException.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Nothing.