{"id":37003179,"url":"https://github.com/php-monsters/laravel-jalali-date","last_synced_at":"2026-01-14T00:32:17.355Z","repository":{"id":57065313,"uuid":"137993158","full_name":"php-monsters/laravel-jalali-date","owner":"php-monsters","description":"Laravel 5+ Jalali datetime component known as ZAMAN","archived":false,"fork":false,"pushed_at":"2025-02-09T21:34:28.000Z","size":18,"stargazers_count":20,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-09T22:26:14.476Z","etag":null,"topics":["date","datetime","hijri","jalali","jalali-date","laravel","php","shamsi","shamsi-date","zaman"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/php-monsters.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-20T07:03:06.000Z","updated_at":"2025-02-09T21:33:44.000Z","dependencies_parsed_at":"2024-11-21T10:28:55.497Z","dependency_job_id":"7d9ff7bb-d71f-4c73-87e6-f97bd133ad1a","html_url":"https://github.com/php-monsters/laravel-jalali-date","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/php-monsters/laravel-jalali-date","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-monsters%2Flaravel-jalali-date","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-monsters%2Flaravel-jalali-date/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-monsters%2Flaravel-jalali-date/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-monsters%2Flaravel-jalali-date/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/php-monsters","download_url":"https://codeload.github.com/php-monsters/laravel-jalali-date/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-monsters%2Flaravel-jalali-date/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28406502,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["date","datetime","hijri","jalali","jalali-date","laravel","php","shamsi","shamsi-date","zaman"],"created_at":"2026-01-14T00:32:16.665Z","updated_at":"2026-01-14T00:32:17.342Z","avatar_url":"https://github.com/php-monsters.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ZAMAN - Jalali datetime component for Laravel:\nThis component is based on native PHP International (php-intl) extension,\nSo php-intl extension must be installed on your server. \n\nknown as:\n\n- Hijri Shamsi\n- Jalali Date\n- JDatetime\n- هجری شمسی\n- تقویم خورشیدی\n- تاریخ شمسی\n\nSupprts Laravel 5+ and PHP 8.1+\n\n## php-intl extension installation\n\n- On windows servers, open your php.ini (which should be in Program Files/PHP), and simply uncomment the extension.\n```\nextension=php_intl.dll\n```\n\n- Debian based Linux (Debian/Ubuntu/Mint/ ...)\n```\nsudo apt-get install php-intl\n```\n\n- Redhat based Linux (Redhat/Centos/ ...)\n```\nsudo dnf -y install php-intl\n```\nRestart your webserver - done.\n\n### Composer installation\n\n```php\ncomposer require php-monsters/laravel-jalali-date\n```\n\n### Integration with Laravel 5.*\n\nAdd package alias to your app aliases (only for Laravel \u003c 5.5):\n\n```php\n// aliases\n'Zaman' =\u003e PhpMonsters\\Zaman\\Facades\\Zaman::class,\n```\n\n### Usage samples\n\n```php\n\n// Jalali to Gregorian samples\necho Zaman::jTog('next week');\necho Zaman::jTog('now');\necho Zaman::jTog('1396-06-30 05:30:10');\necho Zaman::jTog ('۱۳۹۱/۱۰/۱۲ ۲۰:۳۰:۵۵', 'yyyy/MM/dd H:m:s', 'fa', 'en', 'Asia/Tehran');\n\n// Gregorian to Jalali samples \necho Zaman::gToj('2 days ago');\necho Zaman::gToj('2010-10-24 22:50:14');\necho Zaman::gToj('2014-09-21 07:12:54', 'EEEE yyyy/MMMM/dd H:m:s');\n\n// Moment samples\n// JALALI moment\necho Zaman::moment(strtotime('3 hours ago'), Zaman::CAL_JALALI); // \"3 ساعت قبل\"\necho Zaman::momentJalali(strtotime('3 hours ago')); // \"3 ساعت قبل\"\necho Zaman::moment(strtotime('2017-01-02 00:10:20'), Zaman::CAL_JALALI); // \"2 هفته قبل\"\necho Zaman::momentJalali(strtotime('2017-01-02 00:10:20')); // \"2 هفته قبل\"\n\n// GREGORIAN moment\necho Zaman::moment('now', Zaman::CAL_GREGORIAN); // \"May 2017\"\necho Zaman::momentGregorian(1494328806); // \"May 2017\"\necho Zaman::moment('1 month ago', Zaman::CAL_GREGORIAN); // \"last month\"\necho Zaman::momentGregorian(1494334506); // \"last month\"\n\n// HIJRI moment\n// ISN'T implemented yet!!!\n// echo Zaman::moment('now', Zaman::CAL_HIJRI);\n// echo Zaman::momentHijri(1494328806);\n\n// Blade usage example\n{{ Zaman::gToj('2011-11-20 19:12:19') }}\n\n```\n\n### Date/Time formats\n[Supported Formats Documentation](http://userguide.icu-project.org/formatparse/datetime)\n\n## Team\n\nThis component is developed by the following person(s) and a bunch of [awesome contributors](https://github.com/php-monsters/laravel-jalali-date/graphs/contributors).\n\n[![Aboozar Ghaffari](https://avatars1.githubusercontent.com/u/502961?s=130\u0026v=4)](https://github.com/samuraee) |\n--- |\n[Aboozar Ghaffari](https://github.com/samuraee) |\n\n\n## Support this project\n  \nPlease support the package by giving it :star: and contributing to its development.\n\n## License\n\nThe Laravel Jalali Datetime is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-monsters%2Flaravel-jalali-date","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphp-monsters%2Flaravel-jalali-date","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-monsters%2Flaravel-jalali-date/lists"}