PHPackages                             wasinpwg/carbon-buddhist-macros - 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. wasinpwg/carbon-buddhist-macros

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

wasinpwg/carbon-buddhist-macros
===============================

This is my package carbon-buddhist-macros

v0.1.2(2y ago)043[4 PRs](https://github.com/Plong-Wasin/carbon-buddhist-macros/pulls)MITPHPPHP ^8.2CI passing

Since Jun 5Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/Plong-Wasin/carbon-buddhist-macros)[ Packagist](https://packagist.org/packages/wasinpwg/carbon-buddhist-macros)[ Docs](https://github.com/Plong-Wasin/carbon-buddhist-macros)[ GitHub Sponsors](https://github.com/Plong-Wasin)[ RSS](/packages/wasinpwg-carbon-buddhist-macros/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (2)Dependencies (14)Versions (8)Used By (0)

This is my package carbon-buddhist-macros
=========================================

[](#this-is-my-package-carbon-buddhist-macros)

[![Latest Version on Packagist](https://camo.githubusercontent.com/eb1f80336d4137892e2cd3e78b5811496f5d007013fff2b3f4b0e441438d28b5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f776173696e7077672f636172626f6e2d62756464686973742d6d6163726f732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/wasinpwg/carbon-buddhist-macros)[![GitHub Tests Action Status](https://camo.githubusercontent.com/467933f60377ef55ec9108ee371407e55b4206d8aa969607b037c04c71396efb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f506c6f6e672d576173696e2f636172626f6e2d62756464686973742d6d6163726f732f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/Plong-Wasin/carbon-buddhist-macros/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/a01f9dfec9811a0d4fb71a3da92a7e46a3cac5cb4f6463aef5a95223ec841055/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f506c6f6e672d576173696e2f636172626f6e2d62756464686973742d6d6163726f732f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/Plong-Wasin/carbon-buddhist-macros/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/50b913693e31ace2b975222014a5581e85c6600f31da193af9bfc8fb280501ea/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f776173696e7077672f636172626f6e2d62756464686973742d6d6163726f732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/wasinpwg/carbon-buddhist-macros)

Enhance your application with Carbon Buddhist Year Macros. Easily format dates using the Buddhist calendar system. Support both Laravel and pure PHP.

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

[](#installation)

You can install the package via composer:

```
composer require wasinpwg/carbon-buddhist-macros
```

Register
--------

[](#register)

In case you want to use it in pure PHP, you can use the following code:

```
require __DIR__ . '/vendor/autoload.php';

(new Wasinpwg\CarbonBuddhistMacros\CarbonBuddhistMacros())->register();
```

If you are using Laravel, the package will auto-register the macro for you.

Usage
-----

[](#usage)

```
use Carbon\Carbon; // or use Illuminate\Support\Carbon in Laravel

echo Carbon::now()->buddhistYearFormat('d/m/Y H:i:s');
echo Carbon::now()->buddhistYearTranslatedFormat('d/m/Y H:i:s');
$carbon = Carbon::createFromBuddhistYearFormat('d/m/Y', '01/01/2567');
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Credits
-------

[](#credits)

- [Wasin Phungwigrai](https://github.com/Plong-Wasin)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance57

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60% 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 ~1 days

Total

3

Last Release

750d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/40d58403f9a1e2f99cbdd3f255b02970561d7a81ce6ea4b2006c73d62c17c73c?d=identicon)[Plong-Wasin](/maintainers/Plong-Wasin)

---

Top Contributors

[![Plong-Wasin](https://avatars.githubusercontent.com/u/72617740?v=4)](https://github.com/Plong-Wasin "Plong-Wasin (18 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (6 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (6 commits)")

---

Tags

laravelWasin Phungwigraicarbon-buddhist-macros

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/wasinpwg-carbon-buddhist-macros/health.svg)

```
[![Health](https://phpackages.com/badges/wasinpwg-carbon-buddhist-macros/health.svg)](https://phpackages.com/packages/wasinpwg-carbon-buddhist-macros)
```

###  Alternatives

[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.3M42](/packages/spatie-laravel-pdf)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

328482.0k25](/packages/codewithdennis-filament-select-tree)[nativephp/desktop

NativePHP for Desktop

38133.6k8](/packages/nativephp-desktop)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

124581.3k](/packages/worksome-exchange)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3913.7k](/packages/rawilk-profile-filament-plugin)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

63105.4k2](/packages/hydrat-filament-table-layout-toggle)

PHPackages © 2026

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