PHP Package: symfony/clock

Symfony Clock is a PHP library for managing time and dates efficiently with high precision and accuracy.

Current Version: 6.4.24
Last Updated: 2025-07-31
PHP Requirement: >=8.1
Dependencies:
symfony/polyfill
php-fig/log
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

Symfony Clock is a versatile PHP library that provides developers with robust tools to handle time-related operations seamlessly. With its precise time management capabilities, this library ensures accurate timekeeping for applications of any scale. Whether you need to manipulate dates, measure time intervals, or simulate time for testing purposes, Symfony Clock has you covered.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 7.3.0

Download Download v7.3.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/symfony/clock/7.3.0/loader.php';
require_once 'libs/symfony/polyfill/1.33.0/loader.php';
require_once 'libs/php-fig/log/3.0.2/loader.php';

use Symfony\Component\Clock\FrozenClock;
use Symfony\Component\Clock\SystemClock;
use Symfony\Component\Clock\Test\ClockMock;

$obj = new FrozenClock();
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.