PHPackages                             effectra/clock - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. effectra/clock

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

effectra/clock
==============

The Effectra Clock package.

v1.0.0(3y ago)1261MITPHPPHP ^8.0.2

Since Jun 19Pushed 3y agoCompare

[ Source](https://github.com/effectra/clock)[ Packagist](https://packagist.org/packages/effectra/clock)[ RSS](/packages/effectra-clock/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (1)

Effectra\\Clock
===============

[](#effectraclock)

This is a PHP class named `Effectra\Clock` that implements the `Psr\Clock\Clock` interface. It provides a simple and standard way to retrieve the current time and timestamp in PHP applications.

Features
--------

[](#features)

- Implements the `Psr\Clock\ClockInterface` interface
- Provides the `now()` method to retrieve the current time as a `DateTimeImmutable` object
- Offers the `timestamp()` method to retrieve the current timestamp as an integer

Usage
-----

[](#usage)

```
// Create a new instance of the Clock class
$clock = new \Effectra\Clock\Clock();

// Get the current time as a DateTimeImmutable object
$currentDateTime = $clock->now();

// Get the current timestamp as an integer
$currentTimestamp = $clock->timestamp();
```

Contributing
------------

[](#contributing)

Contributions are welcome! If you encounter any issues or have suggestions for improvements, please feel free to submit a pull request or open an issue on the GitHub repository.

License
-------

[](#license)

This package is open-source and available under the [MIT License](https://opensource.org/licenses/MIT). "# clock"

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

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

Unknown

Total

1

Last Release

1111d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7e6219ae87e98df8783b2f595b013035dd183c0712afd24045a8acf0a40c3bdf?d=identicon)[effectra](/maintainers/effectra)

---

Top Contributors

[![BMTmohammedtaha](https://avatars.githubusercontent.com/u/95439605?v=4)](https://github.com/BMTmohammedtaha "BMTmohammedtaha (2 commits)")

---

Tags

clockphppsr

### Embed Badge

![Health badge](/badges/effectra-clock/health.svg)

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

###  Alternatives

[symfony/symfony

The Symfony PHP framework

31.4k87.2M2.2k](/packages/symfony-symfony)[ecotone/ecotone

Enterprise architecture layer for Laravel and Symfony — CQRS, Event Sourcing, Durable Workflows (Sagas, Orchestrators), Projections, and Outbox messaging via PHP attributes.

564576.7k53](/packages/ecotone-ecotone)[symfony/clock

Decouples applications from the system clock

436205.7M391](/packages/symfony-clock)[lcobucci/clock

Yet another clock abstraction

800207.5M163](/packages/lcobucci-clock)[flow-php/etl

PHP ETL - Extract Transform Load - Abstraction

378604.0k104](/packages/flow-php-etl)[mcp/sdk

Model Context Protocol SDK for Client and Server applications in PHP

1.5k1.5M88](/packages/mcp-sdk)

PHPackages © 2026

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