Skip to content

Commit

Permalink
add reade
Browse files Browse the repository at this point in the history
  • Loading branch information
chanthornsp committed Aug 31, 2023
1 parent 1d459c3 commit 10bc257
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 6 deletions.
16 changes: 16 additions & 0 deletions README.md
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.
33 changes: 27 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
}
}
}

0 comments on commit 10bc257

Please sign in to comment.