PHPackages                             bluetree-service/time - 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. bluetree-service/time

ActiveLibrary

bluetree-service/time
=====================

0.2.0(3mo ago)00Apache-2.0PHPPHP ^8.2CI passing

Since Feb 7Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/bluetree-service/time)[ Packagist](https://packagist.org/packages/bluetree-service/time)[ Docs](https://github.com/bluetree-service/benchmark)[ RSS](/packages/bluetree-service-time/feed)WikiDiscussions master Synced 1mo ago

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

Bluetree PSR-6 &amp; PSR-16 time
================================

[](#bluetree-psr-6--psr-16-time)

[![Latest Stable Version](https://camo.githubusercontent.com/b88033e4ba8c8d42c7a3963f57d1bed7b50b432b7f5bade2fddc8e3fea63d354/68747470733a2f2f706f7365722e707567782e6f72672f626c7565747265652d736572766963652f63616368652f762f737461626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bluetree-service/cache)[![Total Downloads](https://camo.githubusercontent.com/f5f57cab405722ef700d74b78431174be64a0af85d94110e50fac9a3d09ea629/68747470733a2f2f706f7365722e707567782e6f72672f626c7565747265652d736572766963652f63616368652f646f776e6c6f6164732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bluetree-service/cache)[![License](https://camo.githubusercontent.com/dfa81356aaac1f0b7a557d7ba0e45c1b78b10daeebb5e7a59eb272cf8d0f567a/68747470733a2f2f706f7365722e707567782e6f72672f626c7565747265652d736572766963652f63616368652f6c6963656e73652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bluetree-service/cache)

[![Bugs](https://camo.githubusercontent.com/e0cb624643279dbe961042a8cbd3289d1953a432bbcf31eee224925b084fb877/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d626c7565747265652d736572766963655f74696d65266d65747269633d62756773)](https://sonarcloud.io/summary/new_code?id=bluetree-service_time)[![Code Smells](https://camo.githubusercontent.com/a2c442adce5d9c965fa67f0e8063a26a0539e8e5ea17438d378fb0ac4fe47b16/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d626c7565747265652d736572766963655f74696d65266d65747269633d636f64655f736d656c6c73)](https://sonarcloud.io/summary/new_code?id=bluetree-service_time)[![Coverage](https://camo.githubusercontent.com/8490f59496e7d85b4f88cb83114f0b49e17287133788c8fcabbe11086d4b9378/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d626c7565747265652d736572766963655f74696d65266d65747269633d636f766572616765)](https://sonarcloud.io/summary/new_code?id=bluetree-service_time)[![Reliability Rating](https://camo.githubusercontent.com/be0b79c5be0202ccca80918f8e6b0222da03af1e4923190bb1cd603d57f7beab/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d626c7565747265652d736572766963655f74696d65266d65747269633d72656c696162696c6974795f726174696e67)](https://sonarcloud.io/summary/new_code?id=bluetree-service_time)[![Security Rating](https://camo.githubusercontent.com/a0a7abb4bbfc928ce23c7365e90939b958c1a5f15894a1c0df5a024ee9e8591a/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d626c7565747265652d736572766963655f74696d65266d65747269633d73656375726974795f726174696e67)](https://sonarcloud.io/summary/new_code?id=bluetree-service_time)[![Maintainability Rating](https://camo.githubusercontent.com/a392aaa6e140d3df062330b3292d3a2060152a13feb8a17a6fe9e80c08c14a98/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d626c7565747265652d736572766963655f74696d65266d65747269633d7371616c655f726174696e67)](https://sonarcloud.io/summary/new_code?id=bluetree-service_time)[![Vulnerabilities](https://camo.githubusercontent.com/dddb79c6b7d55a4a6576d37fabffc64bb9cb4ac41a7126e343437eeae359861e/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d626c7565747265652d736572766963655f74696d65266d65747269633d76756c6e65726162696c6974696573)](https://sonarcloud.io/summary/new_code?id=bluetree-service_time)

[![SonarQube Cloud](https://camo.githubusercontent.com/5359d686f5abad04d5f03fef6095cbef4b29269cf24334b644c076fa915e3ac9/68747470733a2f2f736f6e6172636c6f75642e696f2f696d616765732f70726f6a6563745f6261646765732f736f6e6172636c6f75642d6461726b2e737667)](https://sonarcloud.io/summary/new_code?id=bluetree-service_time)

PSR-6 and/or PSR-16 time system, based on file storage.

### Included libraries

[](#included-libraries)

- **BlueTime\\Simple\\Date** - Basic class for time handling, contain static methods
- **BlueTime\\Calculation** - Abstract class, contain some time calculation methods
- **BlueTime\\Date** - Time object, contain some methods for time handling

Documentation
-------------

[](#documentation)

- [PSR-6 time](https://github.com/bluetree-service/time/blob/develop/doc/psr-6-time.md "PSR-6 time")
- [PSR-16 time](https://github.com/bluetree-service/time/blob/develop/doc/psr-16-time.md "PSR-16 time")
- [File storage](https://github.com/bluetree-service/time/blob/develop/doc/FileStorage.md "File storage")

Install via Composer
--------------------

[](#install-via-composer)

To use packages you can just download package and pace it in your code. But recommended way to use *BlueTime* is install it via Composer. To include *BlueTime*libraries paste into composer json:

```
{
    "require": {
        "bluetree-service/time": "version_number"
    }
}
```

Project description
-------------------

[](#project-description)

### Used conventions

[](#used-conventions)

- **Namespaces** - each library use namespaces
- **PSR-2** - [PSR-2](http://www.php-fig.org/psr/psr-2/) coding standard
- **PSR-4** - [PSR-4](http://www.php-fig.org/psr/psr-4/) auto loading standard
- **PSR-6** - [PSR-6](http://www.php-fig.org/psr/psr-6/) time standard
- **PSR-16** - [PSR-16](http://www.php-fig.org/psr/psr-16/) time standard
- **Composer** - [Composer](https://getcomposer.org/)

### Requirements

[](#requirements)

- PHP 8.2 or higher

License
-------

[](#license)

This bundle is released under the Apache license.
[Apache license](https://github.com/bluetree-service/time/LICENSE "Apache license")

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance81

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 50% 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

101d ago

### Community

Maintainers

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

---

Top Contributors

[![chajr](https://avatars.githubusercontent.com/u/1511381?v=4)](https://github.com/chajr "chajr (6 commits)")[![michaladamiaklingaro](https://avatars.githubusercontent.com/u/133742035?v=4)](https://github.com/michaladamiaklingaro "michaladamiaklingaro (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bluetree-service-time/health.svg)

```
[![Health](https://phpackages.com/badges/bluetree-service-time/health.svg)](https://phpackages.com/packages/bluetree-service-time)
```

PHPackages © 2026

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