Registry / utility / nesbot-carbon

nesbot-carbon

JSON →
library3.12.3phppackagistunverified

An API extension for DateTime that supports 281 different languages.

composer require nesbot/carbon
INSTALL
IMPORT
SIG · NESBOT-CARBON
N
nesbot-carbon
utilityphpv3.12.3
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.

Carbon
use Carbon\Carbon;

Get the current date and time using Carbon.

use Carbon\Carbon; $now = Carbon::now(); echo $now->format('Y-m-d');
Debug
Known issues
breakingCarbon 3.x requires PHP 8.1+; older versions may break.
fix
Upgrade PHP to 8.1+ or use Carbon 2.x.
affects: >=3.0.0
Upgrade
Version history
3.12.3latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
8
Amazon
1
Resources