jalali icon indicating copy to clipboard operation
jalali copied to clipboard

Support Laravel 11 + PHP 8.3

Open artin1982 opened this issue 11 months ago • 2 comments

I was trying to install the package on Laravel 11 with PHP 8.3 but it failed ...

#composer  require morilog/jalali:3.*

./composer.json has been updated
Running composer update morilog/jalali
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - morilog/jalali[v3.0.0, ..., v3.0.2] require illuminate/support ^5.0 -> found illuminate/support[v5.0.0, ..., v5.8.36] but these were not lo                                                              aded, likely because it conflicts with another require.
    - morilog/jalali[v3.0.3, ..., v3.0.8] require nesbot/carbon ^1.21 -> found nesbot/carbon[1.21.0, ..., 1.39.1] but the package is fixed to 3.1                                                              .1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - morilog/jalali v3.0.9 requires php ^7.0 -> your php version (8.3.4) does not satisfy that requirement.
    - morilog/jalali[v3.0.10, ..., v3.1.2] require php ^7.0 | ^7.1 | ^7.2 -> your php version (8.3.4) does not satisfy that requirement.
    - morilog/jalali[v3.2.0, ..., v3.4.1] require nesbot/carbon ^1.21 || ^2.0 -> found nesbot/carbon[1.21.0, ..., 1.39.1, 2.0.0, ..., 2.72.3] but                                                               the package is fixed to 3.1.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for                                                               the update command.
    - Root composer.json requires morilog/jalali 3.* -> satisfiable by morilog/jalali[v3.0.0, ..., v3.4.1].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

artin1982 avatar Mar 23 '24 07:03 artin1982

same issue

moradimohamad avatar Mar 26 '24 06:03 moradimohamad

You can install it with the following command if you're using laravel11.x composer require morilog/jalali -W

kazemmdev avatar Mar 26 '24 14:03 kazemmdev

Your command Rewrite all old packages. what can we resolve it without change pre-installed packages?

Nashnas avatar May 07 '24 13:05 Nashnas

The v3.4.2 release added support for Carbon 3 which should fix the problem.

omidfarahani avatar May 09 '24 09:05 omidfarahani