PHPackages                             cammac/carbony - 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. cammac/carbony

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

cammac/carbony
==============

convert from/to Hijri and Gregorian

2.1(1y ago)2443.0k6MITPHPCI failing

Since Jan 4Pushed 1y ago1 watchersCompare

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

READMEChangelog (3)Dependencies (3)Versions (7)Used By (0)

Hijri date library on top of Carbon
===================================

[](#hijri-date-library-on-top-of-carbon)

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

[](#installation)

You can install the package via composer:

```
$ composer require cammac/carbony
```

Usage
-----

[](#usage)

you can use it just like Carbon package i just add two functions

### hijriFormat

[](#hijriformat)

format the timestamp to hijri date (convert gregorian to hijri)

```
 Carbony::now()->hijriFormat('Y-m-d')
```

### hijriParse

[](#hijriparse)

parse the input and convert it to gregorian

```
Carbony::hijriParse('1409-06-14')
```

Testing
-------

[](#testing)

```
$ vendor/bin/phpunit
```

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Abdul-Aziz Al-Oraij](http://aziz.oraij.com/)
- [briannesbitt/Carbon package](https://github.com/briannesbitt/Carbon)

License
-------

[](#license)

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

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance44

Moderate activity, may be stable

Popularity37

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 75% 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 ~524 days

Recently: every ~503 days

Total

6

Last Release

436d ago

Major Versions

1.2 → 2.02022-03-01

### Community

Maintainers

![](https://www.gravatar.com/avatar/545ac5f8546ec191c3b59dba187745f010f346788c48518282844b8036fda9df?d=identicon)[efrontsa](/maintainers/efrontsa)

---

Top Contributors

[![algethamy](https://avatars.githubusercontent.com/u/9952761?v=4)](https://github.com/algethamy "algethamy (6 commits)")[![MuathIbnHassan](https://avatars.githubusercontent.com/u/44880589?v=4)](https://github.com/MuathIbnHassan "MuathIbnHassan (1 commits)")[![rawan-alsofyani](https://avatars.githubusercontent.com/u/141903457?v=4)](https://github.com/rawan-alsofyani "rawan-alsofyani (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cammac-carbony/health.svg)

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

###  Alternatives

[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[erlandmuchasaj/laravel-gzip

Gzip your responses.

40129.3k2](/packages/erlandmuchasaj-laravel-gzip)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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