Carbon is a PHP library for handling date and time in a simple yet powerful way, offering various functionalities for easy date manipulation and formatting.
⚠️ To ensure full functionality, the above dependencies might be required.
Package Description
Carbon is a versatile PHP library that simplifies date and time handling, providing methods for easy manipulation, comparison, and localization. This library aids in working with time zones, intervals, and date arithmetic efficiently. With Carbon, developers can streamline date-related tasks and enhance the precision and readability of their code.
Make sure to include the correct namespace and class paths for proper usage.
<?php
// Example from PHPlibraries.com
require_once 'libs/carbonphp/carbon/3.10.0/loader.php';
require_once 'libs/composer/semver/3.4.3/loader.php';
require_once 'libs/php-fig/log/3.0.2/loader.php';
use Carbon\Carbon;
$obj = new Carbon();
echo '✅ Test OK: ' . get_class($obj);
?>
We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.
Community Discussion
Ask questions, share tips, or report issues below.