I really need help because I cannot install panther at Symfony 5 project. The Symfony/panther requires facebook/webdriver and everytime I did : composer require facebook/webdriver or composer req symfony/panther
I got this error message :
- facebook/webdriver 1.7.1 requires symfony/process ^2.8 || ^3.1 || ^4.0 -> no matching package found.
- facebook/webdriver 1.7.0 requires symfony/process ^2.8 || ^3.1 || ^4.0 -> no matching package found.
- Installation request for facebook/webdriver ^1.7 -> satisfiable by facebook/webdriver[1.7.0, 1.7.1].
I use Composer version 1.9.1 and PHP 7.2.14
Thanks a lot
It's because symfony/process package has no version with suitable stability for your application. I just had the same problem and adding "minimum-stability": "dev" to composer.json solved this issue for me.
Minimum-stability is "stable" by default.
This problem will be fixed in next release of facebook/webdriver. For now you can install dev version of this package:
composer require facebook/webdriver:^1.8#dev
And after that you can install symfony/panther
Issue here: https://github.com/php-webdriver/php-webdriver/issues/712
Related
I have problem in using mailer in symfony. I want to follow the instruction on symfony website. When I write composer require symfony/mailer in the terminal, I get an error:
Using version ^2.1 for friendsofsymfony/user-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
- friendsofsymfony/user-bundle v2.1.2 requires symfony/form ^2.8 || ^3.0 || ^4.0 -> no matching package found.
- friendsofsymfony/user-bundle v2.1.1 requires symfony/form ^2.8 || ^3.0 || ^4.0 -> no matching package found.
- friendsofsymfony/user-bundle v2.1.0 requires symfony/form ^2.8 || ^3.0 || ^4.0 -> no matching package found.
- Installation request for friendsofsymfony/user-bundle ^2.1 -> satisfiable by friendsofsymfony/user-bundle[v2.1.0, v2.1.1, v2.1.2].
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
- It's a private package and you forgot to add a custom repository to find it
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
Installation failed, reverting ./composer.json to its original content.
when I check the symfony version in terminal:
Symfony CLI version v4.11.3 (c) 2017-2019 Symfony SAS
Symfony CLI helps developers manage projects, from local code to remote infrastructure
can you please help me to solve this problem?
I don't know about the symfony 4.11 version.
The last version maintained by symfony is the 4.4.
I think you should work on 4.4 version for more stability.
When you read docs, look at the version. Here there is no doc for symfony 4.11
So you're bundle will probably not work on your version.
On packagist you can see the bundle can work on 4.4 or 5 version.
https://packagist.org/packages/symfony/mailer
I'm trying to create a new laravel app, but when I use the command "laravel new" I've got an error :
laravel new
Crafting application...
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for phpunit/php-token-stream 2.0.0 -> satisfiable by phpunit/php-token-stream[2.0.0].
- phpunit/php-token-stream 2.0.0 requires php ^7.0 -> your PHP version (5.6.30) does not satisfy that requirement. Problem 2
- phpunit/php-token-stream 2.0.0 requires php ^7.0 -> your PHP version (5.6.30) does not satisfy that requirement.
- phpunit/php-code-coverage 4.0.8 requires phpunit/php-token-stream ^1.4.2 || ^2.0 -> satisfiable by phpunit/php-token-stream[2.0.0].
- Installation request for phpunit/php-code-coverage 4.0.8 -> satisfiable by phpunit/php-code-coverage[4.0.8].
Application ready! Build something amazing.
I'm on Windows 10, with php 5.6.30 installed.
I already tried to update composer itself, and laravel's installer (via composer global require "laravel/installer"), but it still doesn't work.
Last time I tried on this computer was three weeks ago, and it worked then.
Edit : I can't change my PHP version since it is the one I use on my server.
It looks like you are trying to download the latest realease of laravel. Though it is 5.4 but for some reason, it is downloading laravel's version that is compatible only with PHP7
Try with composer create-project --prefer-dist laravel/laravel blog "5.4.*" to install laravel 5.4
It's only the phpunit version. Change the version to smaller, like:
"phpunit/phpunit": "~5.7"
to
"phpunit/phpunit": "~5.0"
I have Symfony Demo Application up and running and now I'm trying to install API Platform as a standalone bundle.
I'm using PHP 7.0.10 with latest composer, but my previous test was using PHP 5.6.20.
When I try to add API Platform Core as a dependency, I get the following error message:
$ composer require api-platform/core
Using version ^1.1 for api-platform/core
./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
- Installation request for symfony/symfony (locked at v3.2.8, required as ^3
.2) -> satisfiable by symfony/symfony[v3.2.8].
- api-platform/core v1.1.0 requires phpdocumentor/reflection ^1.0.7 -> satis
fiable by phpdocumentor/reflection[1.0.7].
- api-platform/core v1.1.1 requires phpdocumentor/reflection ^1.0.7 -> satis
fiable by phpdocumentor/reflection[1.0.7].
- Conclusion: don't install phpdocumentor/reflection 1.0.7
- Installation request for api-platform/core ^1.1 -> satisfiable by api-plat
form/core[v1.1.0, v1.1.1].
Installation failed, reverting ./composer.json to its original content.
In your composer.json file:
Find:
"symfony/symfony": "3.2.*",
Replace with:
"symfony/symfony": "3.3.*",
...or:
"symfony/symfony": "^3.2.*",
You'll probably need (want) to run composer update first, THEN add your api-platform package with composer require api-platform/core so you have all the dependencies properly loaded, but it's not essential.
With PHP 7.x, you should be using ^2.0, e.g.
composer require api-platform/core ^2.0
Note: To workaround PHP 7.x requirements, you can try to add --ignore-platform-reqs.
If you get the error about minimum-stability, change it to beta in your composer.json file.
Source: Compatibility issue when using composer require with symfony 3.1.4 at GitHub.
See: Installing API Platform Core.
I've just downloaded the latest laravel 5.3 and I'm trying to install passport, but I'm getting the following composer error:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/passport v2.0.0 requires illuminate/http ~5.4 -> satisfiable by illuminate/http[v5.4.0].
- laravel/passport v2.0.1 requires illuminate/http ~5.4 -> satisfiable by illuminate/http[v5.4.0].
- Conclusion: don't install illuminate/http v5.4.0
- Installation request for laravel/passport ^2.0 -> satisfiable by laravel/passport[v2.0.0, v2.0.1].
Installation failed, reverting ./composer.json to its original content.
Composer .json file
http://pastebin.com/ne4RkL96
It happens, because after releasing Laravel 5.4, this package also had been updated to v 2.0 and requires Laravel 5.4. But you are using Laravel 5.3. Try to install earlier version:
composer require laravel/passport ^v1
Also, you can learn about the versions of this package here:
Laravel Passport
For Laravel 5.3.
In your composer.json file put "laravel/passport": "~1.0" and run "composer update" command.
In line with Rashad's answer as it helped me out, you need a version of passport less than major version 2. This can be accomplished with several version strings ^v1, v1.x, >= 1 < 2 and several other combinations.
I used this: php composer.phar require laravel/passport ^v1 and it worked awesomely.
Install laravel passport version 7:
> composer require laravel/passport:7.5.1
Hi my application is running with Symfony2.7.15 which contains new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle() in AppKarnel.php as well.
Now we need to make a Restful API to user webservices. I am trying to install FOSRESTBundle for this purpose but I am getting the following error.
friendsofsymfony/rest-bundle 1.8.0 conflicts with sensio/framework-extra-bundle[v3.0.16].
- friendsofsymfony/rest-bundle 1.8.0 conflicts with sensio/framework-extra-bundle[v3.0.16].
- friendsofsymfony/rest-bundle 1.8.0 conflicts with sensio/framework-extra-bundle[v3.0.16].
- Installation request for friendsofsymfony/rest-bundle ^1.8 -> satisfiable by friendsofsymfony/rest-bundle[1.8.0].
- Installation request for sensio/framework-extra-bundle (locked at v3.0.16, required as ^3.0.2) -> satisfiable by sensio/framework-extra-bundle[v3.0.16].
Please suggest how to resolved this.
According to packagist page of friendsofsymfony/rest-bundle the version 1.8.0 that you are installing conflicts with sensio/framework-extra-bundle: >=3.0.13
You have two choices here:
Downgrade sensio/framework-extra-bundle to the first non-conflicting version:
$ composer require sensio/framework-extra-bundle "3.0.12"
Install more recent version of friendsofsymfony/rest-bundle that is compatible with the extra bundle >=3.0.13:
$ composer require friendsofsymfony/rest-bundle "2.0.0"
As far as I can see the newer version is still compatible with Symfony 2.7+ so I would give it a shot.
Check the version of
sensio/framework-extra-bundle
I assume,It's 3.0.16
And FOSRestBundle requires framework-extra-bundle to be 3.0.2,
Update extra-bundle too. This should solve the problem.
I had same problem and just solved it.
FOSRestBundle v1.8.0 conflicts with sensio/framework-extra-bundle v3.0.13 or higher. Mentioned here, https://packagist.org/packages/friendsofsymfony/rest-bundle#1.8.0
Yours is v3.0.16 which is in the conflict range.
Here is the way how you can solve it:
Install FOSRestBundle v2.0.0, which only conflicts with sensio/framework-extra-bundle v3.0.13 or lower versions. So, your v3.0.16 is fine. More details: https://packagist.org/packages/friendsofsymfony/rest-bundle#2.0.0
I resolved it by running these two commands,
$ composer require sensio/framework-extra-bundle "3.0.12"
$ composer require friendsofsymfony/rest-bundle 1.8