phpunit/dbunit not installing for PHP8.1 - dbunit

Previously I am using phpunit/dbunit version 3.0.3 for PHP7 version, Now I have upgraded PHP to 8.1 version, and I am unable to upgrade the dbunit to the PHP8.1 supporting version. I am getting the below error and my composer.json file is below. Please Can anyone tell me, does dbunit supports php8.1 version or How can I install the dbunit version that is supporting php8.1
"require-dev": {
"phpunit/phpunit": "9.5.0",
"phpunit/dbunit": "3.0.3"
},

The package is abandoned and no longer maintained. Still the v3.0.3 requires the following:
php: ^7.0
ext-pdo: *
ext-simplexml: *
phpunit/phpunit: ^6.0
symfony/yaml: ^3.0 || ^4.0
Reference from packagist.

Related

Why is Composer installing an old version when it isn't specified?

When I do:
composer require deployer/deployer
I get the following output:
Info from https://repo.packagist.org: #StandWithUkraine
Using version ^4.3 for deployer/deployer
./composer.json has been updated
Running composer update deployer/deployer
Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- deployer/deployer[v4.3.0, ..., 4.x-dev] require monolog/monolog ^1.21 -> found monolog/monolog[1.21
.0, ..., 1.x-dev] but the package is fixed to 2.3.5 (lock file version) by a partial update and that vers
ion does not match. Make sure you list it as an argument for the update command.
- Root composer.json requires deployer/deployer ^4.3 -> satisfiable by deployer/deployer[v4.3.0, ...,
4.x-dev].
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.
deployer/deployer is not in the project's composer.json or composer.lock, so what could possibly be requring the relatively ancient version of the package that doesn't seem to be supported by any other package in my Laravel 8 project?
Since you're using PHP 8, 4.3 is the latest version of deployer/deployer that composer has determined to be compatible with your PHP version and minimum stability requirement.
v7 has no stable release yet, but it is the version you need to use with PHP 8.
You can use the release candidate with composer require deployer/deployer:^7.0#RC, or if you set "minimum-stability": "RC" in your composer.json, then composer require deployer/deployer should install it.
v6 requires "php": "^7.2".
I believe this is equivalent to >=7.2 <8.0.0, according to the composer manual.
v5 requires "php": "~7.0" (meaning >=7.0 <8.0)
v4 requires "php": ">=5.6.0" (meaning anything above 5.6.0)
This old version is the one you're getting because it's the only version composer can attempt to install due to the constraints I mentioned above. I don't know if it really is compatible with PHP 8, but I doubt it.

Problem with laravel/ui in laravel when updating package while upgrading to the latest version of Laravel

I am currently upgrading from Laravel 5 to 8 although I'm not sure if that is relevant or not. I am running PHP 8 in a docker environment having just upgraded from php 7.3. I have deleted my vendor folder, updated composer.json to run all the latest versions of my packages and run composer install. I am getting the error below:
Problem 1
- Root composer.json requires laravel/ui ^3.3 -> satisfiable by laravel/ui[v3.3.0]
- Conclusion: don't install league/flysystem 2.2.0 (conflict analysis result)
- Conclusion: don't install league/flysystem 1.1.3 (conflict analysis result)
I am confused by the top line. What exactly is it trying to tell me? I am obviously requesting version ^3.3 of the package. Is it telling me how I need to specifiy this in composer.json ([v3.3.0])? I have tried writing it as v3.3.0, 3.3.0 and ^3.3 and always I get the same 'Problem'. I am also getting the 'conflict analysis result' errors for other packages below this although I'll assume for now that these are separate and unrelated issues which I will address after I have resolved this issue. Can anybody suggest how I can go about resolving this issue?
Thanks

Why i cannot install Laravel Breeze

I installed a fresh laravel application using version 7.30.4. When I tried to install laravel breeze, using command composer require laravel/breeze --dev, it gives me this error.
[InvalidArgumentException]
Package laravel/breeze has a PHP requirement incompatible with your PHP version, PHP extensions and Composer version
My current version of PHP is 7.2.19
This error comes due to compatible version in your composer.json file. To fix this issue, change the composer.json file "platform" configuration:
"platform": {
"php": "7.3"
}
Then execute composer install or composer update
or you can run the below command:
composer config platform.php 7.4.3
Laravel breeze required PHP version 7.3 and as you said your PHP version is 7.2.19 so you have to update it.

Composer 2, which some of your plugins seem to be incompatible with

I tried to install extension from the magento market place but I got incompatibility error..
Problem 1
magento/composer-root-update-plugin is locked to version 1.0.0 and an update of this package was not requested.
magento/composer-root-update-plugin 1.0.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
Problem 2
dealerdirect/phpcodesniffer-composer-installer is locked to version v0.5.0 and an update of this package was not requested.
dealerdirect/phpcodesniffer-composer-installer v0.5.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
Problem 3
laminas/laminas-dependency-plugin 1.0.4 requires composer-plugin-api ^1.1 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
magento/product-community-edition 2.4.1 requires laminas/laminas-dependency-plugin ^1.0 -> satisfiable by laminas/laminas-dependency-plugin[1.0.4].
magento/product-community-edition is locked to version 2.4.1 and an update of this package was not requested.
You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.
how do I resolve this?
You can downgrade your Composer to version 1.x
composer self-update --1
And if you need to switch back to Composer version 2.x, you can just type
composer self-update --2
Magento 2.x is not yet compatible with composer 2.x
You can either:
downgrade your system version of Composer to 1.x
download composer 1.x phar file and run local version (preferable)
https://getcomposer.org/download/
Current version is 1.10.19
then run the command using the local composer version:
php ./composer.phar install
Magento does not support Composer 2.x. please ref the link:https://devdocs.magento.com/guides/v2.4/install-gde/system-requirements.html may help you

Error while 'composer require jenssegers/mongodb' adding MongoDB to new Laravel 7 Project

After fresh installation of laravel 7 project,
C:\xampp\htdocs\blog>composer require jenssegers/mongodb --ignore-platform-reqs
But this is giving an error.
Your requirements could not be resolved to an installable set of packages.
Problem 1
- jenssegers/mongodb[v3.8.0, ..., v3.8.2] require illuminate/support ^8.0 -> found illuminate/support[v8.0.0, ..., 8.x-dev] but these were not loaded, likely because it conflicts with another require.
- Root composer.json requires jenssegers/mongodb ^3.8 -> satisfiable by jenssegers/mongodb[v3.8.0, v3.8.1, v3.8.2].
Also unintalled old composer and installed latest version of it. But still the same issue
Got the issue: Need to check the laravel version compatibility with jenssegers/Laravel-MongoDB. You can check it here:
https://github.com/jenssegers/Laravel-MongoDB#laravel-version-compatibility
Laravel version Compatibility
Laravel Package
4.2.x 2.0.x
5.0.x 2.1.x
5.1.x 2.2.x or 3.0.x
5.2.x 2.3.x or 3.0.x
5.3.x 3.1.x or 3.2.x
5.4.x 3.2.x
5.5.x 3.3.x
5.6.x 3.4.x
5.7.x 3.4.x
5.8.x 3.5.x
6.x 3.6.x
7.x 3.7.x
8.x 3.8.x
And in cmd i Did like this:
C:\xampp\htdocs\blog> composer require jenssegers/mongodb 3.7
Hope this helps anyone with the same issue
For Laravel 8
composer require jenssegers/mongodb:^3.8 --ignore-platform-reqs
In Laravel 8 it worked like this:
composer require jenssegers/mongodb 3.8.x
the ".x" is important, otherwise it marks the same error in MacOs.

Resources