Skip to content

Tags: formatphp/formatphp

Tags

1.0.2

Toggle 1.0.2's commit message

Verified

This commit was signed with the committer’s verified signature. The key has expired.
ramsey Ben Ramsey
chore: prepare release 1.0.2

1.0.1

Toggle 1.0.1's commit message

Verified

This tag was signed with the committer’s verified signature.
ramsey Ben Ramsey
Tag for 1.0.1

1.0.0

Toggle 1.0.0's commit message

Verified

This tag was signed with the committer’s verified signature.
ramsey Ben Ramsey
Tag for 1.0.0

0.7.1

Toggle 0.7.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix: disallow string callables (Skillshare#53)

0.7.0

Toggle 0.7.0's commit message

Verified

This tag was signed with the committer’s verified signature.
ramsey Ben Ramsey
skillshare/formatphp 0.7.0

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

Toggle 0.6.0's commit message

Verified

This tag was signed with the committer’s verified signature.
ramsey Ben Ramsey
skillshare/formatphp 0.6.0

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

Toggle 0.5.1's commit message

Verified

This tag was signed with the committer’s verified signature.
ramsey Ben Ramsey
skillshare/formatphp 0.5.1

Added
-----

- Nothing.

Changed
-------

- Nothing.

Deprecated
----------

- Nothing.

Removed
-------

- Nothing.

Fixed
-----

- Do not default to `narrowSymbol` for `currencyDisplay`.

0.5.0

Toggle 0.5.0's commit message

Verified

This tag was signed with the committer’s verified signature.
ramsey Ben Ramsey
skillshare/formatphp 0.5.0

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

Toggle 0.4.1's commit message

Verified

This tag was signed with the committer’s verified signature.
ramsey Ben Ramsey
skillshare/formatphp 0.4.1

Added
-----

- Nothing.

Changed
-------

- Nothing.

Deprecated
----------

- Nothing.

Removed
-------

- Nothing.

Fixed
-----

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

0.4.0

Toggle 0.4.0's commit message

Verified

This tag was signed with the committer’s verified signature.
ramsey Ben Ramsey
skillshare/formatphp 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 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.