PHPackages                             ahmad-chebbo/laravel-arabic-date - 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. ahmad-chebbo/laravel-arabic-date

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

ahmad-chebbo/laravel-arabic-date
================================

A Laravel package for handling Arabic dates and Islamic calendar conversions

1.1.0(5mo ago)44MITPHPPHP ^8.1|^8.2|^8.3|^8.4

Since Jul 7Pushed 5mo agoCompare

[ Source](https://github.com/Ahmad-Chebbo/laravel-arabic-date)[ Packagist](https://packagist.org/packages/ahmad-chebbo/laravel-arabic-date)[ RSS](/packages/ahmad-chebbo-laravel-arabic-date/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (4)Versions (4)Used By (0)

Laravel Arabic Date
===================

[](#laravel-arabic-date)

A Laravel package that automatically converts date fields to Arabic format when the application language is set to Arabic.

Features
--------

[](#features)

- 🗓️ Automatic Arabic date conversion for model attributes
- 🔢 Arabic numerals support (٠١٢٣٤٥٦٧٨٩)
- 📅 Arabic month and day names
- 🎯 Easy-to-use trait for models
- ⚙️ Configurable settings
- 🎨 Facade for direct usage

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

[](#installation)

1. Install the package via Composer:

```
composer require ahmad-chebbo/laravel-arabic-date
```

2. The service provider will be automatically registered. If you're using Laravel 5.4 or lower, add the service provider to your `config/app.php`:

```
'providers' => [
    // ...
    AhmadChebbo\LaravelArabicDate\ArabicDateServiceProvider::class,
],
```

3. (Optional) Publish the configuration file:

```
php artisan vendor:publish --tag=arabic-date-config
```

Usage
-----

[](#usage)

### Basic Model Usage

[](#basic-model-usage)

Add the `HasArabicDates` trait to your model and define which fields should be converted to Arabic format:

```
