Why laravel/ui is not accepted? [duplicate] - laravel

This question already has answers here:
How to explain Composer's error log?
(2 answers)
Closed 6 months ago.
I try to install laravel/ui with command
composer require laravel/ui:^2.4
laravel/ui[v2.4.0, ..., v2.4.1] require php ^7.2.5 -> your php version (8.1.2) does not satisfy that requirement.
My php version is 8.1.2:
screenshot

laravel/ui 2.4 is compatible with older php version. either install newest laravel/ui via composer require laravel/ui command, or downgrade php.

Related

installing maatwebsite/excel with laravel 9 but getting the phpoffice/phpspreadsheet errors

installing maatwebsite/excel with Laravel 9 but getting phpoffice and PHP version issues. I am using PHP 8.1, I downgrade to PHP 8.0 but still doesn't work. Even I enable the gd extention from the php.ini file.
I am installing maatwebsite using below command which is offered by official website
composer require maatwebsite/excel
I found the problem it's happening due to cache problem, we need to update the cache version.
Let me explain it with all steps
Go to the php.ini file and remove ;
before
;extension=gd
after
extension=gd
execute the command to change your cache
composer require psr/simple-cache ^2.0
if the above version is not work for you try it with 1.0 version (optional)
composer require psr/simple-cache ^1.0
Then install maatwebsiteexcel
composer require maatwebsite/excel
It will work like a charm
This will help you
composer require psr/simple-cache:^1.0 maatwebsite/excel
Some time composer require fails on Laravel 9 because of the simple-cache dependency, you will have to specify the psr/simple-cache version as ^1.0 in your composer.json to satisfy the PhpSpreadsheet dependency.
find solution here https://docs.laravel-excel.com/3.1/getting-started/installation.html

league/flysystem-aws-s3-v3 on Laravel 8 other packages require lower version

When running composer require league/flysystem-aws-s3-v3 I get:
league/flysystem-aws-s3-v3[2.0.0, ..., 2.x-dev] require league/flysystem ^2.0.0 -> found league/flysystem[2.0.0-alpha.1, ..., 2.x-dev] but the package is fixed to 1.1.3 (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.
In my composer.json there is no mention of league/flysystem, but it does appear in my composer.lock as "league/flysystem": "^1.1",. It looks like I have a few packages (like spatie/laravel-backup) that have this as an dependancy.
How do I proceed? I'm not sure how to update a package that other packages have as an dependancy, and that these other packages have also fixed to a specific version.
As you've found already: spatie/laravel-backup is not yet compatible with league/flysystem v2 (which is pretty new, it got released... yesterday!).
Simply require the "old" version of that AWS package through composer require league/flysystem-aws-s3-v3:"^1.0".
After all, this is not a problem of Laravel itself.
I am using the latest version of laravel V8.4.0 (JULY 2021)
I solve this by:
Deleting composer.lock in the root folder of the project
running composer require league/flysystem-aws-s3-v3:"~1.0"
For Laravel 8 use
composer require --with-all-dependencies league/flysystem-aws-s3-v3 "^1.0"
It is a problem with Laravel. Laravel v8 does not support league/flysystem v2 yet. v9 will be shipped with a support for it: https://github.com/laravel/framework/pull/33612
For those on Laravel 9, you'll need to upgrade to v3.0 instead.
composer require -W league/flysystem-aws-s3-v3 "^3.0"
After deleting compose.lock

Installation error of EasyAdmin in Symfony 5 app [duplicate]

This question already has an answer here:
Can't install symfony/maker-bundle
(1 answer)
Closed 2 years ago.
I tried to install EasyAdmin bundle in my Symfony 5 app:
composer require easycorp/easyadmin-bundle
And got an error:
Using version ^3.1 for easycorp/easyadmin-bundle
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Restricting packages listed in "symfony/symfony" to "5.0.*"
Your requirements could not be resolved to an installable set of packages.
Problem 1
- ocramius/proxy-manager 2.9.1 requires composer-runtime-api ^2.0.0 -> no matching package found.
- Installation request for ocramius/proxy-manager (locked at 2.9.1) -> satisfiable by ocramius/proxy-manager[2.9.1].
Additional info:
php -v
# PHP 7.4.12 (cli)
composer -V
# Composer version 1.10.15 2020-10-13 15:59:09
Updating Composer to 2.x version fixed this issue. Follow installation instructions on the Composer site: https://getcomposer.org/download/

TYPO3 with composer - Installing previous extension version [duplicate]

This question already has answers here:
How to install a specific version of package using Composer?
(7 answers)
Closed 2 years ago.
I am trying to install the extension clickstorm seo for TYPO3 9.5
But with the typical composer command "composer require clickstorm/cs_seo" I am only getting the latest version, which is for TYPO3 10.
Is there a way to get the previous version with the composer command?
You can require a specific version just fine:
composer require clickstorm/cs_seo ^4.3
You can see the latest version compatible to TYPO3 by checking the package site on Packagist.

Can I solve "Your requirements could not be resolved to an installable set of packages." in laravel composer

when I want to install laravel/ui the composer show this:
and my composer.json :
my laravel version is 6.13 and I went to laravel.com and I click the Authentication for laravel 6X and says for laravel 6 you have to install this package and the package is composer require laravel/ui "^1.0" --dev and composer show me that problem again what can I do?
Add this in composer.json and then use command composer update
"laravel/ui": "^1.2",
Sometimes the library which you're installing is not satisfied PHP version not only laravel version.

Resources