PHP Package: symfony/stopwatch

Symfony Stopwatch component offers a simple API to profile code execution. It allows measuring the elapsed time and memory consumption of specific parts of the code, making it a powerful tool for performance optimization.

Current Version: 7.3.0
Last Updated: 2025-05-29
PHP Requirement: >=8.2
Dependencies:
symfony/dependency-injection
symfony/config
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

Symfony Stopwatch provides an intuitive way to monitor the performance of your PHP application. By measuring the time taken by different sections of your code, you can identify bottlenecks and optimize the performance for a better user experience. The Stopwatch component integrates seamlessly with other Symfony components, making it an essential tool for developers striving for efficient and high-performing applications.

📦 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/stopwatch/7.3.0/loader.php';
require_once 'libs/symfony/dependency-injection/7.3.0/loader.php';
require_once 'libs/symfony/config/7.3.0/loader.php';

use Symfony\Component\Stopwatch\Stopwatch;
use Symfony\Component\DependencyInjection\ContainerBuilder;

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