following this guide: https://laravel-angular.io/docs/1/jwt-auth-install/ I've installed tymon/jwt-auth:^1.0#dev correctly. It's all okay but, when I run: composer require irazasyed/jwt-auth-guard, this error appears.
composer require irazasyed/jwt-auth-guard
Using version ^1.0 for irazasyed/jwt-auth-guard
./composer.json has been updated
Running composer update irazasyed/jwt-auth-guard
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- irazasyed/jwt-auth-guard[dev-master, v1.0.0, ..., v1.0.4] require illuminate/support ~5.0 -> found illuminate/support[v5.0.0, ..., 5.8.x-dev] but these were not loaded, likely because it conflicts with another require.
- irazasyed/jwt-auth-guard 1.0.x-dev is an alias of irazasyed/jwt-auth-guard dev-master and thus requires it to be installed too.
- Root composer.json requires irazasyed/jwt-auth-guard ^1.0 -> satisfiable by irazasyed/jwt-auth-guard[v1.0.0, ..., 1.0.x-dev (alias of dev-master)].
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
My PHP version is: 7.4.16;
My Laravel version is: 8.12;
My composer version is: 2.0.9.
I don't know what can I do. Thanks to all for the help!
UPDATE:
This is the error after run composer require irazasyed/jwt-auth-guard --ignore-platform-reqs:
Using version ^1.0 for irazasyed/jwt-auth-guard
./composer.json has been updated
Running composer update irazasyed/jwt-auth-guard
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- irazasyed/jwt-auth-guard[dev-master, v1.0.0, ..., v1.0.4] require illuminate/support ~5.0 -> found illuminate/support[v5.0.0, ..., 5.8.x-dev] but these were not loaded, likely because it conflicts with another require.
- irazasyed/jwt-auth-guard 1.0.x-dev is an alias of irazasyed/jwt-auth-guard dev-master and thus requires it to be installed too.
- Root composer.json requires irazasyed/jwt-auth-guard ^1.0 -> satisfiable by irazasyed/jwt-auth-guard[v1.0.0, ..., 1.0.x-dev (alias of dev-master)].
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
lcobucci/jwt is a framework-agnostic PHP library that allows you to issue, parse, and validate JSON Web Tokens based on the RFC 7519.
By running the following command you could install it.
composer require lcobucci/jwt
You can find more documentation of it here
https://lcobucci-jwt.readthedocs.io/en/latest/
Related
We try to update from 2.4.2 to 2.4.4. (and tried to 2.4.3 as well) and as mentioned in the official docs, two steps should do it:
composer require magento/product-community-edition 2.4.4
composer update
On our installation, we get the following errors:
root#a9758412c9f0:/opt/bitnami/magento# composer require magento/product-community-edition 2.4.4 --update-with-all-dependencies
./composer.json has been updated
Running composer update magento/product-community-edition --with-all-dependencies
Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
In Laminas\DependencyPlugin\DependencyRewriterV2::onPrePoolCreate
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.4.4 -> satisfiable by magento/product-community-edition[2.4.4].
- magento/magento-coding-standard is locked to version 6 and an update of this package was not requested.
- Conclusion: don't install webonyx/graphql-php v14.11.5 (conflict analysis result)
- Conclusion: don't install webonyx/graphql-php v14.11.6 (conflict analysis result)
- magento/product-community-edition 2.4.4 requires magento/framework 103.0.4 -> satisfiable by magento/framework[103.0.4].
- magento/magento-coding-standard 6 requires webonyx/graphql-php >=0.12.6 <1.0 -> satisfiable by webonyx/graphql-php[v0.12.6, ..., v0.13.9].
- You can only install one version of a package, so only one of these can be installed: webonyx/graphql-php[v0.12.6, ..., v0.13.9, v14.11.3, v14.11.4, v14.11.5, v14.11.6].
- magento/framework 103.0.4 requires webonyx/graphql-php ~14.11.3 -> satisfiable by webonyx/graphql-php[v14.11.3, v14.11.4, v14.11.5, v14.11.6].
- Conclusion: don't install webonyx/graphql-php v14.11.4 (conflict analysis result)
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
We tried to satisfy the dependencies manually by hand, but we saw way more errors at the end. Is there any Howto or Tutorial (apart from https://experienceleague.adobe.com/docs/commerce-operations/upgrade-guide/implementation/perform-upgrade.html) about the process or does somebody experienced similar issues? Is it meant to be like this, to resolve dependencies by hand? Its pain and maybe we missed the proper way to do it?
I run this command:
COMPOSER_MEMORY_LIMIT=-1 composer require crscheid/php-article-extractor -vvv
Resolving dependencies through SAT
Dependency resolution completed in 0.044 seconds
Reading /root/.composer/cache/repo/https---repo.packagist.org/provider-scotteh$php-goose.json from cache
Reading /root/.composer/cache/repo/https---repo.packagist.org/provider-scotteh$php-goose.json from cache
Your requirements could not be resolved to an installable set of packages.
Problem 1
- crscheid/php-article-extractor 2.5.1 requires scotteh/php-goose dev-master -> satisfiable by scotteh/php-goose[dev-master] but these conflict with your requirements or minimum-stability.
- crscheid/php-article-extractor 2.5 requires scotteh/php-goose dev-master -> satisfiable by scotteh/php-goose[dev-master] but these conflict with your requirements or minimum-stability.
- Installation request for crscheid/php-article-extractor ^2.5 -> satisfiable by crscheid/php-article-extractor[2.5, 2.5.1].
Installation failed, reverting ./composer.json to its original content.
But this package won't be installed because it requires bigger composer version, my version is
Composer version 1.10.24 2021-12-09 20:06:33
can i still install it on this version, any help?
Solution:
Step 1:
COMPOSER_MEMORY_LIMIT=-1 composer require scotteh/php-goose dev-master
Step 2:
COMPOSER_MEMORY_LIMIT=-1 composer require crscheid/php-article-extractor
I am trying to create a bridge with laravel 8 and watson api but i am getting the follwoing error can some please help me here
composer require findbrok/php-watson-api-bridge
Using version ^1.1 for findbrok/php-watson-api-bridge
./composer.json has been updated
Running composer update findbrok/php-watson-api-bridge
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- findbrok/php-watson-api-bridge 1.1.x-dev requires illuminate/support ~5.0 -> found illuminate/support[v5.0.0, ..., 5.8.x-dev] but these were not loaded, likely because it conflicts with another require.
- findbrok/php-watson-api-bridge[dev-master, v1.1.0, ..., v1.1.2] require guzzlehttp/guzzle 6.2.* -> found guzzlehttp/guzzle[6.2.0, 6.2.1, 6.2.2, 6.2.3] but it conflicts with your root composer.json require (^7.0.1).
- findbrok/php-watson-api-bridge 1.2.x-dev is an alias of findbrok/php-watson-api-bridge dev-master and thus requires it to be installed too.
- Root composer.json requires findbrok/php-watson-api-bridge ^1.1 -> satisfiable by findbrok/php-watson-api-bridge[v1.1.0, ..., 1.2.x-dev (alias of dev-master)].
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.```
It appears that the package is old and no longer maintained.
The problem is Laravel 8 installs Guzzle Http with the version 7.
But the package you're trying to install is compatible with Guzzle until version 6.
You may downgrade Guzzle in your root composer.json, but I wouldn't recommend it. It may break the framework.
Another solution is trying to make a PR to the package to make it compatible with Laravel 8, or use Laravel version 7
I'm trying to install domain-availability on the Laravel project but this is the result
PS C:\..\workspace v2> composer require helgesverre/domain-availability
Using version ^1.4 for helgesverre/domain-availability
./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
- helgesverre/domain-availability 1.4.0 requires jeremykendall/php-domain-parser ^3.0 -> satisfiable by jeremykendall/php-domain-parser[3.x-dev].
- helgesverre/domain-availability v1.4.1 requires jeremykendall/php-domain-parser ^3.0 -> satisfiable by jeremykendall/php-domain-parser[3.x-dev].
- Conclusion: don't install jeremykendall/php-domain-parser 3.x-dev
- Installation request for helgesverre/domain-availability ^1.4 -> satisfiable by helgesverre/domain-availability[1.4.0, v1.4.1].
Installation failed, reverting ./composer.json to its original content.
PS C:\..\workspace v2>
I'm using this library
https://github.com/HelgeSverre/Domain-Availability
and i activated extension=intl in php.ini file
and install jeremykendall/php-domain-parser using command
composer require jeremykendall/php-domain-parser
How do I solve this problem?
I try install https://github.com/google/google-api-php-client for my php project via composer.
composer.json:
{
"require": {
"Intervention/image": "~2.3.7",
"intervention/image": "^2.3",
"guzzlehttp/guzzle": "^6.2"
}
}
I run this command:
composer require google/apiclient:^2.0
And result:
./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
- google/apiclient v2.0.0 requires google/auth 0.8 -> satisfiable by google/auth[v0.8].
- Installation request for google/apiclient 2.0 -> satisfiable by google/apiclient[v2.0.0].
- Conclusion: remove guzzlehttp/psr7 1.3.0
- Conclusion: don't install guzzlehttp/psr7 1.3.0
- google/auth v0.8 requires guzzlehttp/psr7 1.2.* -> satisfiable by guzzlehttp/psr7[1.2.0, 1.2.1, 1.2.2, 1.2.3].
- Can only install one of: guzzlehttp/psr7[1.2.0, 1.3.0].
- Can only install one of: guzzlehttp/psr7[1.2.1, 1.3.0].
- Can only install one of: guzzlehttp/psr7[1.2.2, 1.3.0].
- Can only install one of: guzzlehttp/psr7[1.2.3, 1.3.0].
- Installation request for guzzlehttp/psr7 (locked at 1.3.0) -> satisfiable by guzzlehttp/psr7[1.3.0].
Installation failed, reverting ./composer.json to its original content.
Also I installed php composer.phar require guzzlehttp/guzzle before...
I would try removing your project's requirement of guzzlehttp/guzzle and let your Google dependency tell composer what version it wants to pull in. Google's package (for some reason) has a version floor of 1.2 for guzzlehttp/psr7, and composer is complaining that it can't figure out how to satisfy this requirement.
Since your new dependency (the Google package) also requires guzzlehttp/guzzle, you don't need to specifically require it, so I would just remove it and try composer update again.