kawan/gregorian_to_kurdish_calendar
Composer 安装命令:
composer require kawan/gregorian_to_kurdish_calendar
包简介
Convert gregorian calendar to kurdish calendar
README 文档
README
کوردی
ئەم پاکێجە ڕێگەت پێدەدات بەروارەکان لە ساڵنامەی زاینیەوە بگۆڕیت بۆ ساڵنامەی کوردی.
دامەزراندن
دەتوانیت لە ڕێگەی کۆمپۆزەر پاکێجەکە دابمەزرێنیت بە جێبەجێکردنی ئەم فرمانەی خوارەوە:
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.
kawan/gregorian_to_kurdish_calendar 适用场景与选型建议
kawan/gregorian_to_kurdish_calendar 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 12 次下载、GitHub Stars 达 3, 最近一次更新时间为 2024 年 03 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 kawan/gregorian_to_kurdish_calendar 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 kawan/gregorian_to_kurdish_calendar 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 12
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 12
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-03-20