{"id":30560972,"url":"https://github.com/maherelgamil/arabicdatetime","last_synced_at":"2025-08-28T11:04:20.810Z","repository":{"id":24374064,"uuid":"27773486","full_name":"maherelgamil/arabicdatetime","owner":"maherelgamil","description":"An easy and useful tool to get Arabic date with Arabic characters for Laravel.","archived":false,"fork":false,"pushed_at":"2021-06-22T12:33:10.000Z","size":62,"stargazers_count":41,"open_issues_count":0,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-21T15:15:41.673Z","etag":null,"topics":["composer","hijri","hijri-months","laravel","locale-language","php"],"latest_commit_sha":null,"homepage":"https://github.com/maherelgamil/arabicdatetime","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maherelgamil.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-09T15:40:40.000Z","updated_at":"2024-07-10T11:19:00.000Z","dependencies_parsed_at":"2022-08-22T17:30:47.052Z","dependency_job_id":null,"html_url":"https://github.com/maherelgamil/arabicdatetime","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/maherelgamil/arabicdatetime","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maherelgamil%2Farabicdatetime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maherelgamil%2Farabicdatetime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maherelgamil%2Farabicdatetime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maherelgamil%2Farabicdatetime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maherelgamil","download_url":"https://codeload.github.com/maherelgamil/arabicdatetime/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maherelgamil%2Farabicdatetime/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272218154,"owners_count":24894117,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-26T02:00:07.904Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["composer","hijri","hijri-months","laravel","locale-language","php"],"created_at":"2025-08-28T11:02:53.864Z","updated_at":"2025-08-28T11:04:20.794Z","avatar_url":"https://github.com/maherelgamil.png","language":"PHP","funding_links":[],"categories":["Programming Languages"],"sub_categories":[],"readme":"# ArabicDateTime\nEasy and useful tool to generate arabic or hijri date with multi-language support for laravel .\n\n[![Latest Stable Version](https://poser.pugx.org/maherelgamil/arabicdatetime/v/stable)](https://packagist.org/packages/maherelgamil/arabicdatetime)\n[![Total Downloads](https://poser.pugx.org/maherelgamil/arabicdatetime/downloads)](https://packagist.org/packages/maherelgamil/arabicdatetime)\n[![Latest Unstable Version](https://poser.pugx.org/maherelgamil/arabicdatetime/v/unstable)](https://packagist.org/packages/maherelgamil/arabicdatetime)\n[![License](https://poser.pugx.org/maherelgamil/arabicdatetime/license)](https://packagist.org/packages/maherelgamil/arabicdatetime)\n[![Monthly Downloads](https://poser.pugx.org/maherelgamil/arabicdatetime/d/monthly)](https://packagist.org/packages/maherelgamil/arabicdatetime)\n[![StyleCI](https://styleci.io/repos/27773486/shield)](https://styleci.io/repos/27773486)\n\n\n## Installation\n\n### Composer\n\nAdd Laravel ArabicDateTime to your `composer.json` file.\n\n```bash\n    composer require maherelgamil/arabicdatetime\n```\n\nRun `composer install` to get the latest version of the package.\n\n### Laravel 5.* only\n\nArabicDateTime comes with a service provider for Laravel 4. You'll need to add it to your `composer.json` as mentioned in the above steps, then register the service provider with your application.\n\nOpen `app/config/app.php` and find the `providers` key. Add `Arabicdatetime\\ArabicdatetimeServiceProvider` to the array.\n\n```php\n\t...\n\tMaherelgamil\\Arabicdatetime\\ArabicdatetimeServiceProvider::class\n\t...\n```\n\nYou can also add an alias to the list of class aliases in the same app.php\n\n```php\n\t...\n\t'Arabicdatetime'    =\u003e Maherelgamil\\Arabicdatetime\\Facades\\Arabicdatetime::class\n\t...\n```\n\nNow . publish vendor\n```\n    php artisan vendor:publish\n```\n\n## Useage\n\n\n### Get date from unixtime\n\n```php\n\n    //$arabDateTime-\u003edate({unixtime} , {mode} , {schema} , {numericMode});\n\n    //This function take 4 Parameters :\n\n    //1- unixtime : ex '1418123530'\n\n    //2- mode :\n        0 for Arabic date\n        1 for Hijri date\n\n    //3- schema : as `php` schema , you can read this page for more info. : http://php.net/manual/en/function.date.php\n\n    //4- numericMode takes two types 'indian'  or 'arabic' and 'arabic' is default\n\n    //5 - Create a Arabicdatetime instance\n    $arabDateTime = new Arabicdatetime();\n\n    //for Gregorian date with Englsih numbers\n    $arabDateTime-\u003edate(1418123530 , 0);\n\n    //for Hijri date with indian numbers\n    $arabDateTime-\u003edate(1418123530 , 1 , 'd / m / y '  ,'indian');\n\n    //for Hijri date, there is an optional correction, You can add or subtract days with plus and minus\n    $arabDateTime-\u003esetCorrection('+1');\n    $arabDateTime-\u003esetCorrection('-1');\n\n```\n\n\n\n### Get Days with locale language\n\n```PHP\n    $arabDateTime-\u003egetDays();\n```\n\n\n### Get Arabic Days\n\n```PHP\n    $arabDateTime-\u003egetArabicDays();\n```\n\n\n### Get Months With locale language\n\n```PHP\n    $arabDateTime-\u003egetMonths();\n```\n\n\n### Get Arabic Months\n\n```PHP\n    $arabDateTime-\u003egetArabicMonths();\n```\n\n\n### Get Hijri Months with locale language\n\n```PHP\n    $arabDateTime-\u003egetHijriMonths();\n```\n\n\n\n### Get Hijri Months\n\n```PHP\n    $arabDateTime-\u003egetArabicHijriMonths();\n```\n\n\n\n### Get remainnig time\n\n```php\n    $arabDateTime-\u003eremainingTime(1418123530);\n```\n\n\n### Get left  time\n\n```php\n    $arabDateTime-\u003eleftTime(1418123530);\n```\n\n### Get left or remaining  time\n\n```php\n    $arabDateTime-\u003eleftRemainingTime(1418123530);\n```\n\n\n## License\n\nArabicDateTime is an open-sourced laravel package licensed under the [MIT](LICENSE) license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaherelgamil%2Farabicdatetime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaherelgamil%2Farabicdatetime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaherelgamil%2Farabicdatetime/lists"}