kawan/gregorian_to_kurdish_calendar

Convert gregorian calendar to kurdish calendar

v1.0.0 2024-03-22 11:01 UTC

This package is auto-updated.

Last update: 2024-09-22 14:56:00 UTC


README

Total Downloads Latest Version

کوردی

ئەم پاکێجە ڕێگەت پێدەدات بەروارەکان لە ساڵنامەی زاینیەوە بگۆڕیت بۆ ساڵنامەی کوردی.

دامەزراندن

دەتوانیت لە ڕێگەی کۆمپۆزەر پاکێجەکە دابمەزرێنیت بە جێبەجێکردنی ئەم فرمانەی خوارەوە:

 composer require kawan/gregorian_to_kurdish_calendar

بەکارهێنان

دوای دامەزراندن، دەتوانیت فەنکشنی gregorian_to_kurdish($date,$format) بەکاربهێنیت بۆ گۆڕینی بەروارەکان.فەنکشنەکە دوو پارامێتەر وەرئەگرێت: بەرواری گۆڕین و فۆرماتەکەی دەرچوونی خوازراو.

  • $date: ئەو بەروارەی کە دەتەوێت بیگۆڕیت.
  • $format:
  • دەتوانیت پیتە ستانداردەکانی فۆرمات بەرواری پی ئێچ پی بەکاربهێنیت
  • (Y, y, m, d, l, F, a, G, g, H, h, i, s)
  • بێجگە لەم پیتانە هەر پیتێکی تر وەک خۆی دەگەڕێتەوە.
$date = "2024-03-21";
$format = "Y-d-m";
echo gregorian_to_kurdish($date, $format);

دیکۆمێنتەیشنی ناوخۆیی

لە کاتی دامەزراندندا، ئەم پاکێجە ڕاوتی دیکۆمێنتەیشنی ناوخۆیی دروست دەکات. دەتوانن لەم لینکەدا دەستتان پێ بگات your_domain/gtk-test.

نموونە

لێرەدا چەند نموونەیەک لە بەکارهێنانی پاکێجەکە دەخەینەڕوو:

// Example 1
$date = "2024-02-25";
$format = "d-m-Y | F";
echo gregorian_to_kurdish($date, $format);
//output:  "٥-١٢-٢٧٢٣ | ڕەشەمێ" 

// Example 2
$date = "2024-03-21 13:34:15";
$format = "Y - m - d | l | F | a |g:i:s";
echo gregorian_to_kurdish($date, $format);
//output: "٢٧٢٤ - ١ - ١ | ٥ شەمە | نەورۆز | د.ن |١:٣٤:١٥"

English

This package allows you to convert dates from the Gregorian calendar to the Kurdish calendar.

Installation

You can install the "kawan/gregorian_to_kurdish_calendar" package via Composer by running the following command:

 composer require kawan/gregorian_to_kurdish_calendar

Usage

After installation, you can use the gregorian_to_kurdish($date,$format) function to convert dates. The function accepts two parameters: the date to convert and the desired output format.

  • $date: The date you want to convert.
  • $format: The desired output format. You can use standard PHP date format letters (Y, y, m, d, l, F, a, G, g, H, h, i, s). Any other letter will be returned as is.
$date = "2024-03-21";
$format = "Y-d-m";
echo gregorian_to_kurdish($date, $format);

Local Documentation

Upon installation, this package creates a local documentation route. You can access it at your_domain/gtk-test.

Examples

Here are some examples of using the package:

// Example 1
$date = "2024-02-25";
$format = "d-m-Y | F";
echo gregorian_to_kurdish($date, $format);
//output:  "٥-١٢-٢٧٢٣ | ڕەشەمێ" 

// Example 2
$date = "2024-03-21 13:34:15";
$format = "Y - m - d | l | F | a |g:i:s";
echo gregorian_to_kurdish($date, $format);
//output: "٢٧٢٤ - ١ - ١ | ٥ شەمە | نەورۆز | د.ن |١:٣٤:١٥"

License

This package is open-source software licensed under the MIT License.

Support

If you encounter any issues or have questions, feel free to open an issue on the GitHub repository.

Credits

This package is developed and maintained by:

And with contributions from our amazing community of open-source developers.

Changelog

See the CHANGELOG file for information about the latest updates and changes.