PHPackages                             cambodev/date-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. cambodev/date-converter

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

cambodev/date-converter
=======================

Convert en date to kh date

v1.0.2(2y ago)031↓100%MITPHP

Since Aug 17Pushed 2y ago1 watchersCompare

[ Source](https://github.com/hongsat-lem/kh-date-converter)[ Packagist](https://packagist.org/packages/cambodev/date-converter)[ RSS](/packages/cambodev-date-converter/feed)WikiDiscussions main Synced 1mo ago

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

kh-date-converter
=================

[](#kh-date-converter)

Laravel PHP package use to conver en date to khmer date. Ex: 2023-01-01 to ថ្ងៃទី០១ ខែមករា ឆ្នាំ២០២៣

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

[](#installation)

You can install the package via composer:

```
composer require cambodev/date-converter
```

Configuration
-------------

[](#configuration)

To your config/app.php

```
'timezone' => 'Asia/Phnom_Penh',
```

##### Laravel 5.5 and above

[](#laravel-55-and-above)

You don't have to do anything else, this package autoloads the Service Provider and create the Alias, using the new Auto-Discovery feature. Add the Service Provider and Facade alias to your config/app.php

##### Laravel 5.4 and below

[](#laravel-54-and-below)

```
CamboDev\DateConverter\ConverterServiceProvider::class,
'KmFormat' => CamboDev\DateConverter\KmFormatFacade::class,
```

Using
-----

[](#using)

Use the Facade

```
$date = date('Y-m-d H:i:s');
$dateTime  = KmFormat::to($date)->format("LLLL");

echo $dateTime;

$dateTime  = KmFormat::to($date);
$dateTime->day(); // ២២
$dateTime->fullDay(); // ពុធ
$dateTime->month(); // ០៥
$dateTime->fullMonth(); // ឧសភា
$dateTime->year(); // ២០១៩
$dateTime->minute(); // ០០
$dateTime->hour(); // ០០
$dateTime->meridiem(); // ព្រឹក
$dateTime->week(); // ៤
$dateTime->fullWeek(); // សប្តាហ៍ទី៤
$dateTime->weekOfYear(); // ២១
$dateTime->fullWeekOfYear(); // សប្តាហ៍ទី២១
$dateTime->quarter(); // ២
$dateTime->fullQuarter(); // ត្រីមាសទី២
```

Format
------

[](#format)

FormatOutputL០១/១២/ឆ្នាំ២០២៣LL១៧ សីហា ឆ្នាំ២០២៣LLT១៧ សីហា ឆ្នាំ២០២៣ ០៥:០០ ល្ងាចLLLព្រហស្បតិ៍ ១៧ សីហា ឆ្នាំ២០២៣LLLTព្រហស្បតិ៍ ១៧ សីហា ឆ្នាំ២០២៣ ០៥:០០ ល្ងាចLLLLថ្ងៃព្រហស្បតិ៍ ទី១៧ ខែសីហា ឆ្នាំ២០២៣LLLLTថ្ងៃព្រហស្បតិ៍ ទី១៧ ខែសីហា ឆ្នាំ២០២៣ ០៥:០០ ល្ងាចLicense
-------

[](#license)

CamboDev is licensed under the MIT License

###  Health Score

22

—

LowBetter than 23% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

Total

3

Last Release

996d ago

### Community

Maintainers

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

---

Top Contributors

[![hongsat-lem](https://avatars.githubusercontent.com/u/113915959?v=4)](https://github.com/hongsat-lem "hongsat-lem (2 commits)")

---

Tags

laraveldate convertenglish date to khmer dateen to kh date time

### Embed Badge

![Health badge](/badges/cambodev-date-converter/health.svg)

```
[![Health](https://phpackages.com/badges/cambodev-date-converter/health.svg)](https://phpackages.com/packages/cambodev-date-converter)
```

###  Alternatives

[highideas/laravel-users-online

This package will provide an online users management.

203113.2k1](/packages/highideas-laravel-users-online)[stephenjude/filament-blog

Filament Blog Builder

20317.8k](/packages/stephenjude-filament-blog)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[datomatic/nova-detached-actions

A Laravel Nova tool to allow for placing actions in the Nova toolbar detached from the checkbox selection mechanism.

11229.2k](/packages/datomatic-nova-detached-actions)

PHPackages © 2026

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