-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1d459c3
commit 10bc257
Showing
2 changed files
with
43 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Khmer Lunar Date with Carbon | ||
|
||
# Usage | ||
|
||
```php | ||
require_once __DIR__ . '/vendor/autoload.php'; | ||
|
||
use Carbon\Carbon; | ||
$date = Carbon::parse('2023-01-01'); | ||
$khmerDate = new ToKhmerDate($date); | ||
echo $khmerDate->format(); | ||
``` | ||
|
||
# Author | ||
|
||
- This library is Ported from [khmercal](https://github.com/seanghay/khmercal) by [Seanghay](https://github.com/seanghay) and [momentkh](https://github.com/ThyrithSor/momentkh) by [Thyrith Sor](https://github.com/ThyrithSor) in to PHP. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,19 +2,40 @@ | |
"name": "chanthorn/carbon-kh", | ||
"description": "Covert Date to Khmer Lunar date", | ||
"license": "MIT", | ||
"autoload": { | ||
"psr-4": { | ||
"Chanthorn\\CarbonKh\\": "src/" | ||
} | ||
}, | ||
"keywords": [ | ||
"Khmer date", | ||
"Khmer Lunar date", | ||
"Carbon", | ||
"Lunar", | ||
"Carbon Khmer", | ||
"DateTime" | ||
], | ||
"authors": [ | ||
{ | ||
"name": "Seanghay", | ||
"email": "", | ||
"homepage": "https://github.com/seanghay" | ||
}, | ||
{ | ||
"name": "Thyrith Sor", | ||
"email": "", | ||
"homepage": "https://github.com/ThyrithSor" | ||
}, | ||
{ | ||
"name": "chanthornAcademy", | ||
"email": "[email protected]" | ||
"email": "[email protected]", | ||
"homepage": "" | ||
} | ||
], | ||
"require": { | ||
"php": ">=7.2", | ||
"nesbot/carbon": "^2.69" | ||
}, | ||
"minimum-stability": "dev", | ||
"prefer-stable": true, | ||
"autoload": { | ||
"psr-4": { | ||
"Chanthorn\\CarbonKh\\": "src/" | ||
} | ||
} | ||
} |