NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #1792 most downloaded on Packagist
Locale-formatted strftime using IntlDateFormatter (PHP 8.1 compatible)
Latest stable
0.7.7
Last release 29 days ago
24 Oct 2026
Ships unpredictably
gaps range from 9 days to 1.9 years
Most releases are documented
notes for 18 of 21 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
21 releases · first in 2022
Drag across the ruler to compare, or tap a release to open it.
Use a two-digit year in %D PR #25
No code modification. PHPDoc signature update: added throws an InvalidArgumentException.
No code modification. PHPDoc signature update: added throws an InvalidArgumentException.
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Don't override the timezone when called with a DateTime object
Don't override the timezone when called with a DateTime object
Use Locale::getDefault() before setlocale(LC_TIME, '0') for get defau…
Use Locale::getDefault() before setlocale(LC_TIME, '0') for get defau…
Minus prefix should also remove space
Standard PHP strftime() also remove leading space when using the minus prefix.
Co-authored-by: Fernando Herrero ininflamable@gmail.com
"Stand-alone" versions of "month in year" and "day of week" formats m…
"Stand-alone" versions of "month in year" and "day of week" formats m…
Test: use assertThat instead assertMatchesRegularExpression
Test: use assertThat instead assertMatchesRegularExpression
Fix fatal error when using the default PHP locale #17
Fix fatal error when using the default PHP locale #17
Thanks to @jonasraoni
Fix fatal error with non-Gregorian locales
Fix fatal error with non-Gregorian locales (#15)
Thanks to @asmecher
Account for different handling of historical dates by ICU and Posix #5 Minimum PHP version in composer.json is incorrect #6
Account for different handling of historical dates by ICU and Posix #5 Minimum PHP version in composer.json is incorrect #6
Thanks to @IMSoP
| Format | Description | Example returned values |
| Format | Description | Example returned values |
|---|---|---|
%k |
Hour in 24-hour format, with a space preceding single digits | 0 through 23 |
v0.4.0 Fixed %k format as specified in documentation
Compare
v0.3.0 Fixed week formats Compare # Choose a tag to compare
v0.3.0 Fixed week formats
Compare
Added documentation of formats Added test for all formats Fixed some formats
Added documentation of formats Added test for all formats Fixed some formats
Automatic run PHPUnit tests with Actions. `bash composer run-script test `
Automatic run PHPUnit tests with Actions.
composer run-script test
Catch exception thrown when creating DateTime object with invalid $timestamp value.
Catch exception thrown when creating DateTime object with invalid $timestamp value.
v0.0.7 Catch exception thrown by DateTime
Compare
Check if $timestamp is DateTimeInterface instance before treating it as integer or string. InvalidArgumentException is never thrown
Check if $timestamp is DateTimeInterface instance before treating it as integer or string. InvalidArgumentException is never thrown
Tranks to @TiberiuD
Using LC_TIME locale if possible will make the function more compatible to the current behaviour.
Using LC_TIME locale if possible will make the function more compatible to the current behaviour.
The Locale class also supports identifiers with dashes and may be more than 5 characters; see https://www.php.net/manual/en/class.locale.php
Thanks to @the-mars
Add support for modifiers to remove leading zeros or convert to spaces #1 Thanks to @the-mars
Add support for modifiers to remove leading zeros or convert to spaces #1 Thanks to @the-mars
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.