New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

hekmatinasser/verta

This Package helps developers to work with Jalali Datetime class for Laravel Framework PHP
667,699 665

Larablocks Analysis

hekmatinasser/verta works with Laravel 8 to 13 (latest release v9.3, Oct 25, 2026).

Laravel 5, 6 and 7 in earlier releases.

Recommendation checks

Recommended

Recommended by Larablocks: meets all 4 checks.

  • Works with Laravel 13, the current version
  • Released in the last 12 months (Oct 25, 2026)
  • 26,561 downloads a month (at least 10,000)
  • 665 GitHub stars (at least 100)

State

Actively maintained
  • Last stable release: Oct 25, 2026.
  • 4 releases in the last 12 months.
  • First released: May 26, 2017.
  • Monthly downloads: 26,561, up 204% from six months ago.
  • 2 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Dec 4, 2026.

Install
composer require hekmatinasser/verta
Latest Version:v9.3
PHP:^8.0
Laravel:8 – 13
Older releases:5 · 6 · 7
License:MIT
Last Updated:Oct 26, 2026
Links: GitHub  ·  Packagist
Maintainer: hekmati.nasser

jalali

hekmatinasser/verta

Latest Stable Version Total Downloads License

English Document

The Verta is package for change solar calendar and gregorian together and provide helper function to use date and time.

Verta extend class PHP Datetime and Jalali, compatible with Carbon Package.

This package has been created by Nasser Hekmati under the license of MIT.

Quick view

Installation

composer require hekmatinasser/verta
Laravel Version Package Version
8.0 8.0
9.0 8.2
10.0 8.3
11.0 8.4
12.0 8.5
13.0 9

Usage

use verta datetime jalali

echo verta(); //1401-05-24 00:00:00
Gregorian to Jalali

change gregorian to jalali and reverse

echo verta('2022-08-15'); //1401-05-24 00:00:00
jalali to Gregorian

change jalali to gregorian and reverse

echo Verta::parse('1401-05-24 14:12:32')->datetime(); //2022-08-15 00:00:00
Carbon to Jalali

change carbon to jalali and reverse

echo now()->toJalali(); //1401-05-24 00:00:00
Jalali to Carbon

change jalali to gregorian and reverse

echo verta()->toCarbon(); //2022-08-15 00:00:00

view more function

Getters

access part of jalali datetime

$v = verta(); // 1396-03-14 14:18:23
echo $v->year; // 1396

view more getter

Setters

set part of jalali datetime

$v = verta(); // 1396-03-14 14:18:23
echo $v->year = 1395;

view more setter

Fluent Setters

set multiple part of jalali datetime

$v = verta(); // 1396-03-14 14:18:23
echo $v->setTimeString('12:25:45');

view more fluent setter

Formatting

show datetime variant datetime

echo verta()->format('Y.m.d'); // 1401.05.24
echo verta()->formatWord('l dS F'); // دوشنبه بیست و چهارم مرداد

view more format

Common Formats

show common datetime variant datetime

echo verta()->formatJalaliDatetime(); // output 1395/10/07 14:12:25

view more common format

Difference for Humans

show difference format readable humans

echo verta('-13 month')->formatDifference(); // 1 سال قبل

view more format difference

Modification

manipulate jalali datetime

echo verta()->addWeeks(3); 
...

view more modifications

Boundaries

get boundary jalali datetime

echo verta()->startWeek(3); 

view more boundaries

Compression

get compression jalali datetime

echo verta('+2 day')->gte('2022-08-15');

view more compression

Difference

calculate difference two jalali datetime

echo verta('+13 day')->diffMonths('2022-08-15'); 

view more differences

Validation

check datetime check is valid

echo Verta::isLeapYear(1394); // false

view more validations

Localization

set language for formatting datetime

Verta::setLocale('ar');

view more localizations

Validation Request

validation input form

'birthday' => ['required', 'jdate_before_equal']

view more localizations

Licence

This package has been created by Nasser Hekmati under the license of MIT.

Contributors

Thanks to people who contributed for grow verta.

Alternatives to hekmatinasser/verta

jenssegers/date

A date library to help you work with dates in different languages

11,801,317 1,794
frostealth/kronika

DateTime value objects such as Date, Time, LocalDateTime, etc.

1,449 0
miladr/jalali

This Package helps developers to easily work with Jalali (Shamsi or Iranian) dat...

10,025 48
techies-africa/laravel-nomad

Automatic UTC-to-user-timezone conversion for Laravel Eloquent models

1,578 0
opilo/farsi

Farsi Tools for Dates and Numbers and Strings (with Laravel Validation Support)

3,452 31

Version History

Version Released PHP Laravel License
v9.3 ^8.0 >=8.0 MIT
v9.2 ^8.0 >=8.0 MIT
v9.1 ^8.0 >=8.0 MIT
v9.0 ^8.0 ^8.0|^9.0|^10.0|^11.0|^12.0|^13.0 MIT
v8.5 ^8.0 ^8.0|^9.0|^10.0|^11.0|^12.0 MIT