承接 kawan/gregorian_to_kurdish_calendar 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kawan/gregorian_to_kurdish_calendar

最新稳定版本:v1.0.0

Composer 安装命令:

composer require kawan/gregorian_to_kurdish_calendar

包简介

Convert gregorian calendar to kurdish calendar

README 文档

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.

统计信息

  • 总下载量: 12
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-03-20