PHPackages                             appiusattaprobus/server-timing - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [DevOps &amp; Deployment](/categories/devops)
4. /
5. appiusattaprobus/server-timing

ActiveLibrary[DevOps &amp; Deployment](/categories/devops)

appiusattaprobus/server-timing
==============================

Add Server-Timing header information from your apps

1.0.2(6y ago)126MITPHPPHP &gt;=5.6

Since Apr 27Pushed 6y ago1 watchersCompare

[ Source](https://github.com/appiusattaprobus/server-timing)[ Packagist](https://packagist.org/packages/appiusattaprobus/server-timing)[ RSS](/packages/appiusattaprobus-server-timing/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

Server Timing
=============

[](#server-timing)

Add Server-Timing header information from your apps.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require appiusattaprobus/server-timing
```

Usage
-----

[](#usage)

```
use Appiusattaprobus\ServerTiming\StopWatch;
```

### Whole block

[](#whole-block)

```
StopWatch::start('Task 1');

sleep(1); // do something

StopWatch::stop('Task 1');  // Not necessary. At set headers all timers stop
StopWatch::setTimingHeader();
```

[![server-timing](https://user-images.githubusercontent.com/2347368/80393363-960e7780-88da-11ea-92e9-63d7fb1aaecd.jpg)](https://user-images.githubusercontent.com/2347368/80393363-960e7780-88da-11ea-92e9-63d7fb1aaecd.jpg)

### Closure

[](#closure)

```
$closureTimer = StopWatch::measureFunc('Closure', function () {
    usleep(500000);
});
```

### By parts

[](#by-parts)

```
StopWatch::start('Part');
sleep(1);
StopWatch::pause('Part');
sleep(3);
StopWatch::resume('Part');
sleep(1);
StopWatch::stop('Part');
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~7 days

Total

2

Last Release

2196d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ed2c575e1e3f94e6c170908270298f65e1b82c7723b7b656a54f7e1425204d30?d=identicon)[appiusattaprobus](/maintainers/appiusattaprobus)

---

Top Contributors

[![appiusattaprobus](https://avatars.githubusercontent.com/u/2347368?v=4)](https://github.com/appiusattaprobus "appiusattaprobus (7 commits)")

---

Tags

servertiming

### Embed Badge

![Health badge](/badges/appiusattaprobus-server-timing/health.svg)

```
[![Health](https://phpackages.com/badges/appiusattaprobus-server-timing/health.svg)](https://phpackages.com/packages/appiusattaprobus-server-timing)
```

###  Alternatives

[spatie/laravel-webhook-server

Send webhooks in Laravel apps

1.1k8.8M22](/packages/spatie-laravel-webhook-server)[pragmarx/health

Laravel Server &amp; App Health Monitor and Notifier

2.0k1.0M2](/packages/pragmarx-health)[felixfbecker/language-server-protocol

PHP classes for the Language Server Protocol

22476.7M6](/packages/felixfbecker-language-server-protocol)[clue/socket-raw

Simple and lightweight OOP wrapper for PHP's low-level sockets extension (ext-sockets).

35111.1M48](/packages/clue-socket-raw)[voryx/thruway

Thruway WAMP router core

6771.0M17](/packages/voryx-thruway)[php-mcp/server

PHP SDK for building Model Context Protocol (MCP) servers - Create MCP tools, resources, and prompts

828280.5k25](/packages/php-mcp-server)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
