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(2y ago)1261MITPHPPHP ^8.0.2

Since Jun 19Pushed 2y agoCompare

[ Source](https://github.com/effectra/clock)[ Packagist](https://packagist.org/packages/effectra/clock)[ RSS](/packages/effectra-clock/feed)WikiDiscussions main Synced 1mo 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 27% 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

1064d 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

[lcobucci/clock

Yet another clock abstraction

790190.9M114](/packages/lcobucci-clock)[symfony/clock

Decouples applications from the system clock

430168.9M205](/packages/symfony-clock)[eventsauce/eventsauce

A pragmatic event sourcing library for PHP with a focus on developer experience.

8632.1M47](/packages/eventsauce-eventsauce)[ecotone/ecotone

Supporting you in building DDD, CQRS, Event Sourcing applications with ease.

558549.8k17](/packages/ecotone-ecotone)[mcp/sdk

Model Context Protocol SDK for Client and Server applications in PHP

1.4k423.9k30](/packages/mcp-sdk)[flow-php/etl

PHP ETL - Extract Transform Load - Abstraction

374468.4k51](/packages/flow-php-etl)

PHPackages © 2026

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