Failed to run composer require symfony/mailer - composer-php

I'm trying to run composer require symfony/mailer to use it in Symfony 4 project, but it returns an error :
Your requirements could not be resolved to an installable set of packages.
Problem 1
- symfony/mailer[v5.4.0, ..., v5.4.8] require symfony/mime ^5.2.6|^6.0 -> found symfony/mime[v5.2.6, ..., v5.4.9, v6.0.0, ..., v6.1.1] but the package is fixed to v4.4.42 (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 symfony/mailer ^5.4 -> satisfiable by symfony/mailer[v5.4.0, ..., v5.4.8].
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
And when I run composer -vvv --no-plugins require --no-scripts -W symfony/mailer I got this :
Problem 1
- symfony/mailer[v5.4.0, v5.4.2, v5.4.3, v5.4.5, v5.4.7, v5.4.8] require
symfony/mime ^5.2.6|^6.0 -> satisfiable by symfony/mime[v5.2.6,
v5.2.7, v5.2.9, v5.2.10, v5.2.11, v5.2.12, v5.3.0, v5.3.2, v5.3.4,
v5.3.7, v5.3.8, v5.3.11
, v5.3.13, v5.3.14, v5.4.0, v5.4.2, v5.4.3, v5.4.7, v5.4.8, v5.4.9,
v6.0.0, v6.0.1, v6.0.2, v6.0.3, v6.0.7, v6.0.8, v6.0.9, v6.1.0,
v6.1.1].
- __root__ dev-develop conflicts with symfony/mime v5.3.7.
- __root__ dev-develop conflicts with symfony/mime v5.3.8.
- __root__ dev-develop conflicts with symfony/mime v5.3.2.
- __root__ dev-develop conflicts with symfony/mime v5.3.4.
- __root__ dev-develop conflicts with symfony/mime v5.3.0.
- __root__ dev-develop conflicts with symfony/mime v5.2.12.
- __root__ dev-develop conflicts with symfony/mime v5.2.11.
- __root__ dev-develop conflicts with symfony/mime v5.2.10.
- __root__ dev-develop conflicts with symfony/mime v5.4.9.
- __root__ dev-develop conflicts with symfony/mime v5.4.7.
- __root__ dev-develop conflicts with symfony/mime v5.4.8.
- __root__ dev-develop conflicts with symfony/mime v5.4.2.
- __root__ dev-develop conflicts with symfony/mime v5.4.3.
- __root__ dev-develop conflicts with symfony/mime v5.4.0.
- __root__ dev-develop conflicts with symfony/mime v5.2.7.
- __root__ dev-develop conflicts with symfony/mime v5.2.9.
- __root__ dev-develop conflicts with symfony/mime v5.2.6.
- __root__ dev-develop conflicts with symfony/mime v5.3.11.
- __root__ dev-develop conflicts with symfony/mime v5.3.13.
- __root__ dev-develop conflicts with symfony/mime v5.3.14.
- symfony/mime[v6.0.0, v6.0.1, v6.0.2, v6.0.3, v6.0.7, v6.0.8, v6.0.9] require php >=8.0.2 -> your php version (7.3.21) does not satisfy that requirement.
- symfony/mime[v6.1.0, v6.1.1] require php >=8.1 -> your php version (7.3.21) does not satisfy that requirement.
- __root__ is present at version dev-develop and cannot be modified by Composer
- Root composer.json requires symfony/mailer ^5.4 -> satisfiable by symfony/mailer[v5.4.0, v5.4.2, v5.4.3, v5.4.5, v5.4.7, v5.4.8].
Any idea how to solve it ?

symfony/mailer is fixed/locked to v4.4.42 in your project.
Run the Composer require command with --with-all-dependencies (-W) to see if it solves your problem:
composer require -W symfony/mailer
symfony/mailer is the only problem you have with your (current) lock file.

Related

Which Passport version is compatible with Laravel 5.7.15, default installation does not work

As a part of Laravel 5.7 setup, I am trying to install Passport using the command:
composer require laravel/passport
But it doesn't work and gives the error:
Using version ^8.0 for laravel/passport
./composer.json has been updated
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: remove laravel/framework v5.7.15
- Conclusion: don't install laravel/framework v5.7.15
- laravel/passport 8.x-dev requires illuminate/support ^6.0|^7.0 -> satisfiable by laravel/framework[6.x-dev], illuminate/support[6.x-dev, 7.0.x-dev, v6.0.0, v6.0.1, v6.0.2, v6.0.3, v6.0.4, v6.1.0, v6.2.0, v6.3.0, v6.4.1, v6.5.0, v6.5.1, v6.5.2, v6.6.0].
- laravel/passport v8.0.0 requires illuminate/support ^6.0|^7.0 -> satisfiable by laravel/framework[6.x-dev], illuminate/support[6.x-dev, 7.0.x-dev, v6.0.0, v6.0.1, v6.0.2, v6.0.3, v6.0.4, v6.1.0, v6.2.0, v6.3.0, v6.4.1, v6.5.0, v6.5.1, v6.5.2, v6.6.0].
- laravel/passport v8.0.1 requires illuminate/support ^6.0|^7.0 -> satisfiable by laravel/framework[6.x-dev], illuminate/support[6.x-dev, 7.0.x-dev, v6.0.0, v6.0.1, v6.0.2, v6.0.3, v6.0.4, v6.1.0, v6.2.0, v6.3.0, v6.4.1, v6.5.0, v6.5.1, v6.5.2, v6.6.0].
- laravel/passport v8.0.2 requires illuminate/support ^6.0|^7.0 -> satisfiable by laravel/framework[6.x-dev], illuminate/support[6.x-dev, 7.0.x-dev, v6.0.0, v6.0.1, v6.0.2, v6.0.3, v6.0.4, v6.1.0, v6.2.0, v6.3.0, v6.4.1, v6.5.0, v6.5.1, v6.5.2, v6.6.0].
- Can only install one of: laravel/framework[6.x-dev, v5.7.15].
- don't install illuminate/support 6.x-dev|don't install laravel/framework v5.7.15
- don't install illuminate/support v6.0.0|don't install laravel/framework v5.7.15
- don't install illuminate/support v6.0.1|don't install laravel/framework v5.7.15
- don't install illuminate/support v6.0.2|don't install laravel/framework v5.7.15
- don't install illuminate/support v6.0.3|don't install laravel/framework v5.7.15
- don't install illuminate/support v6.0.4|don't install laravel/framework v5.7.15
- don't install illuminate/support v6.1.0|don't install laravel/framework v5.7.15
- don't install illuminate/support v6.2.0|don't install laravel/framework v5.7.15
- don't install illuminate/support v6.3.0|don't install laravel/framework v5.7.15
- don't install illuminate/support v6.4.1|don't install laravel/framework v5.7.15
- don't install illuminate/support v6.5.0|don't install laravel/framework v5.7.15
- don't install illuminate/support v6.5.1|don't install laravel/framework v5.7.15
- don't install illuminate/support v6.5.2|don't install laravel/framework v5.7.15
- don't install illuminate/support v6.6.0|don't install laravel/framework v5.7.15
- don't install illuminate/support 7.0.x-dev|don't install laravel/framework v5.7.15
- Installation request for laravel/framework (locked at v5.7.15, required as 5.7.*) -> satisfiable by laravel/framework[v5.7.15].
- Installation request for laravel/passport ^8.0 -> satisfiable by laravel/passport[8.x-dev, v8.0.0, v8.0.1, v8.0.2].
Installation failed, reverting ./composer.json to its original content.
It looks like the Passport version 8.0 is not compatible with the Version 5.7.15 of Laravel, which version is compatible here?
I have simply chosen the older version of Passport: v7.5.1
composer require laravel/passport "7.5.1"
and the installation worked successfully:
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 15 installs, 0 updates, 0 removals
- Installing psr/http-message (1.0.1): Loading from cache
- Installing psr/http-factory (1.0.1): Loading from cache
- Installing zendframework/zend-diactoros (2.2.1): Loading from cache
- Installing symfony/psr-http-message-bridge (v1.3.0): Loading from cache
- Installing phpseclib/phpseclib (2.0.23): Loading from cache
- Installing defuse/php-encryption (v2.2.1): Loading from cache
- Installing lcobucci/jwt (3.3.1): Loading from cache
- Installing league/event (2.2.0): Loading from cache
- Installing league/oauth2-server (7.4.0): Downloading (100%)
- Installing ralouphie/getallheaders (3.0.3): Loading from cache
- Installing guzzlehttp/psr7 (1.6.1): Loading from cache
- Installing guzzlehttp/promises (v1.3.1): Loading from cache
- Installing guzzlehttp/guzzle (6.4.1): Loading from cache
- Installing firebase/php-jwt (v5.0.0): Loading from cache
- Installing laravel/passport (v7.5.1): Downloading (100%)
symfony/psr-http-message-bridge suggests installing nyholm/psr7 (For a super lightweight PSR-7/17 implementation)
phpseclib/phpseclib suggests installing ext-libsodium (SSH2/SFTP can make use of some algorithms provided by the libsodium-php extension.)
phpseclib/phpseclib suggests installing ext-mcrypt (Install the Mcrypt extension in order to speed up a few other cryptographic operations.)
phpseclib/phpseclib suggests installing ext-gmp (Install the GMP (GNU Multiple Precision) extension in order to speed up arbitrary precision integer arithmetic operations.)
guzzlehttp/psr7 suggests installing zendframework/zend-httphandlerrunner (Emit PSR-7 responses)
Writing lock file
Generating optimized autoload files
Carbon 1 is deprecated, see how to migrate to Carbon 2.
https://carbon.nesbot.com/docs/#api-carbon-2
You can run './vendor/bin/upgrade-carbon' to get help in updating carbon and other frameworks and libraries that depend on it.
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> #php artisan package:discover --ansi
Discovered Package: beyondcode/laravel-dump-server
Discovered Package: fideloper/proxy
Discovered Package: laravel/passport
Discovered Package: laravel/tinker
Discovered Package: nesbot/carbon
Discovered Package: nunomaduro/collision
Package manifest generated successfully.
Passport 10.* requires Laravel 8.*.
https://github.com/laravel/passport/blob/master/UPGRADE.md

Composer error when trying to upgrade from Laravel 5.2 to Laravel 5.3

I followed the instructions on the official Laravel doc site. So here is my composer file. I changed the symfony/css-selector and symfony/dom-crawler versions to 3.1 but still get this error:
Can only install one of: symfony/console[v3.1.0, v2.7.9].
- laravel/framework v5.3.0 requires symfony/console 3.1.* -> satisfiable by symfony/console[v3.1.0, v3.1.1, v3.1.10, v3.1.2,
v3.1.3, v3.1.4, v3.1.5, v3.1.6, v3.1.7, v3.1.8, v3.1.9].
- Conclusion: don't install symfony/console v3.1.9|install kzykhys/ciconia v1.0.3
- Installation request for kzykhys/ciconia ~1.0.0 -> satisfiable by kzykhys/ciconia[v1.0.0, v1.0.1, v1.0.2, v1.0.3].
"require": {
"php": ">=5.6.4",
"laravel/framework": "5.3.*",
"stevebauman/location": "1.3.*",
"dingo/api": "1.0.*#dev",
"yajra/laravel-datatables-oracle": "~6.0",
"kzykhys/ciconia": "~1.0.0",
"barryvdh/laravel-ide-helper": "^2.1",
"cornford/googlmapper": "2.*",
"likey/wiqi": "dev-master",
"predis/predis": "^1.1",
"rap2hpoutre/laravel-log-viewer": "^0.7.0",
"nicolaslopezj/searchable": "1.*",
"algolia/algoliasearch-laravel": "^1.3",
"bcdh/exist-db-rest-client": "^1.0",
"barryvdh/laravel-cors": "^0.8.2",
"artesaos/seotools": "^0.10.0",
"htmlmin/htmlmin": "^5.6",
"contentful/contentful": "2.*"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~4.0",
"symfony/css-selector": "3.1.*",
"symfony/dom-crawler": "3.1.*",
"oriceon/oauth-5-laravel": "dev-master",
"xethron/migrations-generator": "dev-l5",
"way/generators": "dev-master"
},
I get this error when I try to run composer update --no-scripts
Problem 1
- Conclusion: don't install laravel/framework v5.3.31
- Conclusion: don't install laravel/framework v5.3.30
....
install symfony/console v2.8.44|install symfony/console v2.8.45
- 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.19, v5.3.2, v5.3.20, v5.3.21, v5.3.22, v5.3.23, v5.3.24, v5.3.25, v5.3.26, v5.3.27, v5.3.28, v5.3.29, v5.3.3, v5.3.30, v5.3.31, v5.3.4, v5.3.5, v5.3.6, v5.3.7, v5.3.8, v5.3.9].
- Conclusion: don't install kzykhys/ciconia v1.0.3
- Conclusion: don't install symfony/console v3.1.1|install kzykhys/ciconia v1.0.3
- Conclusion: don't install symfony/console v3.1.2|install kzykhys/ciconia v1.0.3
- Conclusion: don't install symfony/console v3.1.3|install kzykhys/ciconia v1.0.3
- Conclusion: don't install symfony/console v3.1.4|install kzykhys/ciconia v1.0.3
- Conclusion: don't install symfony/console v3.1.5|install kzykhys/ciconia v1.0.3
- Conclusion: don't install symfony/console v3.1.6|install kzykhys/ciconia v1.0.3
- Conclusion: don't install symfony/console v3.1.7|install kzykhys/ciconia v1.0.3
- Conclusion: don't install symfony/console v3.1.8|install kzykhys/ciconia v1.0.3
The reason why you can't update is because you have package named kzykhys/ciconia if you look inside the composer.json of it you will notice the line that requires this package to have "symfony/console":">=2.3,<2.5-dev" with conflicts with the laravel/framework requirements because it requires "symfony/console": "3.1.*""
| | kzykhys/ciconia | laravel/framework |
|---------------------------|-----------------|-------------------|
| `symfony/console` version | >=2.3,<2.5-dev | 3.1.* |

Installation failed while installing Laravel's Valet due to conflicts

I was having some problems with Laravel's Valet, so I attempted to uninstall and reinstall. Upon reinstallation, when I type the command composer global require laravel/valet I get this extremely lengthy error
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: don't install symfony/process v3.4.1
- Conclusion: don't install laravel/valet v2.0.6
- Conclusion: don't install laravel/valet v2.0.5
- Conclusion: don't install laravel/valet v2.0.4
- Conclusion: don't install laravel/valet v2.0.3
- Conclusion: don't install laravel/valet v2.0.1
- Conclusion: don't install symfony/process v3.4.0
- Conclusion: remove symfony/console v4.0.1
- Conclusion: don't install symfony/console v4.0.1
- symfony/process v2.7.0 conflicts with symfony/console[v4.0.1].
- symfony/process v2.7.1 conflicts with symfony/console[v4.0.1].
- symfony/process v2.7.10 conflicts with symfony/console[v4.0.1].
- symfony/process v2.7.11 conflicts with symfony/console[v4.0.1].
- symfony/process v2.7.12 conflicts with symfony/console[v4.0.1].
- symfony/process v2.7.13 conflicts with symfony/console[v4.0.1].
- symfony/process v2.7.14 conflicts with symfony/console[v4.0.1].
- symfony/process v2.7.15 conflicts with symfony/console[v4.0.1].
- symfony/process v2.7.16 conflicts with symfony/console[v4.0.1].
- symfony/process v2.7.17 conflicts with symfony/console[v4.0.1].
- symfony/process v2.7.18 conflicts with symfony/console[v4.0.1].
- symfony/process v2.7.19 conflicts with symfony/console[v4.0.1].
- symfony/process v2.7.2 conflicts with symfony/console[v4.0.1].
- symfony/process v2.7.20 conflicts with symfony/console[v4.0.1].
- symfony/process v2.7.21 conflicts with symfony/console[v4.0.1].
- symfony/process v2.7.22 conflicts with symfony/console[v4.0.1].
- symfony/process v2.7.23 conflicts with symfony/console[v4.0.1].
- symfony/process v2.7.24 conflicts with symfony/console[v4.0.1].
- symfony/process v2.7.25 conflicts with symfony/console[v4.0.1].
- symfony/process v2.7.26 conflicts with symfony/console[v4.0.1].
- symfony/process v2.7.27 conflicts with symfony/console[v4.0.1].
- symfony/process v2.7.28 conflicts with symfony/console[v4.0.1].
- symfony/process v2.7.29 conflicts with symfony/console[v4.0.1].
- symfony/process v2.7.3 conflicts with symfony/console[v4.0.1].
- symfony/process v2.7.30 conflicts with symfony/console[v4.0.1].
- symfony/process v2.7.31 conflicts with symfony/console[v4.0.1].
- symfony/process v2.7.32 conflicts with symfony/console[v4.0.1].
- symfony/process v2.7.33 conflicts with symfony/console[v4.0.1].
- symfony/process v2.7.34 conflicts with symfony/console[v4.0.1].
- symfony/process v2.7.35 conflicts with symfony/console[v4.0.1].
- symfony/process v2.7.36 conflicts with symfony/console[v4.0.1].
- symfony/process v2.7.37 conflicts with symfony/console[v4.0.1].
- symfony/process v2.7.38 conflicts with symfony/console[v4.0.1].
- symfony/process v2.7.39 conflicts with symfony/console[v4.0.1].
- symfony/process v2.7.4 conflicts with symfony/console[v4.0.1].
- symfony/process v2.7.5 conflicts with symfony/console[v4.0.1].
- symfony/process v2.7.6 conflicts with symfony/console[v4.0.1].
- symfony/process v2.7.7 conflicts with symfony/console[v4.0.1].
- symfony/process v2.7.8 conflicts with symfony/console[v4.0.1].
- symfony/process v2.7.9 conflicts with symfony/console[v4.0.1].
- symfony/process v2.8.0 conflicts with symfony/console[v4.0.1].
- symfony/process v2.8.1 conflicts with symfony/console[v4.0.1].
- symfony/process v2.8.10 conflicts with symfony/console[v4.0.1].
- symfony/process v2.8.11 conflicts with symfony/console[v4.0.1].
- symfony/process v2.8.12 conflicts with symfony/console[v4.0.1].
- symfony/process v2.8.13 conflicts with symfony/console[v4.0.1].
- symfony/process v2.8.14 conflicts with symfony/console[v4.0.1].
- symfony/process v2.8.15 conflicts with symfony/console[v4.0.1].
- symfony/process v2.8.16 conflicts with symfony/console[v4.0.1].
- symfony/process v2.8.17 conflicts with symfony/console[v4.0.1].
- symfony/process v2.8.18 conflicts with symfony/console[v4.0.1].
- symfony/process v2.8.19 conflicts with symfony/console[v4.0.1].
- symfony/process v2.8.2 conflicts with symfony/console[v4.0.1].
- symfony/process v2.8.20 conflicts with symfony/console[v4.0.1].
- symfony/process v2.8.21 conflicts with symfony/console[v4.0.1].
- symfony/process v2.8.22 conflicts with symfony/console[v4.0.1].
- symfony/process v2.8.23 conflicts with symfony/console[v4.0.1].
- symfony/process v2.8.24 conflicts with symfony/console[v4.0.1].
- symfony/process v2.8.25 conflicts with symfony/console[v4.0.1].
- symfony/process v2.8.26 conflicts with symfony/console[v4.0.1].
- symfony/process v2.8.27 conflicts with symfony/console[v4.0.1].
- symfony/process v2.8.28 conflicts with symfony/console[v4.0.1].
- symfony/process v2.8.29 conflicts with symfony/console[v4.0.1].
- symfony/process v2.8.3 conflicts with symfony/console[v4.0.1].
- symfony/process v2.8.30 conflicts with symfony/console[v4.0.1].
- symfony/process v2.8.31 conflicts with symfony/console[v4.0.1].
- symfony/process v2.8.32 conflicts with symfony/console[v4.0.1].
- symfony/process v2.8.4 conflicts with symfony/console[v4.0.1].
- symfony/process v2.8.5 conflicts with symfony/console[v4.0.1].
- symfony/process v2.8.6 conflicts with symfony/console[v4.0.1].
- symfony/process v2.8.7 conflicts with symfony/console[v4.0.1].
- symfony/process v2.8.8 conflicts with symfony/console[v4.0.1].
- symfony/process v2.8.9 conflicts with symfony/console[v4.0.1].
- symfony/process v3.0.0 conflicts with symfony/console[v4.0.1].
- symfony/process v3.0.1 conflicts with symfony/console[v4.0.1].
- symfony/process v3.0.2 conflicts with symfony/console[v4.0.1].
- symfony/process v3.0.3 conflicts with symfony/console[v4.0.1].
- symfony/process v3.0.4 conflicts with symfony/console[v4.0.1].
- symfony/process v3.0.5 conflicts with symfony/console[v4.0.1].
- symfony/process v3.0.6 conflicts with symfony/console[v4.0.1].
- symfony/process v3.0.7 conflicts with symfony/console[v4.0.1].
- symfony/process v3.0.8 conflicts with symfony/console[v4.0.1].
- symfony/process v3.0.9 conflicts with symfony/console[v4.0.1].
- symfony/process v3.1.0 conflicts with symfony/console[v4.0.1].
- symfony/process v3.1.1 conflicts with symfony/console[v4.0.1].
- symfony/process v3.1.10 conflicts with symfony/console[v4.0.1].
- symfony/process v3.1.2 conflicts with symfony/console[v4.0.1].
- symfony/process v3.1.3 conflicts with symfony/console[v4.0.1].
- symfony/process v3.1.4 conflicts with symfony/console[v4.0.1].
- symfony/process v3.1.5 conflicts with symfony/console[v4.0.1].
- symfony/process v3.1.6 conflicts with symfony/console[v4.0.1].
- symfony/process v3.1.7 conflicts with symfony/console[v4.0.1].
- symfony/process v3.1.8 conflicts with symfony/console[v4.0.1].
- symfony/process v3.1.9 conflicts with symfony/console[v4.0.1].
- symfony/process v3.2.0 conflicts with symfony/console[v4.0.1].
- symfony/process v3.2.1 conflicts with symfony/console[v4.0.1].
- symfony/process v3.2.10 conflicts with symfony/console[v4.0.1].
- symfony/process v3.2.11 conflicts with symfony/console[v4.0.1].
- symfony/process v3.2.12 conflicts with symfony/console[v4.0.1].
- symfony/process v3.2.13 conflicts with symfony/console[v4.0.1].
- symfony/process v3.2.14 conflicts with symfony/console[v4.0.1].
- symfony/process v3.2.2 conflicts with symfony/console[v4.0.1].
- symfony/process v3.2.3 conflicts with symfony/console[v4.0.1].
- symfony/process v3.2.4 conflicts with symfony/console[v4.0.1].
- symfony/process v3.2.5 conflicts with symfony/console[v4.0.1].
- symfony/process v3.2.6 conflicts with symfony/console[v4.0.1].
- symfony/process v3.2.7 conflicts with symfony/console[v4.0.1].
- symfony/process v3.2.8 conflicts with symfony/console[v4.0.1].
- symfony/process v3.2.9 conflicts with symfony/console[v4.0.1].
- Conclusion: remove symfony/process v4.0.1|install symfony/process v2.7.0|install symfony/process v2.7.1|install symfony/process v2.7.10|install symfony/process v2.7.11|install symfony/process v2.7.12|install symfony/process v2.7.13|install symfony/process v2.7.14|install symfony/process v2.7.15|install symfony/process v2.7.16|install symfony/process v2.7.17|install symfony/process v2.7.18|install symfony/process v2.7.19|install symfony/process v2.7.2|install symfony/process v2.7.20|install symfony/process v2.7.21|install symfony/process v2.7.22|install symfony/process v2.7.23|install symfony/process v2.7.24|install symfony/process v2.7.25|install symfony/process v2.7.26|install symfony/process v2.7.27|install symfony/process v2.7.28|install symfony/process v2.7.29|install symfony/process v2.7.3|install symfony/process v2.7.30|install symfony/process v2.7.31|install symfony/process v2.7.32|install symfony/process v2.7.33|install symfony/process v2.7.34|install symfony/process v2.7.35|install symfony/process v2.7.36|install symfony/process v2.7.37|install symfony/process v2.7.38|install symfony/process v2.7.39|install symfony/process v2.7.4|install symfony/process v2.7.5|install symfony/process v2.7.6|install symfony/process v2.7.7|install symfony/process v2.7.8|install symfony/process v2.7.9|install symfony/process v2.8.0|install symfony/process v2.8.1|install symfony/process v2.8.10|install symfony/process v2.8.11|install symfony/process v2.8.12|install symfony/process v2.8.13|install symfony/process v2.8.14|install symfony/process v2.8.15|install symfony/process v2.8.16|install symfony/process v2.8.17|install symfony/process v2.8.18|install symfony/process v2.8.19|install symfony/process v2.8.2|install symfony/process v2.8.20|install symfony/process v2.8.21|install symfony/process v2.8.22|install symfony/process v2.8.23|install symfony/process v2.8.24|install symfony/process v2.8.25|install symfony/process v2.8.26|install symfony/process v2.8.27|install symfony/process v2.8.28|install symfony/process v2.8.29|install symfony/process v2.8.3|install symfony/process v2.8.30|install symfony/process v2.8.31|install symfony/process v2.8.32|install symfony/process v2.8.4|install symfony/process v2.8.5|install symfony/process v2.8.6|install symfony/process v2.8.7|install symfony/process v2.8.8|install symfony/process v2.8.9|install symfony/process v3.0.0|install symfony/process v3.0.1|install symfony/process v3.0.2|install symfony/process v3.0.3|install symfony/process v3.0.4|install symfony/process v3.0.5|install symfony/process v3.0.6|install symfony/process v3.0.7|install symfony/process v3.0.8|install symfony/process v3.0.9|install symfony/process v3.1.0|install symfony/process v3.1.1|install symfony/process v3.1.10|install symfony/process v3.1.2|install symfony/process v3.1.3|install symfony/process v3.1.4|install symfony/process v3.1.5|install symfony/process v3.1.6|install symfony/process v3.1.7|install symfony/process v3.1.8|install symfony/process v3.1.9|install symfony/process v3.2.0|install symfony/process v3.2.1|install symfony/process v3.2.10|install symfony/process v3.2.11|install symfony/process v3.2.12|install symfony/process v3.2.13|install symfony/process v3.2.14|install symfony/process v3.2.2|install symfony/process v3.2.3|install symfony/process v3.2.4|install symfony/process v3.2.5|install symfony/process v3.2.6|install symfony/process v3.2.7|install symfony/process v3.2.8|install symfony/process v3.2.9
- Conclusion: don't install symfony/process v3.3.14|keep symfony/process v4.0.1
- Installation request for symfony/console (locked at v4.0.1, required as ^4.0) -> satisfiable by symfony/console[v4.0.1].
- Installation request for laravel/valet ^2.0 -> satisfiable by laravel/valet[v2.0.0, v2.0.1, v2.0.3, v2.0.4, v2.0.5, v2.0.6].
- Conclusion: don't install symfony/process v4.0.1|install symfony/process v2.7.0|install symfony/process v2.7.1|install symfony/process v2.7.10|install symfony/process v2.7.11|install symfony/process v2.7.12|install symfony/process v2.7.13|install symfony/process v2.7.14|install symfony/process v2.7.15|install symfony/process v2.7.16|install symfony/process v2.7.17|install symfony/process v2.7.18|install symfony/process v2.7.19|install symfony/process v2.7.2|install symfony/process v2.7.20|install symfony/process v2.7.21|install symfony/process v2.7.22|install symfony/process v2.7.23|install symfony/process v2.7.24|install symfony/process v2.7.25|install symfony/process v2.7.26|install symfony/process v2.7.27|install symfony/process v2.7.28|install symfony/process v2.7.29|install symfony/process v2.7.3|install symfony/process v2.7.30|install symfony/process v2.7.31|install symfony/process v2.7.32|install symfony/process v2.7.33|install symfony/process v2.7.34|install symfony/process v2.7.35|install symfony/process v2.7.36|install symfony/process v2.7.37|install symfony/process v2.7.38|install symfony/process v2.7.39|install symfony/process v2.7.4|install symfony/process v2.7.5|install symfony/process v2.7.6|install symfony/process v2.7.7|install symfony/process v2.7.8|install symfony/process v2.7.9|install symfony/process v2.8.0|install symfony/process v2.8.1|install symfony/process v2.8.10|install symfony/process v2.8.11|install symfony/process v2.8.12|install symfony/process v2.8.13|install symfony/process v2.8.14|install symfony/process v2.8.15|install symfony/process v2.8.16|install symfony/process v2.8.17|install symfony/process v2.8.18|install symfony/process v2.8.19|install symfony/process v2.8.2|install symfony/process v2.8.20|install symfony/process v2.8.21|install symfony/process v2.8.22|install symfony/process v2.8.23|install symfony/process v2.8.24|install symfony/process v2.8.25|install symfony/process v2.8.26|install symfony/process v2.8.27|install symfony/process v2.8.28|install symfony/process v2.8.29|install symfony/process v2.8.3|install symfony/process v2.8.30|install symfony/process v2.8.31|install symfony/process v2.8.32|install symfony/process v2.8.4|install symfony/process v2.8.5|install symfony/process v2.8.6|install symfony/process v2.8.7|install symfony/process v2.8.8|install symfony/process v2.8.9|install symfony/process v3.0.0|install symfony/process v3.0.1|install symfony/process v3.0.2|install symfony/process v3.0.3|install symfony/process v3.0.4|install symfony/process v3.0.5|install symfony/process v3.0.6|install symfony/process v3.0.7|install symfony/process v3.0.8|install symfony/process v3.0.9|install symfony/process v3.1.0|install symfony/process v3.1.1|install symfony/process v3.1.10|install symfony/process v3.1.2|install symfony/process v3.1.3|install symfony/process v3.1.4|install symfony/process v3.1.5|install symfony/process v3.1.6|install symfony/process v3.1.7|install symfony/process v3.1.8|install symfony/process v3.1.9|install symfony/process v3.2.0|install symfony/process v3.2.1|install symfony/process v3.2.10|install symfony/process v3.2.11|install symfony/process v3.2.12|install symfony/process v3.2.13|install symfony/process v3.2.14|install symfony/process v3.2.2|install symfony/process v3.2.3|install symfony/process v3.2.4|install symfony/process v3.2.5|install symfony/process v3.2.6|install symfony/process v3.2.7|install symfony/process v3.2.8|install symfony/process v3.2.9|install symfony/process v3.3.14
- laravel/valet v2.0.0 requires symfony/process ~2.7|~3.0 -> satisfiable by symfony/process[v2.7.0, v2.7.1, v2.7.10, v2.7.11, v2.7.12, v2.7.13, v2.7.14, v2.7.15, v2.7.16, v2.7.17, v2.7.18, v2.7.19, v2.7.2, v2.7.20, v2.7.21, v2.7.22, v2.7.23, v2.7.24, v2.7.25, v2.7.26, v2.7.27, v2.7.28, v2.7.29, v2.7.3, v2.7.30, v2.7.31, v2.7.32, v2.7.33, v2.7.34, v2.7.35, v2.7.36, v2.7.37, v2.7.38, v2.7.39, v2.7.4, v2.7.5, v2.7.6, v2.7.7, v2.7.8, v2.7.9, v2.8.0, v2.8.1, v2.8.10, v2.8.11, v2.8.12, v2.8.13, v2.8.14, v2.8.15, v2.8.16, v2.8.17, v2.8.18, v2.8.19, v2.8.2, v2.8.20, v2.8.21, v2.8.22, v2.8.23, v2.8.24, v2.8.25, v2.8.26, v2.8.27, v2.8.28, v2.8.29, v2.8.3, v2.8.30, v2.8.31, v2.8.32, v2.8.4, v2.8.5, v2.8.6, v2.8.7, v2.8.8, v2.8.9, v3.0.0, v3.0.1, v3.0.2, v3.0.3, v3.0.4, v3.0.5, v3.0.6, v3.0.7, v3.0.8, v3.0.9, v3.1.0, v3.1.1, v3.1.10, v3.1.2, v3.1.3, v3.1.4, v3.1.5, v3.1.6, v3.1.7, v3.1.8, v3.1.9, v3.2.0, v3.2.1, v3.2.10, v3.2.11, v3.2.12, v3.2.13, v3.2.14, v3.2.2, v3.2.3, v3.2.4, v3.2.5, v3.2.6, v3.2.7, v3.2.8, v3.2.9, v3.3.0, v3.3.1, v3.3.10, v3.3.11, v3.3.12, v3.3.13, v3.3.14, v3.3.2, v3.3.3, v3.3.4, v3.3.5, v3.3.6, v3.3.7, v3.3.8, v3.3.9, v3.4.0, v3.4.1].
- Can only install one of: symfony/process[v3.3.0, v4.0.1].
- Can only install one of: symfony/process[v3.3.1, v4.0.1].
- Can only install one of: symfony/process[v3.3.10, v4.0.1].
- Can only install one of: symfony/process[v3.3.11, v4.0.1].
- Can only install one of: symfony/process[v3.3.12, v4.0.1].
- Can only install one of: symfony/process[v3.3.13, v4.0.1].
- Can only install one of: symfony/process[v3.3.2, v4.0.1].
- Can only install one of: symfony/process[v3.3.3, v4.0.1].
- Can only install one of: symfony/process[v3.3.4, v4.0.1].
- Can only install one of: symfony/process[v3.3.5, v4.0.1].
- Can only install one of: symfony/process[v3.3.6, v4.0.1].
- Can only install one of: symfony/process[v3.3.7, v4.0.1].
- Can only install one of: symfony/process[v3.3.8, v4.0.1].
- Can only install one of: symfony/process[v3.3.9, v4.0.1].
- Installation request for symfony/process (locked at v4.0.1) -> satisfiable by symfony/process[v4.0.1].
Installation failed, reverting ./composer.json to its original content.
What exactly is going on here and why can't I globally install Valet? I realize it is probably some sort of dependency issue/conflict, but it doesn't make sense to me.
Installation request for symfony/console (locked at v4.0.1, required as ^4.0)
Installation request for symfony/process (locked at v4.0.1)
Your symfony/console and symfony/process packages are locked at v4.0.1 (as per your composer.lock file), and you're trying to install the laravel/valet package which requires symfony/process ~2.7|~3.0 as per:
$ composer show -a laravel/valet 2.0.6 | grep ^symfony
symfony/process ~2.7|~3.0
However you can only install one branch as per the following message:
Can only install one of: symfony/process[v3.3.x, v4.0.x].
So to see, which existing packages locked it (e.g. symfony/process), run:
composer global why symfony/process -t
Or upgrade to the latest laravel/valet (v2.0.8) which now supports symfony/process ~4.0:
$ composer show -a laravel/valet | grep ^symfony
symfony/process ~2.7|~3.0|~4.0
See also: How to resolve a "Can only install one of:" conflict?
Have a look at https://stackoverflow.com/a/27754096 to see a list of installed packages - is symfony/console listed with version 4.0.1 there? The Lavarel installer explicitly asks for v2.3 or v3.x of symfony/console so you probably have to remove symfony/console manually first through composer global remove symfony/console - or at least have a look at composer global why symfony/console to see why symfony/console was installed in that version
For anyone having this same issue, I know I'm two years too late but just in case someone still is having this issue, go to your Composer folder
/users/[name]/AppData/Roaming/Composer
Move EVERYTHING from that folder to a temporary folder, for backup. Just make sure that you MOVE (cut and paste), don't copy. That folder needs to be emptied.
Then
composer global require laravel/valet
And Bob's your Uncle.
Checkout this Github issue, it solved my problem:
https://github.com/laravel/valet/issues/489#event-1390815851
In short, just try use cgr(=composer global require) to solve it. Open terminal
composer global require consolidation/cgr
//then update your $PATH, mine working on Catalina 10.15.4
echo 'export PATH="$(composer config -g home)/vendor/bin:$PATH"' >> ~/.zshrc
//then you should be able to use cgr to install laravel/valet
cgr laravel/valet
Try to remove your old composer: install
composer global remove laravel/installer
then install:
composer global require laravel/installer

Error when Updating to Laravel 5.4

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",

Can't install Laravel on Synology NAS (DSM 6) due to missing PHP extension

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.*"

Resources