PHP Package: carbonphp/carbon

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.

Current Version: 3.10.0
Last Updated: 2025-06-12
PHP Requirement: ^8.1
Dependencies:
composer/semver
php-fig/log
⚠️ 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.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 3.10.0

Download Download v3.10.0

Previous Versions

Code Integration Example

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.