You can add your custom formatter during object creation with the factory
use Budgegeria\IntlFormat\Factory;
$intlFormatter = (new Factory())->createIntlFormat('en_US', [new MyCustomFormatter()]);You need to update your PHP version.
You need to update your PHP version.
An implementation of a sprintf function that uses intl-format was added. It uses the default locale of the system.
PrecisionNumberFormatter supports new type specifiers
*number_halfway_up
*number_halfway_down
*number_ceil
*number_floor
*number_halfeven
intlFormat->format('Today\'s number is %02.2number_halfway_up', 1.225); // '1,23'
intlFormat->format('Today\'s number is %02.2number_halfway_down', 1.225); // '1,22'
intlFormat->format('Today\'s number is %02.2number_halfeven', 1.225); // '1,22'
intlFormat->format('Today\'s number is %02.2number_ceil', 1.221); // '1,23'
intlFormat->format('Today\'s number is %02.2number_floor', 1.229); // '1,22'You need to update your PHP version.
timeseries_* type specifiers got removed. Use the timezone_* type specifiers.
- Added
mixedtype in\Budgegeria\IntlFormat\IntlFormatInterface::format() - Added
mixedtype in\Budgegeria\IntlFormat\Formatter\FormatterInterface::formatValue()