"staudenmeir/laravel-adjacency-list ^1.0" package errors during installation - composer-php

I install a package composer require staudenmeir/laravel-adjacency-list:"^1.0" but i got an the following errors.
Problem 1
- staudenmeir/laravel-adjacency-list[v1.0, ..., 1.0.x-dev] require illuminate/database ~5.5.29|5.6.*|5.7.* -> found illuminate/database[v5.5.33..., 5.7.x-dev] but it conflicts with another require.
- staudenmeir/laravel-adjacency-list[v1.1, ..., 1.1.x-dev] require php ^7.1.3 -> your php version (8.0.3) does not satisfy that requirement.
- staudenmeir/laravel-adjacency-list[v1.2, ..., 1.3.x-dev] require php ^7.2 -> your php version (8.0.3) does not satisfy that requirement.
- staudenmeir/laravel-adjacency-list[v1.4, ..., v1.5] require php ^7.2.5 -> your php version (8.0.3) does not satisfy that requirement.
- staudenmeir/laravel-adjacency-list v1.6 requires php ^7.3 -> your php version (8.0.3) does not satisfy that requirement.
- staudenmeir/laravel-adjacency-list v1.6.1 requires illuminate/database ^8.0 -> found illuminate/database[v8.0.0, ..., 8.x-dev] but it conflicts with another require.
- Root composer.json requires staudenmeir/laravel-adjacency-list ^1.0 -> satisfiable by staudenmeir/laravel-adjacency-list[v1.0, ..., v1.6.1].
My composerr.json is below
"require": {
"php": "^7.3|^8.0",
.
.
"laravel/framework": "^6.18.35",
}
I tried it before in my project having version 8.12 of laravel i.e. Laravel v8.12 it worked smoothly but the problem arises when i switched to project having laravel v6.18.35.
I dont know what is wrong? Is this package depends on laravel version ?But why they mention it in Packagist website as it supports Laravel 5.5.29+.??
Please help me please. i am stucking

I solved it..
A new version of staudenmeir/laravel-adjacency-list works on PHP 8 and not support laravel 6 so what i did was to upgrade my project laravel version to v8 then it workes smoothly.
Thanks for your responses

Related

Laravel PHP Version

when I check my PHP version it shows 8.0.3 but I changed the version to 7.2.0 in Laragon.
when I run the composer update command in Laravel it generates the error
Problem 1
Root composer.json requires PHP ^7.2.0 but your PHP version (8.0.3) does not satisfy that requirement.
Problem 2
laravel/framework[v5.8.0, ..., 5.8.x-dev] require php ^7.1.3 -> your php version (8.0.3) does not satisfy that requirement.
Root composer.json requires laravel/framework 5.8.* -> satisfiable by laravel/framework[v5.8.0, ..., 5.8.x-dev].
This is a common problem in PHP because your PHP version does not match Laravel or the packages you use. Now it's better to go to the composer.json file that says the last version you can have this way.
"require": {
"php": "^ 8.0.2",
For example, in Laravel version 9, the minimum PHP version is 8.0.2
In your command line type:
composer require
press enter and then it will ask for the package
search for a package : php
press enter and then it will ask for the version
Enter the version constraint to require (or leave blank to use the latest version) : 7.1.3
press enter twice. Hope this helps.

Trying to configure MAMP for Magento

I'm working to install Magento 2 on my Mac so I can develop with JetBrains PhpStorm and exchange with my company's server.
I've got MAMP installed and but in working to install Magento 2.3.5-p1, I needs some php extensions set and I'm not certain how to do this.
I need intl, ext-zip and possibly others on. This is what I'm seeing:
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=2.3.5-p1
Creating a "magento/project-community-edition=2.3.5-p1" project at "./project-community-edition"
Installing magento/project-community-edition (2.3.5-p1)
Installing magento/project-community-edition (2.3.5-p1): Extracting archive
Created project in /Applications/MAMP/htdocs/project-community-edition
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires magento/product-community-edition 2.3.5-p1 -> satisfiable by magento/product-community-edition[2.3.5-p1].
- magento/product-community-edition 2.3.5-p1 requires ext-intl * -> it is missing from your system. Install or enable PHP's intl extension.
Problem 2
- Root composer.json requires dealerdirect/phpcodesniffer-composer-installer ^0.5.0 -> satisfiable by dealerdirect/phpcodesniffer-composer-installer[v0.5.0].
- 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
- magento/magento2-functional-testing-framework[2.6.4, ..., 2.6.6] require php-webdriver/webdriver ^1.8.0 -> satisfiable by php-webdriver/webdriver[1.8.0, ..., 1.10.0].
- php-webdriver/webdriver[1.8.0, ..., 1.10.0] require ext-zip * -> it is missing from your system. Install or enable PHP's zip extension.
- Root composer.json requires magento/magento2-functional-testing-framework ~2.6.4 -> satisfiable by magento/magento2-functional-testing-framework[2.6.4, 2.6.5, 2.6.6].
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.
Thanks.

spatie/sitemap wont install in laravel8 on godaddy server

i have made ecommerce website in laravel 8. i am trying to make sitemap.xml using spatie/sitemap package.
https://github.com/spatie/laravel-sitemap
but it does not install in my godaddy hosting.
the error is as follows:
****Using version ^5.8 for spatie/laravel-sitemap
./composer.json has been updated
Running composer update spatie/laravel-sitemap
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- spatie/browsershot[3.33.1, ..., 3.40.2] require spatie/image ^1.5.3 -> satisfiable by spatie/image[1.5.3, ..., 1.10.2].
- spatie/crawler[4.1.0, ..., 4.6.5] require guzzlehttp/guzzle ^6.3 -> found guzzlehttp/guzzle[6.3.0, ..., 6.5.x-dev] but it conflicts with your root composer.json require (^7.0.1).
- spatie/laravel-sitemap[5.9.0, ..., 5.9.2] require php ^7.4|^8.0 -> your php version (7.3.27) does not satisfy that requirement.
- spatie/browsershot[3.40.3, ..., 3.44.0] require php ^7.4|^8.0 -> your php version (7.3.27) does not satisfy that requirement.
- spatie/image[1.5.3, ..., 1.10.2] require ext-exif * -> it is missing from your system. Install or enable PHP's exif extension.
- spatie/browsershot[3.14.0, ..., 3.16.0] require symfony/process ^3.0 -> found symfony/process[v3.0.0-BETA1, ..., 3.4.x-dev] but the package is fixed to v5.2.4 (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.
- spatie/browsershot[3.16.1, ..., 3.26.0] require symfony/process ^3.0|^4.0 -> found symfony/process[v3.0.0-BETA1, ..., 3.4.x-dev, v4.0.0-BETA1, ..., 4.4.x-dev] but the package is fixed to v5.2.4 (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.
- spatie/browsershot[3.26.1, ..., 3.33.0] require symfony/process ^4.2 -> found symfony/process[v4.2.0-BETA1, ..., 4.4.x-dev] but the package is fixed to v5.2.4 (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.
- spatie/laravel-sitemap 5.8.0 requires spatie/crawler ^4.1.0 -> satisfiable by spatie/crawler[4.1.0, ..., v4.x-dev].
- spatie/crawler[4.6.6, ..., v4.x-dev] require spatie/browsershot ^3.14 -> satisfiable by spatie/browsershot[3.14.0, ..., 3.44.0].
- Root composer.json requires spatie/laravel-sitemap ^5.8 -> satisfiable by spatie/laravel-sitemap[5.8.0, 5.9.0, 5.9.1, 5.9.2].
To enable extensions, verify that they are enabled in your .ini files:
- /opt/cpanel/ea-php73/root/etc/php.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-bcmath.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-calendar.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-ctype.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-curl.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-dom.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-fileinfo.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-ftp.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-gd.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-iconv.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-imap.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-intl.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-json.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-mbstring.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-mysqlnd.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-pdo.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-phar.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-posix.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-simplexml.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-sockets.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-sqlite3.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-tokenizer.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-xml.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-xmlwriter.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-xsl.ini
- /opt/cpanel/ea-php73/root/etc/php.d/30-mysqli.ini
- /opt/cpanel/ea-php73/root/etc/php.d/30-pdo_mysql.ini
- /opt/cpanel/ea-php73/root/etc/php.d/30-pdo_sqlite.ini
- /opt/cpanel/ea-php73/root/etc/php.d/30-wddx.ini
- /opt/cpanel/ea-php73/root/etc/php.d/30-xmlreader.ini
- /opt/cpanel/ea-php73/root/etc/php.d/zzzzzzz-pecl.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
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.****
can anybody help me..i am struggling to get it done.
thank you
I figured out what the problem was, in case anybody else is struggling.
You must have php version 7.4 or greater.
Install PHP extension exif
Doing both these solved my problem.

Laravel Shibboleth package

How to set up and use laravel shibboleth package,
supposing that in my organization there are distinct user roles? My version of Laravel Framework is 5.7.26. I initially tried to install it (with composer require razorbacks/laravel-shibboleth via cmd) with no success.
Below is the result of my attempt to install it. Any idea?
" Problem 1
- Installation request for razorbacks/laravel-shibboleth ^3.0
-> satisfiable by razorbacks/laravel-shibboleth[3.0.0].
- Conclusion: remove laravel/framework v5.7.26
- Conclusion: don't install laravel/framework v5.7.26
- razorbacks/laravel-shibboleth 3.0.0 requires laravel/framework 5.4.* || 5.5.*
-> satisfiable by laravel/framework[5.4.x-dev, 5.5.x-dev].
- Can only install one of: laravel/framework[5.4.x-dev, v5.7.26].
- Can only install one of: laravel/framework[5.5.x-dev, v5.7.26].
- Installation request for laravel/framework (locked at v5.7.26, required as 5.7.*)
-> satisfiable by laravel/framework[v5.7.26].
Installation failed, reverting ./composer.json to its original content."
Depending on your project it might be easiest to downgrade your Laravel framework version to 5.5. You'll see on the razorbacks/laravel-shibboleth packagist page that it requires Laravel 5.4 or 5.5. On the package's github profile you'll see that there's an issue logged for Laravel 5.6 support and that the latest commit was on 25 Jan 2018, so it is not very up to date. I recommend always checking these things before deciding on using a package.
To downgrade to Laravel 5.5, you'll need to change your composer.json file to to require "laravel/framework": "5.5.*". You'll also need to check that all your other dependencies are compatible with 5.5. If they are not, you'll also need to downgrade them to compatible versions.
Lastly, consider using uabookstores/laravel-shibboleth or prasad/laravel-shibboleth which are forks of razorbacks/laravel-shibboleth that have Laravel 5.7 support.
You can downgrade laravel. Or you can fork shibboleth, change the composer.json requirements/limits, then start testing to see if the package works with 5.7
fork this into your github account https://github.com/razorbacks/laravel-shibboleth
clone your new forked copy to local work machine
edit composer.json to adjust limits/requirements
commit and push back to your forked copy
Now, in your project that uses the package you'll need to point to your copy/fork instead of the original public version of the package.
add your fork to the "repositories" section of composer.json (NOT the same composer.json ... this is the laravel project composer.json)
run composer update
Your new repositories section in the composer.json file should look something like this...
"repositories": [
{
"type": "vcs",
"url": "https://github.com/YOUR-ACCOUNT-NAME/laravel-shibboleth"
}]

Composer update exceptions eg requires omnipay/common

I have just run
$ composer self-update
on Windows 7, but when I run
$ composer update
to update dependencies I get the following messages:
Loading composer repositories with package information
Updating dependencies (including require-dev)
[Composer\DependencyResolver\SolverProblemsException]
Problem 1
- Installation request for laravel/framework 5.4.* -> satisfiable by la
ravel/framework[5.4.x-dev].
- laravel/framework 5.4.x-dev requires doctrine/inflector ~1.1.0 -> no
matching package found.
Problem 2
- Installation request for omnipay/omnipay 2.* -> satisfiable by omnipa
y/omnipay[2.3.x-dev].
- omnipay/omnipay 2.3.x-dev requires omnipay/common ~2.3 -> no matching
package found.
Problem 3
- Installation request for omnipay/stripe ~2.0 -> satisfiable by omnipa
y/stripe[V2.4.7].
- omnipay/stripe V2.4.7 requires omnipay/common ~2.0 -> no matching pac
kage found.
Problem 4
- Installation request for omnipay/paypal ~2.0 -> satisfiable by omnipa
y/paypal[v2.6.3].
- omnipay/paypal v2.6.3 requires omnipay/common ~2.0 -> no matching pac
kage found.
Problem 5
- Installation request for omnipay/mollie 3.* -> satisfiable by omnipay
/mollie[3.2.x-dev].
- omnipay/mollie 3.2.x-dev requires omnipay/common ~2.2 -> no matching
package found.
Problem 6
- laravel/framework 5.4.x-dev requires doctrine/inflector ~1.1.0 -> no
matching package found.
- laravelcollective/html 5.4.x-dev requires illuminate/http 5.4.* -> sa
tisfiable by laravel/framework[5.4.x-dev].
- Installation request for laravelcollective/html * -> satisfiable by l
aravelcollective/html[5.4.x-dev].
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to you
r minimum-stability setting
see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for mor
e details.
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further
common problems.
In particular I want to update omnipay/stripe. My composer.json includes the following in its require section for omnipay:
"omnipay/omnipay": "2.*",
"omnipay/stripe": "~2.0",
"omnipay/common": "*",
Also, the minimum stability is set to dev:
"minimum-stability": "dev"
To try and solve the first error that refers to Laravel, I've tried adding "doctrine/inflector": "*" to the require section of composer.json and also deleted the composer.lock file, but an error says the package can't be found. This post seems to suggest that doctrine requires PHP 7 with Laravel 5.4 so maybe that's the issue as I'm running PHP 5.6
Seems it is an issue relating to Laravel because if I remove "laravel/framework": "5.4.*" from composer.json then the other updates work ok without error.

Resources