PHPackages                             jopmesman/logtimer - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. jopmesman/logtimer

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

jopmesman/logtimer
==================

Simple time logger.

1.0.3(6y ago)135PHPPHP &gt;=5.4.0

Since Aug 26Pushed 6y ago1 watchersCompare

[ Source](https://github.com/jopmesman/TimeLogger)[ Packagist](https://packagist.org/packages/jopmesman/logtimer)[ RSS](/packages/jopmesman-logtimer/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (4)DependenciesVersions (5)Used By (0)

LogTimer
========

[](#logtimer)

This very simple package can be used to time processes in php.

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

[](#installation)

```
composer require jopmesman/logtimer

```

To use the timer
----------------

[](#to-use-the-timer)

Before a process youwish to time.

```
LogTimer::time('Any text');

```

After the process you wish to time, add the same line.

```
LogTimer::time('Any text');

```

At this moment the time between those 2 lines is timed. At the end of the complete script you could get all items you timed.

```
print_r(LogTimer::times());

```

This gives the following result:

```
Array
(
  "Any text" => 2.0019979476929
)

```

Here is complete example:

```
LogTimer::time('Complete process');
LogTimer::time('Get all rows from the database');
$data = getAllDataFromDB();
LogTimer::time('Get all rows from the database');
//Loop over all the rows from the database
LogTimer::time('Looping');
$return = [];
foreach ($data as $row) {
    $return[$row['id']] = $row['name'];
}
LogTimer::time('Looping');
LogTimer::time('Complete process');

print_r(LogTimer::times());

```

The result of the print\_r could someting like

```
Array
(
    [Get all rows from the database] => 1.0011401176453
    [Looping] => 2.0006589889526
    [Complete process] => 3.0018129348755
)

```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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 ~1 days

Total

4

Last Release

2497d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5484430?v=4)[Jop Mesman](/maintainers/jopmesman)[@jopmesman](https://github.com/jopmesman)

---

Top Contributors

[![jopmesman](https://avatars.githubusercontent.com/u/5484430?v=4)](https://github.com/jopmesman "jopmesman (8 commits)")

### Embed Badge

![Health badge](/badges/jopmesman-logtimer/health.svg)

```
[![Health](https://phpackages.com/badges/jopmesman-logtimer/health.svg)](https://phpackages.com/packages/jopmesman-logtimer)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B11.0k](/packages/psr-log)[open-telemetry/api

API for OpenTelemetry PHP.

1941.5M265](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2328.5M323](/packages/open-telemetry-sdk)[illuminated/console-logger

Logging and Notifications for Laravel Console Commands.

8676.7k](/packages/illuminated-console-logger)

PHPackages © 2026

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