mmeshkatian/persian-carbon
最新稳定版本:1.0.0
Composer 安装命令:
composer require mmeshkatian/persian-carbon
包简介
Carbon persian date
README 文档
README
A simple wrapper to convert Carbon dates to jalali date.
its uses morilog/jalali package
Requirements
- PHP >= 7.0.0
- Laravel >= 5.4.0
Installation
Install the package through Composer.
Run the Composer require command from the Terminal:
composer require mmeshkatian/persian-carbon
If you're using Laravel > 5.5, this is all there is to do.
Should you still be on version 5.4 of Laravel, the final steps for you are to add the service provider of the package and alias the package. To do this open your config/app.php file.
Add a new line to the providers array:
Mmeshkatian\Ariel\PersianCarbonServiceProvider::class
Now you're ready to start using the persian carbon in your application.
Usage
you can simply convert Carbon to persian date
<?php echo now()->toPersian()->format("Y-m-d")
Made With ❤️
统计信息
- 总下载量: 23
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-10-17