PHPackages                             irsyadulibad/weton - 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. irsyadulibad/weton

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

irsyadulibad/weton
==================

Library to calculate and output the Javanese Weton

v0.3(3y ago)5481MITPHP

Since Apr 15Pushed 3y ago1 watchersCompare

[ Source](https://github.com/irsyadulibad/javanese-weton)[ Packagist](https://packagist.org/packages/irsyadulibad/weton)[ RSS](/packages/irsyadulibad-weton/feed)WikiDiscussions main Synced 3w ago

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

 [![Packagist Downloads (custom server)](https://camo.githubusercontent.com/f49127b409a089de25866cfef659e69e4657d679738fbb11b599c3b2cce8fd37/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f697273796164756c696261642f7765746f6e)](https://camo.githubusercontent.com/f49127b409a089de25866cfef659e69e4657d679738fbb11b599c3b2cce8fd37/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f697273796164756c696261642f7765746f6e) [![GitHub](https://camo.githubusercontent.com/0cec17173e0998153539212828b99102b7f3be498eb293b20ba22ae7b0988791/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f697273796164756c696261642f6a6176616e6573652d7765746f6e)](https://camo.githubusercontent.com/0cec17173e0998153539212828b99102b7f3be498eb293b20ba22ae7b0988791/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f697273796164756c696261642f6a6176616e6573652d7765746f6e) [![GitHub repo size](https://camo.githubusercontent.com/658b3274b75303303ffa495465bdebff9b42f49fe75dd4b0deec272bf8d1ec5c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7265706f2d73697a652f697273796164756c696261642f6a6176616e6573652d7765746f6e)](https://camo.githubusercontent.com/658b3274b75303303ffa495465bdebff9b42f49fe75dd4b0deec272bf8d1ec5c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7265706f2d73697a652f697273796164756c696261642f6a6176616e6573652d7765746f6e)

🔭 About Javanese Weton
----------------------

[](#-about-javanese-weton)

Calculate and output the Javanese Weton from regular date. This package can handle conversions from January 1, 1900 onwards

💻 Installation
--------------

[](#-installation)

You may use [composer](https://getcomposer.org) to install **javanese-weton** into your project:

```
composer require irsyadulibad/weton
```

🛩️ Usage
--------

[](#️-usage)

### ✨ Getting Started

[](#-getting-started)

First, you need pass a *DateTime* to convert it into weton:

```
$date = new DateTime('2022-04-15');
$weton = new Weton($date);
```

> Or, you can use static style instead

```
$date = new DateTime('2022-04-15');
$weton = Weton::from($date);
```

### 📖 Docs

[](#-docs)

- **Get weton's day an it's neptu value**

```
// Weton's day name | ex: Friday
$weton->day->name;

// Weton's day neptu | ex: 6
$weton->day->neptu;

// Both day and neptu as object
// ex: name => Friday, neptu => 6
$weton->day;
```

- **Get weton's pasaran and it's neptu value**

```
// Weton's pasaran name | ex: Kliwon
$weton->pasaran->name;

// Weton's pasaran neptu | ex: 8
$weton->pasaran->neptu;

// Both day and neptu as object
// ex: name => Kliwon, neptu => 8
$weton->pasaran;
```

- **Get total neptu**

```
$weton->totalNeptu;
```

- **Format to indonesian**
    You can change output to indonesian format using `toIndonesian()` method

```
$weton->toIndonesian();
```

- **Output as string**
    You can directly output the object as string, it will return pasaran and day name

```
// ex: Legi Friday
echo $weton;

// if indonesian, it will be `Jum'at Legi`
echo $weton->toIndonesian();
```

📄 Credits
---------

[](#-credits)

Github: \[\]
Website: \[\]
Facebook: \[\]

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity40

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

Total

2

Last Release

1364d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/41dacd29bc302ae2ff96cc32fe91f40af2915ecfbfae7aac63409d13d8fcaf1c?d=identicon)[irsyadulibad](/maintainers/irsyadulibad)

---

Top Contributors

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

---

Tags

javanesejavanese-wetonphpweton

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/irsyadulibad-weton/health.svg)

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

###  Alternatives

[ejsmont-artur/php-circuit-breaker

PHP Circuit Breaker component

168993.3k4](/packages/ejsmont-artur-php-circuit-breaker)[yangm97/elementor-pro

It’s about time for a live page builder, with no limits of design. A page builder that delivers high-end page designs and advanced capabilities, never before seen on WordPress. It’s time for Elementor Page Builder.

5014.2k](/packages/yangm97-elementor-pro)[shjia/taobao_spider

淘宝、天猫商品爬虫

161.2k](/packages/shjia-taobao-spider)

PHPackages © 2026

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