This question already has answers here:
Reference - Composer error "Your PHP version does not satisfy requirements" after upgrading PHP
(3 answers)
Closed 8 months ago.
Appreciate this is a common issue but I never understand what Composer is suggesting / wants from me when it throws these sorts of issues.
I have a Laravel app that I'm trying to install a new package into.
The following are the errors, how am I supposed to interpret what it's saying?
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/framework v8.9.0 requires php ^7.3 -> your PHP version (8.0.15) does not satisfy that requirement.
- laravel/framework v8.8.0 requires php ^7.3 -> your PHP version (8.0.15) does not satisfy that requirement.
- laravel/framework v8.7.1 requires php ^7.3 -> your PHP version (8.0.15) does not satisfy that requirement.
- laravel/framework v8.7.0 requires php ^7.3 -> your PHP version (8.0.15) does not satisfy that requirement.
- laravel/framework v8.6.0 requires php ^7.3 -> your PHP version (8.0.15) does not satisfy that requirement.
- laravel/framework v8.5.0 requires php ^7.3 -> your PHP version (8.0.15) does not satisfy that requirement.
... more of the same errors
- Conclusion: don't install laravel/framework v8.83.17
- Conclusion: don't install laravel/framework v8.83.16
- Conclusion: don't install laravel/framework v8.83.15
- Conclusion: don't install laravel/framework v8.83.14
- Conclusion: don't install laravel/framework v8.83.13
- Conclusion: don't install laravel/framework v8.83.12
... more of the same
- Installation request for laravel/framework (locked at v8.21.0, required as ^8.0) -> satisfiable by laravel/framework[v8.21.0].
- Installation request for spatie/laravel-health ^1.9 -> satisfiable by spatie/laravel-health[1.9.0, 1.9.1, 1.9.2].
- Can only install one of: laravel/framework[9.x-dev, 8.x-dev].
- Can only install one of: laravel/framework[v8.12.0, 9.x-dev].
- Can only install one of: laravel/framework[v8.12.1, 9.x-dev].
... more of the same
- Conclusion: install laravel/framework 9.x-dev
- Installation request for laravel/framework ^8.0 -> satisfiable by laravel/framework[8.x-dev, v8.0.0, v8.0.1, v8.0.2, v8.0.3, v8.0.4, v8.1.0, v8.10.0, v8.11.0, v8.11.1, v8.11.2, v8.12.0, v8.12.1, v8.12.2, v8.12.3, v8.13.0, v8.14.0, v8.15.0, v8.16.0, v8.16.1, v8.17.0, v8.17.1, v8.17.2, v8.18.0, v8.18.1, v8.19.0, v8.2.0, v8.20.0, v8.20.1, v8.21.0, v8.22.0, v8.22.1, v8.23.0, v8.23.1, v8.24.0, v8.25.0, v8.26.0, v8.26.1, v8.27.0, v8.28.0, v8.28.1, v8.29.0, v8.3.0, v8.30.0, v8.30.1, v8.31.0, v8.32.0, v8.32.1, v8.33.0, v8.33.1, v8.34.0, v8.35.0, v8.35.1, v8.36.0, v8.36.1, v8.36.2, v8.37.0, v8.38.0, v8.39.0, v8.4.0, v8.40.0, v8.41.0, v8.42.0, v8.42.1, v8.43.0, v8.44.0, v8.45.0, v8.45.1, v8.46.0, v8.47.0, v8.48.0, v8.48.1, v8.48.2, v8.49.0, v8.49.1, v8.49.2, v8.5.0, v8.50.0, v8.51.0, v8.52.0, v8.53.0, v8.53.1, v8.54.0, v8.55.0, v8.56.0, v8.57.0, v8.58.0, v8.59.0, v8.6.0, v8.60.0, v8.61.0, v8.62.0, v8.63.0, v8.64.0, v8.65.0, v8.66.0, v8.67.0, v8.68.0, v8.68.1, v8.69.0, v8.7.0, v8.7.1, v8.70.0, v8.70.1, v8.70.2, v8.71.0, v8.72.0, v8.73.0, v8.73.1, v8.73.2, v8.74.0, v8.75.0, v8.76.0, v8.76.1, v8.76.2, v8.77.0, v8.77.1, v8.78.0, v8.78.1, v8.79.0, v8.8.0, v8.80.0, v8.81.0, v8.82.0, v8.83.0, v8.83.1, v8.83.10, v8.83.11, v8.83.12, v8.83.13, v8.83.14, v8.83.15, v8.83.16, v8.83.17, v8.83.2, v8.83.3, v8.83.4, v8.83.5, v8.83.6, v8.83.7, v8.83.8, v8.83.9, v8.9.0].
You have to upgrade your laravel version to correspond with your PHP 8.0.15 (switch to Laravel version 9) or downgrade your php version to works with Laravel 8.* so use PHP 7.4.30 but it's not recommanded beacuse PHP 7.4 ends support in 28 Nov 2022.
That's it !
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for realrashid/sweet-alert ^2.0 -> satisfiable by realrashid/sweet-alert[v2.0].
- Conclusion: remove laravel/framework v6.0.0
- Conclusion: don't install laravel/framework v6.0.0
- realrashid/sweet-alert v2.0 requires laravel/framework ~5.4.0|~5.8.0|~5.9.0 -> satisfiable by laravel/framework[5.4.x-dev, 5.8.x-dev].
- Can only install one of: laravel/framework[5.8.x-dev, v6.0.0].
- Can only install one of: laravel/framework[5.4.x-dev, v6.0.0].
- Installation request for laravel/framework (locked at v6.0.0, required as ^6.0) -> satisfiable by laravel/framework[v6.0.0].
The realrashid/sweet-alert package has not been updated for use in Laravel 6.0. You will have to wait until it is updated, update the package yourself, or use a different package for SweetAlert2.
Update: The package has been updated for use with Laravel 6.0.
composer require realrashid/sweet-alert
In my Laravel 5.6 application I tried to install laravel-setup-wizard
plugin and got error :
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for marvinlabs/laravel-setup-wizard ^0.2.1 -> satisfiable by marvinlabs/laravel-setup-wizard[0.2.1].
- Conclusion: remove laravel/framework v5.6.33
- Conclusion: don't install laravel/framework v5.6.33
- marvinlabs/laravel-setup-wizard 0.2.1 requires illuminate/support 5.4.* -> satisfiable by illuminate/support[5.4.x-dev, v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9].
- illuminate/support 5.4.x-dev conflicts with laravel/framework[v5.6.33].
- illuminate/support v5.4.0 conflicts with laravel/framework[v5.6.33].
- illuminate/support v5.4.13 conflicts with laravel/framework[v5.6.33].
- illuminate/support v5.4.17 conflicts with laravel/framework[v5.6.33].
- illuminate/support v5.4.19 conflicts with laravel/framework[v5.6.33].
- illuminate/support v5.4.27 conflicts with laravel/framework[v5.6.33].
- illuminate/support v5.4.36 conflicts with laravel/framework[v5.6.33].
- illuminate/support v5.4.9 conflicts with laravel/framework[v5.6.33].
- Installation request for laravel/framework (locked at v5.6.33, required as 5.6.*) -> satisfiable by laravel/framework[v5.6.33].
Installation failed, reverting ./composer.json to its original content.
I have :
$ php artisan --version
Laravel Framework 5.6.33
1) Does it mean that this plugin is not suitable for laravel 5.6 project?
If there is a way to install it somehow?
2) Can you advice some plugin/script compatible with bootstrap 4.1 ?
Thanks!
Yes this means it is compatible with Laravel 5.4 and not with 5.6.
I scrolled through the readme, didn't really do any real research, but i found this:
Credits:
Some code is taken from another similar project: RachidLaasri/LaravelInstaller
Maybe take a look there?
EDIT: I see now that the code has not been updated for over a year. Maybe it is not the best decision to look at libraries which are not in active development. Try to look for something more active. Also, someone opened an issue on the repo almost a year ago that it is not compatible with Laravel 5.5 (So you can conclude altogether it also wont work with Laravel 5.6). To which the author replied that Pull Requests are welcome and that was it, it seems the repo owner wont put any effort in it anymore.
I'm trying to update Laravel 5.3 to Laravel 5.4 that was released yesturday, and I get this message:
Problem 1
- laravelcollective/html 5.3.x-dev requires illuminate/view 5.3.* -> satisfiable by laravel/framework[v5.3.20], illuminate/view[v5.3.0, v5.3.16, v5.3.23, v5.3.4].
- laravelcollective/html 5.3.x-dev requires illuminate/view 5.3.* -> satisfiable by laravel/framework[v5.3.20], illuminate/view[v5.3.0, v5.3.16, v5.3.23, v5.3.4].
- laravelcollective/html 5.3.x-dev requires illuminate/view 5.3.* -> satisfiable by laravel/framework[v5.3.20], illuminate/view[v5.3.0, v5.3.16, v5.3.23, v5.3.4].
- Can only install one of: laravel/framework[v5.4.0, v5.3.20].
- don't install illuminate/view v5.3.0|don't install laravel/framework v5.4.0
- don't install illuminate/view v5.3.16|don't install laravel/framework v5.4.0
- don't install illuminate/view v5.3.23|don't install laravel/framework v5.4.0
- don't install illuminate/view v5.3.4|don't install laravel/framework v5.4.0
- Installation request for laravel/framework 5.4.0 -> satisfiable by laravel/framework[v5.4.0].
- Installation request for laravelcollective/html 5.3.*-dev -> satisfiable by laravelcollective/html[5.3.x-dev].
Thing is I don't see laravelcollective has release a 5.4 version.
Do I need to wait for them to release new version or am I missing something?
Why isn't it in the upgrade guide, it is a quite important lib in Laravel.
You have some options. Laravel Collective is a popular package, so people are already applying the fixes required for it to work on 5.4. Check out the following thread on a pull request.
https://github.com/LaravelCollective/html/pull/276
So, in order to use the package with 5.4, based on comments in the thread, you'll need to change your composer.json to look like this.
"laravel/collective": "5.4.x-dev",
Then run composer update
If you want you can also use a specific commit. In this case, to use the commit on this pull request, your composer.json would look like so.
"laravelcollective/html": "dev-master#92f3ba71c5c11c752ddd68d614f5f0665e759220",
I'm trying to install Laravel on Web Station in my Synology NAS with DSM 6. After installing composer I run the command composer create-project laravel/laravel web-project but all I got is this error.
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/framework v5.3.0 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0].
- laravel/framework v5.3.1 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0].
- laravel/framework v5.3.10 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0].
- laravel/framework v5.3.11 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0].
- laravel/framework v5.3.12 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0].
- laravel/framework v5.3.13 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0].
- laravel/framework v5.3.14 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0].
- laravel/framework v5.3.15 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0].
- laravel/framework v5.3.16 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0].
- laravel/framework v5.3.17 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0].
- laravel/framework v5.3.18 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0].
- laravel/framework v5.3.2 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0].
- laravel/framework v5.3.3 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0].
- laravel/framework v5.3.4 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0].
- laravel/framework v5.3.5 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0].
- laravel/framework v5.3.6 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0].
- laravel/framework v5.3.7 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0].
- laravel/framework v5.3.8 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0].
- laravel/framework v5.3.9 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0].
- classpreloader/classpreloader 3.0.0 requires nikic/php-parser ^1.0|^2.0 -> satisfiable by nikic/php-parser[v1.0.0, v1.0.1, v1.0.2, v1.1.0, v1.2.0, v1.2.1, v1.2.2, v1.3.0, v1.4.0, v1.4.1, v2.0.0, v2.0.1, v2.1.0, v2.1.1].
- nikic/php-parser v2.1.1 requires ext-tokenizer * -> the requested PHP extension tokenizer is missing from your system.
- nikic/php-parser v2.1.0 requires ext-tokenizer * -> the requested PHP extension tokenizer is missing from your system.
- nikic/php-parser v2.0.1 requires ext-tokenizer * -> the requested PHP extension tokenizer is missing from your system.
- nikic/php-parser v2.0.0 requires ext-tokenizer * -> the requested PHP extension tokenizer is missing from your system.
- nikic/php-parser v1.4.1 requires ext-tokenizer * -> the requested PHP extension tokenizer is missing from your system.
- nikic/php-parser v1.4.0 requires ext-tokenizer * -> the requested PHP extension tokenizer is missing from your system.
- nikic/php-parser v1.3.0 requires ext-tokenizer * -> the requested PHP extension tokenizer is missing from your system.
- nikic/php-parser v1.2.2 requires ext-tokenizer * -> the requested PHP extension tokenizer is missing from your system.
- nikic/php-parser v1.2.1 requires ext-tokenizer * -> the requested PHP extension tokenizer is missing from your system.
- nikic/php-parser v1.2.0 requires ext-tokenizer * -> the requested PHP extension tokenizer is missing from your system.
- nikic/php-parser v1.1.0 requires ext-tokenizer * -> the requested PHP extension tokenizer is missing from your system.
- nikic/php-parser v1.0.2 requires ext-tokenizer * -> the requested PHP extension tokenizer is missing from your system.
- nikic/php-parser v1.0.1 requires ext-tokenizer * -> the requested PHP extension tokenizer is missing from your system.
- nikic/php-parser v1.0.0 requires ext-tokenizer * -> the requested PHP extension tokenizer is missing from your system.
- Installation request for laravel/framework 5.3.* -> satisfiable by laravel/framework[v5.3.0, v5.3.1, v5.3.10, v5.3.11, v5.3.12, v5.3.13, v5.3.14, v5.3.15, v5.3.16, v5.3.17, v5.3.18, v5.3.2, v5.3.3, v5.3.4, v5.3.5, v5.3.6, v5.3.7, v5.3.8, v5.3.9].
To enable extensions, verify that they are enabled in those .ini files:
- /etc/php/php.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
Also checked my Web Station config and saw that the tokenizer extension is missing but I see no option to install it.
So, my question is: How can I add the tokenizer extension to PHP on my Synology NAS?
PHP version is 5.6.
Thanks
You have to use php56 instead of php command.
Exemple: php56 composer.phar create-project laravel/laravel theproject "5.2.*"
run composer self-update then try to create a project in a new folder.
and it fails, you can change the laravel version to one below for example composer create-project laravel/laravel web-project "5.2.*"