PHPackages                             vladshoko/bitrix-datetime-converter - 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. vladshoko/bitrix-datetime-converter

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

vladshoko/bitrix-datetime-converter
===================================

A package for date-time converter to and from Bitrix projects

v0.1.0(1mo ago)03↑1900%MITPHPPHP ^8.2

Since Apr 5Pushed 1mo agoCompare

[ Source](https://github.com/vladSHOKO/bitrix-datetime-converter)[ Packagist](https://packagist.org/packages/vladshoko/bitrix-datetime-converter)[ RSS](/packages/vladshoko-bitrix-datetime-converter/feed)WikiDiscussions master Synced 1mo ago

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

bitrix-datetime-converter
-------------------------

[](#bitrix-datetime-converter)

DateTime conversion utilities for Bitrix environment

Requirements
------------

[](#requirements)

- PHP ^8.2
- Bitrix runtime for production usage (`\Bitrix\Main\Type\DateTime` must be available)

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

[](#installation)

```
composer require vladshoko/bitrix-datetime-converter
```

Quick start
-----------

[](#quick-start)

### Convert `DateTimeInterface` to Bitrix `DateTime`

[](#convert-datetimeinterface-to-bitrix-datetime)

```
$converter = new \Vladshoko\BitrixDateTimeConverter\Converter\DateTimeConverter();
$source = new \DateTimeImmutable('now', new \DateTimeZone('UTC'));

$bitrixDateTime = $converter->toBitrixDateTime($source);
```

### Convert Bitrix `DateTime` to `DateTimeImmutable`

[](#convert-bitrix-datetime-to-datetimeimmutable)

```
$converted = $converter->fromBitrixDateTime(
    $bitrixDateTime,
    new \DateTimeZone('UTC')
);
```

Testing
-------

[](#testing)

```
composer test:with-stub
composer test:no-stub
composer test
```

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance90

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 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

46d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/131362319?v=4)[Vladislav Kuzminov](/maintainers/vladSHOKO)[@vladSHOKO](https://github.com/vladSHOKO)

---

Top Contributors

[![vladSHOKO](https://avatars.githubusercontent.com/u/131362319?v=4)](https://github.com/vladSHOKO "vladSHOKO (21 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/vladshoko-bitrix-datetime-converter/health.svg)

```
[![Health](https://phpackages.com/badges/vladshoko-bitrix-datetime-converter/health.svg)](https://phpackages.com/packages/vladshoko-bitrix-datetime-converter)
```

###  Alternatives

[krisseck/detect-cms

PHP Library for detecting CMS.

9225.1k](/packages/krisseck-detect-cms)

PHPackages © 2026

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