Registry / utility / fightbulc-moment

fightbulc-moment

JSON →
library1.35.0phppackagistunverified

Parse, validate, manipulate, and display dates in PHP with i18n support, inspired by moment.js.

composer require fightbulc/moment
INSTALL
IMPORT
SIG · FIGHTBULC-MOMENT
F
fightbulc-moment
utilityphpv1.35.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Moment
use Moment\Moment;

Create a Moment object and format a date.

use Moment\Moment; $m = new Moment('2023-01-01', 'Europe/Berlin'); echo $m->format('l, F jS Y');
Debug
Known issues
gotchaTimezone must be valid; invalid timezone throws exception.
fix
Use a valid timezone string like 'UTC' or 'America/New_York'.
affects: >=1.0.0
Upgrade
Version history
1.35.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
8
Amazon
1
Resources
fightbulc-moment — pip install fightbulc-moment · libregistry