PHPackages                             getarabictimepackage/arabic-time - 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. getarabictimepackage/arabic-time

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

getarabictimepackage/arabic-time
================================

A Laravel package to convert time to Arabic time periods.

1.0.3(1y ago)27MITPHPPHP &gt;=7.3

Since Aug 26Pushed 1y ago1 watchersCompare

[ Source](https://github.com/YacoubAl-hardari/get_arabic_time_package)[ Packagist](https://packagist.org/packages/getarabictimepackage/arabic-time)[ RSS](/packages/getarabictimepackage-arabic-time/feed)WikiDiscussions master Synced yesterday

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

If your package doesn't include a configuration file that users can publish, you can remove that part from the README. Here's the updated version:

---

Arabic Time Package
===================

[](#arabic-time-package)

[![Latest Stable Version](https://camo.githubusercontent.com/01531ed36d26f6fa3ef7978afaaaa0b63751359da925da2b68a94437a2b9010f/68747470733a2f2f706f7365722e707567782e6f72672f67657461726162696374696d657061636b6167652f6172616269632d74696d652f762f737461626c65)](https://packagist.org/packages/getarabictimepackage/arabic-time)[![Total Downloads](https://camo.githubusercontent.com/97c4fcc2288c88aba6ea45a8af0fbbcdd3a987e4e373a262d357aaba30d011ec/68747470733a2f2f706f7365722e707567782e6f72672f67657461726162696374696d657061636b6167652f6172616269632d74696d652f646f776e6c6f616473)](https://packagist.org/packages/getarabictimepackage/arabic-time)[![License](https://camo.githubusercontent.com/68b99f567c2d98d0c31c3f67aa4c9d9395e1e67be96ce897f0f8847cd58edc66/68747470733a2f2f706f7365722e707567782e6f72672f67657461726162696374696d657061636b6167652f6172616269632d74696d652f6c6963656e7365)](https://packagist.org/packages/getarabictimepackage/arabic-time)

**Arabic Time Package** is a PHP package that helps you display time in Arabic format. It's designed to be easy to integrate into your Laravel applications, but it can be used in any PHP project.

Features
--------

[](#features)

- Display time in Arabic language format.
- Easy integration with Blade templates in Laravel.
- Supports different time formats and customization.

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

[](#installation)

You can install the package via Composer:

```
composer require getarabictimepackage/arabic-time
```

Usage
-----

[](#usage)

### Basic Usage

[](#basic-usage)

After installing the package, you can use it directly in your PHP code to display the current time in Arabic format:

```
use GetArabicTimePackage\ArabicTime\ArabicTime;

echo ArabicTime::now(); // Displays the current time in Arabic
```

### Custom Time Formatting

[](#custom-time-formatting)

You can also format the time according to your needs:

```
use GetArabicTimePackage\ArabicTime\ArabicTime;

$time = new DateTime('now');
echo ArabicTime::format($time, 'H:i'); // Displays time in Arabic with a custom format
```

### Blade Directives (Laravel Only)

[](#blade-directives-laravel-only)

If you're using Laravel, you can utilize the provided Blade directives for easier integration:

1. Register the service provider in `config/app.php` (if not auto-discovered):
2. Register the service provider in Laravel 11 **bootstrap/providers.php**

    ```
    'providers' => [
        // Other service providers...
        GetArabicTimePackage\ArabicTime\ArabicTimeServiceProvider::class,
    ],
    ```
3. Use the directives in your Blade views:

    ```
    @arabicTime($time) // Converts the given DateTime instance to Arabic time
    ```

### Example in Blade

[](#example-in-blade)

```

    Arabic Time Example

    الوقت الحالي: @arabicTime(now())

```

Contributing
------------

[](#contributing)

Contributions are welcome! Please submit a pull request or open an issue to discuss your ideas.

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](LICENSE).

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

676d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1fb3960cf6e949bc5401902a09bf597da5bf4aeaf53c382bb55b1843769c0347?d=identicon)[Yacoub\_Al-haidari](/maintainers/Yacoub_Al-haidari)

---

Top Contributors

[![YacoubAl-hardari](https://avatars.githubusercontent.com/u/94101869?v=4)](https://github.com/YacoubAl-hardari "YacoubAl-hardari (9 commits)")

### Embed Badge

![Health badge](/badges/getarabictimepackage-arabic-time/health.svg)

```
[![Health](https://phpackages.com/badges/getarabictimepackage-arabic-time/health.svg)](https://phpackages.com/packages/getarabictimepackage-arabic-time)
```

###  Alternatives

[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k95.4M306](/packages/laravel-horizon)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M345](/packages/psalm-plugin-laravel)[flarum/core

Delightfully simple forum software.

201.4M2.3k](/packages/flarum-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
