morilog / jalali

This Package helps developers to easily work with Jalali (Shamsi or Iranian) dates in php appliations, based on Jalali (Shamsi) DateTime class.
MIT License
851 stars 107 forks source link

Support Laravel 11 + PHP 8.3 #168

Closed artin1982 closed 2 weeks ago

artin1982 commented 3 months ago

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.
moradimohamad commented 3 months ago

same issue

kazemmdev commented 3 months ago

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

Nashnas commented 2 months ago

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

omidfarahani commented 1 month ago

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