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?
Related
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/
I'm trying to require JMS/Serializer in a client Symfony 3.4 installation.
Even if I set "minimum-stability":"dev", I can't proceed.
I issued the following command php -d memory_limit=-1 composer.phar -v require jms/serializer-bundle jms/metadata jms/di-extra-bundle hoping to install all dependencies.
But this is the result:
Using version ^3.5#dev for jms/serializer-bundle
Using version ^2.0#dev for jms/metadata
Using version ^1.8#dev for jms/di-extra-bundle
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Dependency resolution completed in 0.623 seconds
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for jms/metadata ^2.0#dev -> satisfiable by jms/metadata[2.0.0, 2.0.0-RC1, 2.0.0-beta1, 2.1.0, 2.x-dev].
- jms/security-extra-bundle 1.6.1 requires jms/metadata ~1.0 -> satisfiable by jms/metadata[1.x-dev].
- jms/security-extra-bundle 1.6.1 requires jms/metadata ~1.0 -> satisfiable by jms/metadata[1.x-dev].
- jms/security-extra-bundle 1.6.1 requires jms/metadata ~1.0 -> satisfiable by jms/metadata[1.x-dev].
- Conclusion: don't install jms/metadata 1.x-dev
- Installation request for jms/security-extra-bundle 1.6.1 -> satisfiable by jms/security-extra-bundle[1.6.1].
Installation failed, reverting ./composer.json to its original content.
Already tried just issuing php -d memory_limit=-1 composer.phar -v require jms/serializer-bundle. Nothing change.
Note I'm using composer.phar at the last version, running with memory_limit=-1 cause composer fill all my 8G ram in seconds.
JMS/Serializer jms/metadata jms/di-extra-bundle, are included into Symfony 3.4 now.
you don't need install this package :)
Serializer for example : https://symfony.com/doc/current/components/serializer.html
Di-Extra-Bundle : https://symfony.com/doc/current/components/dependency_injection.html
Metadata : https://symfony.com/doc/current/components/validator/metadata.html
I run this to install dompdf:
composer require barryvdh/laravel-dompdf
And the error looks like this:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for barryvdh/laravel-dompdf ^0.8.1 -> satisfiable by barryvdh/laravel-dompdf[v0.8.1].
- Conclusion: remove dompdf/dompdf v0.7.0
- Conclusion: don't install dompdf/dompdf v0.7.0
- barryvdh/laravel-dompdf v0.8.1 requires dompdf/dompdf ^0.8 -> satisfiable by dompdf/dompdf[v0.8.0, v0.8.1].
- Can only install one of: dompdf/dompdf[v0.8.0, v0.7.0].
- Can only install one of: dompdf/dompdf[v0.8.1, v0.7.0].
- Installation request for dompdf/dompdf (locked at v0.7.0) -> satisfiable by dompdf/dompdf[v0.7.0].
Installation failed, reverting ./composer.json to its original content.
Any of you know what's wrong or what should i do?
The error message states that barryvdh/laravel-dompdf package require "dompdf/dompdf": "^0.8" which is newer version but you have dompdf/dompdf v0.7.0 which is older version installed.
So you should try to remove old version of dompdf to install new version.
Having issues installing Google Cloud PHP client using Composer.
Any ideas how to best resolve the issues:
Using version ^0.33.1 for google/cloud
./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
- Can only install one of: google/auth[v1.0, v0.11.1].
- Can only install one of: google/auth[v1.0, v0.11.1].
- Can only install one of: google/auth[v1.0, v0.11.1].
- google/cloud v0.33.1 requires google/auth ^1.0 -> satisfiable by google/auth[v1.0].
- Installation request for google/cloud ^0.33.1 -> satisfiable by google/cloud[v0.33.1].
- Installation request for google/auth (locked at v0.11.1) -> satisfiable by google/auth[v0.11.1].
Installation failed, reverting ./composer.json to its original content.
sfbstack#villada:~/api/dev$
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.