diff --git a/README.en.md b/README.en.md index 4f03126..ae5f033 100644 --- a/README.en.md +++ b/README.en.md @@ -12,12 +12,22 @@ hekmatinasser/verta - Verta is a package for conversions jalali and datetime and includes auxiliary functions that allow users to easily convert their datetime. - PHP language has a class for the Datetime that Verta has inherited from the same class. -- This package is compatible with the laravel versions `5.x`. - Verta Package includes the conversion algorithm from Jalali to Gregorian and vice versa. The algorithm for the datetime converter is based on Jalali Vahid Sohrab Lo, Roozbeh Pournader and Mohammad Tusi's algorithm. ## Install -To install Verta, enter the following command +To install Verta in Laravel 5.x, enter the following command + +```json + ... + "require": { + ..., + "hekmatinasser/verta": "^1" + }, + +``` + +To install Verta in install Laravel 6, enter the following command $ composer require hekmatinasser/verta diff --git a/README.md b/README.md index 8b2b694..573e303 100644 --- a/README.md +++ b/README.md @@ -13,14 +13,24 @@ hekmatinasser/verta - ورتا پکیجی برای تبدیلات تاریخ شمسی و میلادی به یکدیگر و شامل توابع کمکی که کاربران به راحتی بتوانند تبدیلات تاریخ خود را انجام دهند - زبان پی اچ پی دارای کلاسی برای تاریخ و زمان است که ورتا از همین کلاس ارث بری کرده است -- این پکیج با نسخه های لاراول `5` سازگار می باشد - ورتا از الگوریتم تبدیل تاریخ شمسی به میلادی و بالعکس استفاده می کند. الگوریتم مبدل تاریخ بر اساس الگوریتم تاریخ جلالی وحید سهراب لو، روزبه پورنادر و محمد توسی می باشد ## نصب -برای نصب ورتا دستور زیر را وارد کنید +برای نصب در نسخه 5 لاراول دستور زیر را وارد کنید + +```json + ... + "require": { + ..., + "hekmatinasser/verta": "^1" + }, + +``` + +برای نصب در نسخه 6 لاراول دستور زیر را وارد کنید $ composer require hekmatinasser/verta diff --git a/composer.json b/composer.json index 649cbcb..56bbac1 100755 --- a/composer.json +++ b/composer.json @@ -12,8 +12,8 @@ "require": { "php": ">=5.5", "hekmatinasser/notowo": "^1.0", - "illuminate/validation": "^5", - "illuminate/support": "^5" + "illuminate/validation": "^6", + "illuminate/support": "^6" }, "require-dev" : { "phpunit/phpunit": "7.2.*",