PHPackages                             easteregg/intl-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. easteregg/intl-carbon

ActiveLibrary

easteregg/intl-carbon
=====================

Laravel 5 Package Template

0.3.0(4y ago)0426[1 PRs](https://github.com/easteregg/intl-carbon/pulls)proprietaryPHPCI failing

Since Feb 4Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/easteregg/intl-carbon)[ Packagist](https://packagist.org/packages/easteregg/intl-carbon)[ RSS](/packages/easteregg-intl-carbon/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)DependenciesVersions (5)Used By (0)

[![Build Status](https://camo.githubusercontent.com/798a6e21c83d8d34908e5a286875a0c25b171e44cc0d9958251c35aaa92d7746/68747470733a2f2f7472617669732d63692e6f72672f6561737465726567672f696e746c2d636172626f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/easteregg/intl-carbon)

Persian date formatter using php-intl integration into Laravel
==============================================================

[](#persian-date-formatter-using-php-intl-integration-into-laravel)

This package provides a convenient way to localize and format Eloquent date attributes. using this package, you can localize date attributes of any model to any calendar you want. it looks for the current application locale to generate string.

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

[](#installation)

1. run `composer require easteregg/intl-carbon`
2. add `Easteregg\IntlCarbon\IntlServiceProvider` to `config/app.php` providers.
3. run `php artisan vendor:publish --tag="intl-carbon.config"` to publish the config files. (optional)

Usage
-----

[](#usage)

Edit the config file and select a calendar for each locale your application might be having

see: ()

For more information about the formatting, checkout [this](http://userguide.icu-project.org/formatparse/datetime) page. Edit your eloquent model and add `Easteregg\IntlCarbon\LocalizesDates` trait.

example:

```
