PHPackages                             nazir/go2hi - 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. nazir/go2hi

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

nazir/go2hi
===========

GO2HI - Gregorian To Hijri Converter

v1.0.2(9y ago)64.3k↓14.8%5[1 issues](https://github.com/NazirArifin/go2hi/issues)[2 PRs](https://github.com/NazirArifin/go2hi/pulls)MITPHPPHP &gt;=5.3.2

Since Feb 5Pushed 3y ago2 watchersCompare

[ Source](https://github.com/NazirArifin/go2hi)[ Packagist](https://packagist.org/packages/nazir/go2hi)[ RSS](/packages/nazir-go2hi/feed)WikiDiscussions master Synced 1mo ago

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

go2hi
=====

[](#go2hi)

GO2HI - Gregorian To Hijri Converter PHP date helper to get hijriah calender from timestamp. Mendapatkan tanggal kalender Hijriah mengunakan PHP.

Installation / Pemasangan
-------------------------

[](#installation--pemasangan)

Using composer. Menggunakan composer dengan perintah:

```
composer require nazir/go2hi
```

Usage / Penggunaan
------------------

[](#usage--penggunaan)

```
go2hi::date($dateFormat, [[[$calendarType], [$timestamp]], [$language]]);
```

- `$dateFormat` = format output sama dengan di fungsi date() PHP
- `$calendarType` (opsional) = jenis kalender (0 / 1) lihat bagian Constants
- `$timestamp` (opsional) = timestamp untuk tanggal tertentu, jika kosong diisi sekarang
- `$language` (opsional) = jenis bahasa (sementara hanya inggris dan bahasa INDONESIA) lihat bagian Constants

Constants / Variabel
--------------------

[](#constants--variabel)

- `go2hi::GO2HI_GREG` : (default) mengeset kalender ke kalender masehi
- `go2hi::GO2HI_HIJRI` : mengeset kalender ke kalender hijriah
- `go2hi::ENGLISH`: (default) set bahasa ke bahasa inggris
- `go2hi::INDONESIAN`: set bahasa ke bahasa INDONESIA

Examples / Contoh
-----------------

[](#examples--contoh)

```
echo \go2hi\go2hi::date('d F Y'); // output sama dengan date() di php (05 February 2017)
```

```
echo \go2hi\go2hi::date('d F Y', \go2hi\go2hi::GO2HI_HIJRI); // 05 Jumadil Awal 1438
```

```
use \go2hi\go2hi;
echo go2hi::date('d F Y', go2hi::GO2HI_HIJRI, strtotime('1990-05-07'));
// menggunakan timestamp dari strtotime() (12 Syawal 1410)
```

```
use \go2hi\go2hi;
echo go2hi::date('l k, d F Y', go2hi::GO2HI_HIJRI, strtotime('1990-05-07'));
// hari weton (Al-Itsnayna Kliwon, 12 Syawal 1410)
```

License / Lisensi
-----------------

[](#license--lisensi)

MIT **Free Software**

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

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

2

Last Release

3390d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7fd0f94ca9c988eb61973c72fe163fb4501f8dedc4beab9cb8ccb523b44f0926?d=identicon)[nazir](/maintainers/nazir)

---

Top Contributors

[![NazirArifin](https://avatars.githubusercontent.com/u/1496816?v=4)](https://github.com/NazirArifin "NazirArifin (10 commits)")

---

Tags

hijri-calendargo2hi

### Embed Badge

![Health badge](/badges/nazir-go2hi/health.svg)

```
[![Health](https://phpackages.com/badges/nazir-go2hi/health.svg)](https://phpackages.com/packages/nazir-go2hi)
```

###  Alternatives

[alkoumi/laravel-hijri-date

Laravel package to Convert laravel date to our Amazing 💝 Hjri date {ummul qura and vice versa} . to look like \[ الخميس ، ٢٢ ربيع الآخر ، ١٤٤١ - ٠٧:٤٩ مساءً\]

109166.2k2](/packages/alkoumi-laravel-hijri-date)[pulkitjalan/ip-geolocation

IP Geolocation Wrapper with Laravel Support

89164.9k1](/packages/pulkitjalan-ip-geolocation)

PHPackages © 2026

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