PHPackages                             aselsan/indonesian-date - 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. aselsan/indonesian-date

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

aselsan/indonesian-date
=======================

Indonesian standard datetime output

v1.1.2(1y ago)271MITPHPPHP ^8.0

Since Sep 6Pushed 1y ago1 watchersCompare

[ Source](https://github.com/warcooft/codeigniter4-indonesian-date)[ Packagist](https://packagist.org/packages/aselsan/indonesian-date)[ RSS](/packages/aselsan-indonesian-date/feed)WikiDiscussions develop Synced 3w ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

Aselsan\\IndonesianDate
=======================

[](#aselsanindonesiandate)

Lightweight Indonesian Standard Datetime Output for CodeIgniter 4

[![CodeIgniter](https://camo.githubusercontent.com/7d6e48acb3b652e933df2f6bb15a0a74d0ff96c1e45dc4869c8b47664763dc83/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f646549676e697465722d253545342e342e382d626c7565)](https://camo.githubusercontent.com/7d6e48acb3b652e933df2f6bb15a0a74d0ff96c1e45dc4869c8b47664763dc83/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f646549676e697465722d253545342e342e382d626c7565)[![PHP Version Require](https://camo.githubusercontent.com/29e76b25f44fd19ba3a88f85f00b3ac7329ffd604075db0fbbeda87f6c794491/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e302d626c7565)](https://camo.githubusercontent.com/29e76b25f44fd19ba3a88f85f00b3ac7329ffd604075db0fbbeda87f6c794491/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e302d626c7565)

Quick Start
===========

[](#quick-start)

1. Install with Composer

```
composer require aselsan/indonesian-date

```

2. Set up your entity

```
use Aselsan\IndonesianDate\Traits\IndonesianDateTraits;
use CodeIgniter\Shield\Entities\User as ShieldUserEntity;

class User extends ShieldUserEntity
{
    use IndonesianDateTraits;

    public function __construct(?array $data = null)
    {
        parent::__construct($data);
    }
```

Usage
=====

[](#usage)

```
 /**
   * Default parameters for indonesianDate
   * indonesianDate(string $attribute, bool $showDayOfWeek = true, bool $showTime = false)
   */

  echo auth()->user()->indonesianDate('created_at');
  // Result: "Jum'at, 6 September 2024"

  // If you want to hide the day of the week, set the second parameter to false
  echo auth()->user()->indonesianDate('created_at', false);
  // Result: "6 September 2024"

  // If you want to display the time, set the third parameter to true
  echo auth()->user()->indonesianDate('created_at', false, true);
  // Result: "6 September 2024 18:00"

  // Get zodiac sign
  echo auth()->user()->zodiac('tanggal_lahir');
  // Result: "Aquarius"

  // Get age
  echo auth()->user()->age('tanggal_lahir');
  // Result: 18
```

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE](/LICENSE) file for details.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance40

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community7

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

Every ~20 days

Total

5

Last Release

578d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22941122?v=4)[Aselsan](/maintainers/warcooft)[@warcooft](https://github.com/warcooft)

---

Top Contributors

[![warcooft](https://avatars.githubusercontent.com/u/22941122?v=4)](https://github.com/warcooft "warcooft (11 commits)")

---

Tags

codeigniter-librarycodeigniter4indonesian-datephp8

###  Code Quality

Static AnalysisRector

### Embed Badge

![Health badge](/badges/aselsan-indonesian-date/health.svg)

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

###  Alternatives

[spatie/opening-hours

A helper to query and format a set of opening hours

1.7k5.7M35](/packages/spatie-opening-hours)[kartik-v/yii2-widget-spinner

A widget to render animated CSS3 loading spinners with VML fallback for IE (sub repo split from yii2-widgets)

284.1M3](/packages/kartik-v-yii2-widget-spinner)

PHPackages © 2026

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