PHPackages                             mmeshkatian/persian-carbon - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. mmeshkatian/persian-carbon

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mmeshkatian/persian-carbon
==========================

Carbon persian date

1.0.0(2y ago)223MITPHPPHP &gt;=7.0

Since Oct 17Pushed 2y ago1 watchersCompare

[ Source](https://github.com/mmeshkatian/persian-carbon)[ Packagist](https://packagist.org/packages/mmeshkatian/persian-carbon)[ RSS](/packages/mmeshkatian-persian-carbon/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Persian-carbon
==============

[](#persian-carbon)

[![Total Downloads](https://camo.githubusercontent.com/fd7c660721b368c2adc9144da30095ddccc38190731345c60d6a22bbcdf21eb4/68747470733a2f2f706f7365722e707567782e6f72672f6d6d6573686b617469616e2f7065727369616e2d636172626f6e2f646f776e6c6f6164732e706e67)](https://packagist.org/packages/mmeshkatian/persian-carbon)[![Latest Stable Version](https://camo.githubusercontent.com/e34ee0366fac41d1ac3138125a298f275bddfb49870f483ba7afb7880fab20b0/68747470733a2f2f706f7365722e707567782e6f72672f6d6d6573686b617469616e2f7065727369616e2d636172626f6e2f762f737461626c65)](https://packagist.org/packages/mmeshkatian/persian-carbon)[![License](https://camo.githubusercontent.com/5388eb73761f7e8a36d9f9683364c6c280046b9679116328c6b9a3c7311b2da7/68747470733a2f2f706f7365722e707567782e6f72672f6d6d6573686b617469616e2f7065727369616e2d636172626f6e2f6c6963656e7365)](https://packagist.org/packages/mmeshkatian/persian-carbon)[![Awesome Laravel](https://camo.githubusercontent.com/8deb0d78e81ca47c3c3533bd8de23d75fa7a6f4f3e8fb067f246c42e62a8d06a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f417765736f6d652d4c61726176656c2d627269676874677265656e2e737667)](https://github.com/mmeshkatian/persian-carbon)

A simple wrapper to convert Carbon dates to jalali date.

its uses [morilog/jalali](https://github.com/morilog/jalali) package

Requirements
------------

[](#requirements)

- PHP &gt;= 7.0.0
- Laravel &gt;= 5.4.0

Installation
------------

[](#installation)

Install the package through [Composer](http://getcomposer.org/).

Run the Composer require command from the Terminal:

```
composer require mmeshkatian/persian-carbon

```

If you're using Laravel &gt; 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
-----

[](#usage)

you can simply convert Carbon to persian date

```
