I cant install Video thumbnail in my laravel project - laravel

I want to install ffmpeg on my laravel project but I am getting this errors.
Problem 1
- Conclusion: remove evenement/evenement v2.1.0
- Conclusion: don't install evenement/evenement v2.1.0
- php-ffmpeg/php-ffmpeg 0.5.0 requires evenement/evenement ~1.0 -> satisfiable by evenement/evenement[1.0.x-dev, v1.0.0, v1.1.0].
- php-ffmpeg/php-ffmpeg 0.5.1 requires evenement/evenement ~1.0 -> satisfiable by evenement/evenement[1.0.x-dev, v1.0.0, v1.1.0].
- php-ffmpeg/php-ffmpeg 0.6.0 requires evenement/evenement ~1.0 -> satisfiable by evenement/evenement[1.0.x-dev, v1.0.0, v1.1.0].
- alchemy/binary-driver 1.5.0 requires evenement/evenement ~1.0 -> satisfiable by evenement/evenement[1.0.x-dev, v1.0.0, v1.1.0].
- Can only install one of: evenement/evenement[1.0.x-dev, v2.1.0].
- Can only install one of: evenement/evenement[v1.0.0, v2.1.0].
- Can only install one of: evenement/evenement[v1.1.0, v2.1.0].
- Installation request for evenement/evenement (locked at v2.1.0) -> satisfiable by evenement/evenement[v2.1.0].
- Installation request for pawlox/video-thumbnail ^1.0 -> satisfiable by pawlox/video-thumbnail[v1.0.3].
- Conclusion: don't install monolog/monolog 2.0.0|install php-ffmpeg/php-ffmpeg 0.5.0|install php-ffmpeg/php-ffmpeg 0.5.1|install php-ffmpeg/php-ffmpeg 0.6.0|install alchemy/binary-driver 1.5.0
- Conclusion: remove monolog/monolog 2.0.0|install php-ffmpeg/php-ffmpeg 0.5.0|install php-ffmpeg/php-ffmpeg 0.5.1|install php-ffmpeg/php-ffmpeg 0.6.0|install alchemy/binary-driver 1.5.0
- pawlox/video-thumbnail v1.0.3 requires php-ffmpeg/php-ffmpeg ~0.5 -> satisfiable by php-ffmpeg/php-ffmpeg[0.5.0, 0.5.1, 0.6.0, 0.6.1, 0.7.0, 0.8.0, 0.9.0, 0.9.1, 0.9.2, 0.9.3, 0.9.4, 0.9.5, 0.7.x-dev, v0.10.0, v0.11.0, v0.11.1, v0.11.1-pl-1, v0.12, v0.13, v0.14].
- php-ffmpeg/php-ffmpeg v0.14 requires alchemy/binary-driver ^1.5 || ~2.0.0 || ^5.0 -> satisfiable by alchemy/binary-driver[1.5.0, 1.6.0, 5.0.0, 5.1.0, v2.0.0].
- php-ffmpeg/php-ffmpeg v0.13 requires alchemy/binary-driver ^1.5 || ~2.0.0 -> satisfiable by alchemy/binary-driver[1.5.0, 1.6.0, v2.0.0].
- php-ffmpeg/php-ffmpeg v0.12 requires alchemy/binary-driver ^1.5 -> satisfiable by alchemy/binary-driver[1.5.0, 1.6.0].
- php-ffmpeg/php-ffmpeg v0.11.1-pl-1 requires alchemy/binary-driver ^1.5 -> satisfiable by alchemy/binary-driver[1.5.0, 1.6.0].
- php-ffmpeg/php-ffmpeg v0.11.1 requires alchemy/binary-driver ^1.5 -> satisfiable by alchemy/binary-driver[1.5.0, 1.6.0].
- php-ffmpeg/php-ffmpeg v0.11.0 requires alchemy/binary-driver ^1.5 -> satisfiable by alchemy/binary-driver[1.5.0, 1.6.0].
- php-ffmpeg/php-ffmpeg v0.10.0 requires alchemy/binary-driver ^1.5 -> satisfiable by alchemy/binary-driver[1.5.0, 1.6.0].
- alchemy/binary-driver 5.1.0 requires monolog/monolog ^1.3 -> satisfiable by monolog/monolog[1.10.0, 1.11.0, 1.12.0, 1.13.0, 1.13.1, 1.14.0, 1.15.0, 1.16.0, 1.17.0, 1.17.1, 1.17.2, 1.18.0, 1.18.1, 1.18.2, 1.19.0, 1.20.0, 1.21.0, 1.22.0, 1.22.1, 1.23.0, 1.24.0,
1.25.0, 1.25.1, 1.25.2, 1.25.3, 1.3.0, 1.3.1, 1.4.0, 1.4.1, 1.5.0, 1.6.0, 1.7.0, 1.8.0, 1.9.0, 1.9.1, 1.x-dev].
- alchemy/binary-driver v2.0.0 requires monolog/monolog ^1.3 -> satisfiable by monolog/monolog[1.10.0, 1.11.0, 1.12.0, 1.13.0, 1.13.1, 1.14.0, 1.15.0, 1.16.0, 1.17.0, 1.17.1, 1.17.2, 1.18.0, 1.18.1, 1.18.2, 1.19.0, 1.20.0, 1.21.0, 1.22.0, 1.22.1, 1.23.0, 1.24.0, 1.25.0,
1.25.1, 1.25.2, 1.25.3, 1.3.0, 1.3.1, 1.4.0, 1.4.1, 1.5.0, 1.6.0, 1.7.0, 1.8.0, 1.9.0, 1.9.1, 1.x-dev].
- Can only install one of: monolog/monolog[1.25.3, 2.0.0].
- Can only install one of: monolog/monolog[1.x-dev, 2.0.0].
- Can only install one of: monolog/monolog[1.10.0, 2.0.0].
- Can only install one of: monolog/monolog[1.11.0, 2.0.0].
- Can only install one of: monolog/monolog[1.3.0, 2.0.0].
- Can only install one of: monolog/monolog[1.3.1, 2.0.0].
- Can only install one of: monolog/monolog[1.4.0, 2.0.0].
- Can only install one of: monolog/monolog[1.4.1, 2.0.0].
- Can only install one of: monolog/monolog[1.5.0, 2.0.0].
- Can only install one of: monolog/monolog[1.6.0, 2.0.0].
- Can only install one of: monolog/monolog[1.7.0, 2.0.0].
- Can only install one of: monolog/monolog[1.8.0, 2.0.0].
- Can only install one of: monolog/monolog[1.9.0, 2.0.0].
- Can only install one of: monolog/monolog[1.9.1, 2.0.0].
- Installation request for monolog/monolog (locked at 2.0.0) -> satisfiable by monolog/monolog[2.0.0].
I am using laravel 6.4.1
I have researched on the solution but I could not get any.
I don't know that the problem could be.
What could be the solution. thanks

Try this:
Add to your composer.json:
"repositories": [
{
"type": "vcs",
"url": "https://github.com/PHP-FFMpeg/BinaryDriver.git"
}
],
Install the binary-driver ffmpeg dependency:
run composer require php-ffmpeg/binary-driver=dev-master
Install php-ffm:
composer require php-ffmpeg/php-ffm

Related

composer require laravel/ui. Don't install illuminate/console v7.12.0

I am working on bagiato(laravel). When I run the command "composer require laravel/ui" this error comes.
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: don't install illuminate/console v7.12.0
- don't install illuminate/console 7.x-dev|don't install laravel/framework v6.18.15
- don't install illuminate/console 7.x-dev|remove laravel/framework v6.18.15
- don't install illuminate/console 7.x-dev|don't install laravel/framework v6.18.15
- Installation request for illuminate/console ^7.12 -> satisfiable by illuminate/console[7.x-dev, v7.12.0].
- Installation request for laravel/framework (locked at v6.18.15, required as ^6.0) -> satisfiable by laravel/framework[v6.18.15].
You are trying to install the wrong version of laravel/ui.
laravel/ui version 1 is what you want. Version 2 is trying to install and only laravel 7+ supports it.
composer require vendor/package:version
composer require laravel/ui:1.2.0 <- latest version of laravel/ui that works with Laravel 6

How to update phpunit 6 and code-coverage 5

I am using phpunit 6.5.14 togehter with php-code-coverage 5.3.2
I would like to update phpunit and php-code-coverage. However, when i try to update one of them, it fails because they require each other.
For example. calling
composer require --dev phpunit/phpunit ^7
fails with:
1/1: http://repo.packagist.org/p/provider-latest$f1c1ff74699130b4d82cd11e43a57fffc27fdcc5f268000782f585b13d1c5d4c.json
Finished: success: 1, skipped: 0, failure: 0, total: 1
./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
- Conclusion: don't install phpunit/phpunit 7.5.17
- Conclusion: don't install phpunit/phpunit 7.5.16
- Conclusion: don't install phpunit/phpunit 7.5.15
- Conclusion: don't install phpunit/phpunit 7.5.14
- Conclusion: don't install phpunit/phpunit 7.5.13
- Conclusion: don't install phpunit/phpunit 7.5.12
- Conclusion: don't install phpunit/phpunit 7.5.11
- Conclusion: don't install phpunit/phpunit 7.5.10
- Conclusion: don't install phpunit/phpunit 7.5.9
- Conclusion: don't install phpunit/phpunit 7.5.8
- Conclusion: don't install phpunit/phpunit 7.5.7
- Conclusion: don't install phpunit/phpunit 7.5.6
- Conclusion: don't install phpunit/phpunit 7.5.5
- Conclusion: don't install phpunit/phpunit 7.5.4
- Conclusion: don't install phpunit/phpunit 7.5.3
- Conclusion: don't install phpunit/phpunit 7.5.2
- Conclusion: don't install phpunit/phpunit 7.5.1
- Conclusion: don't install phpunit/phpunit 7.5.0
- Conclusion: don't install phpunit/phpunit 7.4.5
- Conclusion: don't install phpunit/phpunit 7.4.4
- Conclusion: don't install phpunit/phpunit 7.4.3
- Conclusion: don't install phpunit/phpunit 7.4.2
- Conclusion: don't install phpunit/phpunit 7.4.1
- Conclusion: don't install phpunit/phpunit 7.4.0
- Conclusion: don't install phpunit/phpunit 7.3.5
- Conclusion: don't install phpunit/phpunit 7.3.4
- Conclusion: don't install phpunit/phpunit 7.3.3
- Conclusion: don't install phpunit/phpunit 7.3.2
- Conclusion: don't install phpunit/phpunit 7.3.1
- Conclusion: don't install phpunit/phpunit 7.3.0
- Conclusion: don't install phpunit/phpunit 7.2.7
- Conclusion: don't install phpunit/phpunit 7.2.6
- Conclusion: don't install phpunit/phpunit 7.2.5
- Conclusion: don't install phpunit/phpunit 7.2.4
- Conclusion: don't install phpunit/phpunit 7.2.3
- Conclusion: don't install phpunit/phpunit 7.2.2
- Conclusion: don't install phpunit/phpunit 7.2.1
- Conclusion: don't install phpunit/phpunit 7.2.0
- Conclusion: don't install phpunit/phpunit 7.1.5
- Conclusion: don't install phpunit/phpunit 7.1.4
- Conclusion: don't install phpunit/phpunit 7.1.3
- Conclusion: don't install phpunit/phpunit 7.1.2
- Conclusion: don't install phpunit/phpunit 7.1.1
- Conclusion: don't install phpunit/phpunit 7.1.0
- Conclusion: don't install phpunit/phpunit 7.0.3
- Conclusion: don't install phpunit/phpunit 7.0.2
- Conclusion: don't install phpunit/phpunit 7.0.1
- Conclusion: remove phpunit/php-code-coverage 5.3.2
- Installation request for phpunit/phpunit-mock-objects (locked at 5.0.10) -> satisfiable by phpunit/phpunit-mock-objects[5.0.10].
- Installation request for phpunit/phpunit ^7 -> satisfiable by phpunit/phpunit[7.0.0, 7.0.1, 7.0.2, 7.0.3, 7.1.0, 7.1.1, 7.1.2, 7.1.3, 7.1.4, 7.1.5, 7.2.0, 7.2.1, 7.2.2, 7.2.3, 7.2.4, 7.2.5, 7.2.6, 7.2.7, 7.3.0, 7.3.1, 7.3.2, 7.3.3, 7.3.4, 7.3.5, 7.4.0, 7.4.1, 7.4.2, 7.4.3, 7.4.4, 7.4.5, 7.5.0, 7.5.1, 7.5.10, 7.5.11, 7.5.12, 7.5.13, 7.5.14, 7.5.15, 7.5.16, 7.5.17, 7.5.2, 7.5.3, 7.5.4, 7.5.5, 7.5.6, 7.5.7, 7.5.8, 7.5.9].
- Conclusion: don't install phpunit/php-code-coverage 5.3.2
- phpunit/phpunit 7.0.0 requires phpunit/php-code-coverage ^6.0 -> satisfiable by phpunit/php-code-coverage[6.0.0, 6.0.1, 6.0.2, 6.0.3, 6.0.4, 6.0.5, 6.0.6, 6.0.7, 6.0.8, 6.1.0, 6.1.1, 6.1.2, 6.1.3, 6.1.4].
- Can only install one of: phpunit/php-code-coverage[6.0.0, 5.3.2].
- Can only install one of: phpunit/php-code-coverage[6.0.1, 5.3.2].
- Can only install one of: phpunit/php-code-coverage[6.0.2, 5.3.2].
- Can only install one of: phpunit/php-code-coverage[6.0.3, 5.3.2].
- Can only install one of: phpunit/php-code-coverage[6.0.4, 5.3.2].
- Can only install one of: phpunit/php-code-coverage[6.0.5, 5.3.2].
- Can only install one of: phpunit/php-code-coverage[6.0.6, 5.3.2].
- Can only install one of: phpunit/php-code-coverage[6.0.7, 5.3.2].
- Can only install one of: phpunit/php-code-coverage[6.0.8, 5.3.2].
- Can only install one of: phpunit/php-code-coverage[6.1.0, 5.3.2].
- Can only install one of: phpunit/php-code-coverage[6.1.1, 5.3.2].
- Can only install one of: phpunit/php-code-coverage[6.1.2, 5.3.2].
- Can only install one of: phpunit/php-code-coverage[6.1.3, 5.3.2].
- Can only install one of: phpunit/php-code-coverage[6.1.4, 5.3.2].
- Installation request for phpunit/php-code-coverage (locked at 5.3.2) -> satisfiable by phpunit/php-code-coverage[5.3.2].
Trying to update code-coverage by
composer require phpunit/php-code-coverage ^6
fails with:
1/3: http://repo.packagist.org/p/provider-2019-10$1fbc8abf3f09ae347d28fffd902e6857758ba1084d91f9a81432e2a4039456fa.json
2/3: http://repo.packagist.org/p/provider-latest$b45915c1d4dfb4884956884c1468dfdd815ecef36ccfcbfe487b1bde9b209131.json
3/3: http://repo.packagist.org/p/provider-2019-07$645a5eaea36f8c8ff4b02534eb6864a423517398ecd77c4709effcb55d4a0c07.json
Finished: success: 3, skipped: 0, failure: 0, total: 3
./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
- phpunit/phpunit 6.5.14 requires phpunit/php-code-coverage ^5.3 -> satisfiable by phpunit/php-code-coverage[5.3.0, 5.3.1, 5.3.2, 5.3.x-dev] but these conflict with your requirements or minimum-stability.
- phpunit/phpunit 6.5.14 requires phpunit/php-code-coverage ^5.3 -> satisfiable by phpunit/php-code-coverage[5.3.0, 5.3.1, 5.3.2, 5.3.x-dev] but these conflict with your requirements or minimum-stability.
- phpunit/phpunit 6.5.14 requires phpunit/php-code-coverage ^5.3 -> satisfiable by phpunit/php-code-coverage[5.3.0, 5.3.1, 5.3.2, 5.3.x-dev] but these conflict with your requirements or minimum-stability.
- Installation request for phpunit/phpunit (locked at 6.5.14, required as ~6.0) -> satisfiable by phpunit/phpunit[6.5.14].
Installation failed, reverting ./composer.json to its original content.
I also tried to remove the code-coverage, so that I can update php-unit and reinstall it again. But removing it with
composer remove phpunit/php-code-coverage
does not work and just gives this notification:
phpunit/php-code-coverage is not required in your composer.json and has not been removed
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Package phpunit/phpunit-mock-objects is abandoned, you should avoid using it. No replacement was suggested.
Generating optimized autoload files
ocramius/package-versions: Generating version class...
ocramius/package-versions: ...done generating version class
Carbon 1 is deprecated, see how to migrate to Carbon 2.
https://carbon.nesbot.com/docs/#api-carbon-2
You can run './vendor/bin/upgrade-carbon' to get help in updating carbon and other frameworks and libraries that depend on it.
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> #php artisan package:discover
Discovered Package: arrilot/laravel-widgets
Discovered Package: barryvdh/laravel-debugbar
Discovered Package: fideloper/proxy
Discovered Package: intervention/image
Discovered Package: iwasherefirst2/laravel-multimail
Discovered Package: larapack/voyager-hooks
Discovered Package: laravel/tinker
Discovered Package: mcamara/laravel-localization
Discovered Package: nunomaduro/larastan
Discovered Package: spatie/laravel-sitemap
Discovered Package: tcg/voyager
Discovered Package: xethron/migrations-generator
Package manifest generated successfully.
How may update both packages?
I recommend deleting composer.lock and or vendor, as Composer is not perfect in this. Often there is no conflict at all.
Then change remove both packages from composer.json.
Then let composer re-decide the highest version possible:
composer require phpunit/phpunit
You can ommit the phpunit/php-code-coverage, as it's already in phpunit/phpunit required packages.
I solved it by using --update-with-dependencies:
$ composer require --dev --update-with-dependencies phpunit/phpunit ^7.0.0
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 0 installs, 12 updates, 1 removal
- Removing phpunit/phpunit-mock-objects (5.0.10)
- Updating sebastian/resource-operations (1.0.0 => 2.0.1): Downloading (100%)
- Updating sebastian/environment (3.1.0 => 4.2.3): Downloading (100%)
- Updating sebastian/diff (2.0.1 => 3.0.2): Downloading (100%)
- Updating sebastian/comparator (2.1.3 => 3.0.2): Downloading (100%)
- Updating phpunit/php-timer (1.0.9 => 2.1.2): Downloading (100%)
- Updating phpunit/php-file-iterator (1.4.5 => 2.0.2): Downloading (100%)
- Updating phpunit/php-token-stream (2.0.2 => 3.1.1): Downloading (100%)
- Updating phpunit/php-code-coverage (5.3.2 => 6.1.4): Downloading (100%)
- Updating phar-io/version (1.0.1 => 2.0.1): Downloading (100%)
- Updating phar-io/manifest (1.0.1 => 1.0.3): Downloading (100%)
- Updating phpunit/phpunit (6.5.14 => 7.5.20): Downloading (100%)
(I found that option through https://github.com/composer/composer/issues/3063)

Which Passport version is compatible with Laravel 5.7.15, default installation does not work

As a part of Laravel 5.7 setup, I am trying to install Passport using the command:
composer require laravel/passport
But it doesn't work and gives the error:
Using version ^8.0 for laravel/passport
./composer.json has been updated
./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
- Conclusion: remove laravel/framework v5.7.15
- Conclusion: don't install laravel/framework v5.7.15
- laravel/passport 8.x-dev requires illuminate/support ^6.0|^7.0 -> satisfiable by laravel/framework[6.x-dev], illuminate/support[6.x-dev, 7.0.x-dev, v6.0.0, v6.0.1, v6.0.2, v6.0.3, v6.0.4, v6.1.0, v6.2.0, v6.3.0, v6.4.1, v6.5.0, v6.5.1, v6.5.2, v6.6.0].
- laravel/passport v8.0.0 requires illuminate/support ^6.0|^7.0 -> satisfiable by laravel/framework[6.x-dev], illuminate/support[6.x-dev, 7.0.x-dev, v6.0.0, v6.0.1, v6.0.2, v6.0.3, v6.0.4, v6.1.0, v6.2.0, v6.3.0, v6.4.1, v6.5.0, v6.5.1, v6.5.2, v6.6.0].
- laravel/passport v8.0.1 requires illuminate/support ^6.0|^7.0 -> satisfiable by laravel/framework[6.x-dev], illuminate/support[6.x-dev, 7.0.x-dev, v6.0.0, v6.0.1, v6.0.2, v6.0.3, v6.0.4, v6.1.0, v6.2.0, v6.3.0, v6.4.1, v6.5.0, v6.5.1, v6.5.2, v6.6.0].
- laravel/passport v8.0.2 requires illuminate/support ^6.0|^7.0 -> satisfiable by laravel/framework[6.x-dev], illuminate/support[6.x-dev, 7.0.x-dev, v6.0.0, v6.0.1, v6.0.2, v6.0.3, v6.0.4, v6.1.0, v6.2.0, v6.3.0, v6.4.1, v6.5.0, v6.5.1, v6.5.2, v6.6.0].
- Can only install one of: laravel/framework[6.x-dev, v5.7.15].
- don't install illuminate/support 6.x-dev|don't install laravel/framework v5.7.15
- don't install illuminate/support v6.0.0|don't install laravel/framework v5.7.15
- don't install illuminate/support v6.0.1|don't install laravel/framework v5.7.15
- don't install illuminate/support v6.0.2|don't install laravel/framework v5.7.15
- don't install illuminate/support v6.0.3|don't install laravel/framework v5.7.15
- don't install illuminate/support v6.0.4|don't install laravel/framework v5.7.15
- don't install illuminate/support v6.1.0|don't install laravel/framework v5.7.15
- don't install illuminate/support v6.2.0|don't install laravel/framework v5.7.15
- don't install illuminate/support v6.3.0|don't install laravel/framework v5.7.15
- don't install illuminate/support v6.4.1|don't install laravel/framework v5.7.15
- don't install illuminate/support v6.5.0|don't install laravel/framework v5.7.15
- don't install illuminate/support v6.5.1|don't install laravel/framework v5.7.15
- don't install illuminate/support v6.5.2|don't install laravel/framework v5.7.15
- don't install illuminate/support v6.6.0|don't install laravel/framework v5.7.15
- don't install illuminate/support 7.0.x-dev|don't install laravel/framework v5.7.15
- Installation request for laravel/framework (locked at v5.7.15, required as 5.7.*) -> satisfiable by laravel/framework[v5.7.15].
- Installation request for laravel/passport ^8.0 -> satisfiable by laravel/passport[8.x-dev, v8.0.0, v8.0.1, v8.0.2].
Installation failed, reverting ./composer.json to its original content.
It looks like the Passport version 8.0 is not compatible with the Version 5.7.15 of Laravel, which version is compatible here?
I have simply chosen the older version of Passport: v7.5.1
composer require laravel/passport "7.5.1"
and the installation worked successfully:
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 15 installs, 0 updates, 0 removals
- Installing psr/http-message (1.0.1): Loading from cache
- Installing psr/http-factory (1.0.1): Loading from cache
- Installing zendframework/zend-diactoros (2.2.1): Loading from cache
- Installing symfony/psr-http-message-bridge (v1.3.0): Loading from cache
- Installing phpseclib/phpseclib (2.0.23): Loading from cache
- Installing defuse/php-encryption (v2.2.1): Loading from cache
- Installing lcobucci/jwt (3.3.1): Loading from cache
- Installing league/event (2.2.0): Loading from cache
- Installing league/oauth2-server (7.4.0): Downloading (100%)
- Installing ralouphie/getallheaders (3.0.3): Loading from cache
- Installing guzzlehttp/psr7 (1.6.1): Loading from cache
- Installing guzzlehttp/promises (v1.3.1): Loading from cache
- Installing guzzlehttp/guzzle (6.4.1): Loading from cache
- Installing firebase/php-jwt (v5.0.0): Loading from cache
- Installing laravel/passport (v7.5.1): Downloading (100%)
symfony/psr-http-message-bridge suggests installing nyholm/psr7 (For a super lightweight PSR-7/17 implementation)
phpseclib/phpseclib suggests installing ext-libsodium (SSH2/SFTP can make use of some algorithms provided by the libsodium-php extension.)
phpseclib/phpseclib suggests installing ext-mcrypt (Install the Mcrypt extension in order to speed up a few other cryptographic operations.)
phpseclib/phpseclib suggests installing ext-gmp (Install the GMP (GNU Multiple Precision) extension in order to speed up arbitrary precision integer arithmetic operations.)
guzzlehttp/psr7 suggests installing zendframework/zend-httphandlerrunner (Emit PSR-7 responses)
Writing lock file
Generating optimized autoload files
Carbon 1 is deprecated, see how to migrate to Carbon 2.
https://carbon.nesbot.com/docs/#api-carbon-2
You can run './vendor/bin/upgrade-carbon' to get help in updating carbon and other frameworks and libraries that depend on it.
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> #php artisan package:discover --ansi
Discovered Package: beyondcode/laravel-dump-server
Discovered Package: fideloper/proxy
Discovered Package: laravel/passport
Discovered Package: laravel/tinker
Discovered Package: nesbot/carbon
Discovered Package: nunomaduro/collision
Package manifest generated successfully.
Passport 10.* requires Laravel 8.*.
https://github.com/laravel/passport/blob/master/UPGRADE.md

While installing Magento 2 on Ubuntu LTS 16.04, i am getting some different error

I have already installed these packages.
sudo apt-get install apache2 php libapache2-mod-php mysql-server php-mysql php-dom \
php-simplexml php-curl php-intl php-xsl php-mbstring php-zip php-xml composer
After this command
composer install
I am getting this error
Problem 1
- This package requires php ~7.1.3||~7.2.0 but your PHP version (7.0.32) does not satisfy that requirement.
Problem 2
- The requested PHP extension ext-bcmath * is missing from your system. Install or enable PHP's bcmath extension.
Problem 3
- The requested PHP extension ext-soap * is missing from your system. Install or enable PHP's soap extension.
Problem 4
- Installation request for magento/composer 1.4.0 -> satisfiable by magento/composer[1.4.0].
- magento/composer 1.4.0 requires php ~7.1.3|~7.2.0 -> your PHP version (7.0.32) does not satisfy that requirement.
Problem 5
- Installation request for php-amqplib/php-amqplib v2.7.3 -> satisfiable by php-amqplib/php-amqplib[v2.7.3].
- php-amqplib/php-amqplib v2.7.3 requires ext-bcmath * -> the requested PHP extension bcmath is missing from your system.
Problem 6
- Installation request for symfony/console v4.1.6 -> satisfiable by symfony/console[v4.1.6].
- symfony/console v4.1.6 requires php ^7.1.3 -> your PHP version (7.0.32) does not satisfy that requirement.
Problem 7
- Installation request for symfony/event-dispatcher v4.1.6 -> satisfiable by symfony/event-dispatcher[v4.1.6].
- symfony/event-dispatcher v4.1.6 requires php ^7.1.3 -> your PHP version (7.0.32) does not satisfy that requirement.
Problem 8
- Installation request for symfony/filesystem v4.1.6 -> satisfiable by symfony/filesystem[v4.1.6].
- symfony/filesystem v4.1.6 requires php ^7.1.3 -> your PHP version (7.0.32) does not satisfy that requirement.
Problem 9
- Installation request for symfony/finder v4.1.6 -> satisfiable by symfony/finder[v4.1.6].
- symfony/finder v4.1.6 requires php ^7.1.3 -> your PHP version (7.0.32) does not satisfy that requirement.
Problem 10
- Installation request for symfony/process v4.1.6 -> satisfiable by symfony/process[v4.1.6].
- symfony/process v4.1.6 requires php ^7.1.3 -> your PHP version (7.0.32) does not satisfy that requirement.
Problem 11
- Installation request for zendframework/zend-code 3.3.1 -> satisfiable by zendframework/zend-code[3.3.1].
- zendframework/zend-code 3.3.1 requires php ^7.1 -> your PHP version (7.0.32) does not satisfy that requirement.
Problem 12
- Installation request for zendframework/zend-soap 2.7.0 -> satisfiable by zendframework/zend-soap[2.7.0].
- zendframework/zend-soap 2.7.0 requires ext-soap * -> the requested PHP extension soap is missing from your system.
Problem 13
- Installation request for doctrine/annotations v1.6.0 -> satisfiable by doctrine/annotations[v1.6.0].
- doctrine/annotations v1.6.0 requires php ^7.1 -> your PHP version (7.0.32) does not satisfy that requirement.
Problem 14
- Installation request for doctrine/collections v1.5.0 -> satisfiable by doctrine/collections[v1.5.0].
- doctrine/collections v1.5.0 requires php ^7.1 -> your PHP version (7.0.32) does not satisfy that requirement.
Problem 15
- Installation request for doctrine/instantiator 1.1.0 -> satisfiable by doctrine/instantiator[1.1.0].
- doctrine/instantiator 1.1.0 requires php ^7.1 -> your PHP version (7.0.32) does not satisfy that requirement.
Problem 16
- Installation request for moontoast/math 1.1.2 -> satisfiable by moontoast/math[1.1.2].
- moontoast/math 1.1.2 requires ext-bcmath * -> the requested PHP extension bcmath is missing from your system.
Problem 17
- Installation request for myclabs/deep-copy 1.8.1 -> satisfiable by myclabs/deep-copy[1.8.1].
- myclabs/deep-copy 1.8.1 requires php ^7.1 -> your PHP version (7.0.32) does not satisfy that requirement.
Problem 18
- Installation request for symfony/browser-kit v4.1.6 -> satisfiable by symfony/browser-kit[v4.1.6].
- symfony/browser-kit v4.1.6 requires php ^7.1.3 -> your PHP version (7.0.32) does not satisfy that requirement.
Problem 19
- Installation request for symfony/config v4.1.6 -> satisfiable by symfony/config[v4.1.6].
- symfony/config v4.1.6 requires php ^7.1.3 -> your PHP version (7.0.32) does not satisfy that requirement.
Problem 20
- Installation request for symfony/css-selector v4.1.6 -> satisfiable by symfony/css-selector[v4.1.6].
- symfony/css-selector v4.1.6 requires php ^7.1.3 -> your PHP version (7.0.32) does not satisfy that requirement.
Problem 21
- Installation request for symfony/dependency-injection v4.1.6 -> satisfiable by symfony/dependency-injection[v4.1.6].
- symfony/dependency-injection v4.1.6 requires php ^7.1.3 -> your PHP version (7.0.32) does not satisfy that requirement.
Problem 22
- Installation request for symfony/dom-crawler v4.1.6 -> satisfiable by symfony/dom-crawler[v4.1.6].
- symfony/dom-crawler v4.1.6 requires php ^7.1.3 -> your PHP version (7.0.32) does not satisfy that requirement.
Problem 23
- Installation request for symfony/http-foundation v4.1.6 -> satisfiable by symfony/http-foundation[v4.1.6].
- symfony/http-foundation v4.1.6 requires php ^7.1.3 -> your PHP version (7.0.32) does not satisfy that requirement.
Problem 24
- Installation request for symfony/options-resolver v4.1.6 -> satisfiable by symfony/options-resolver[v4.1.6].
- symfony/options-resolver v4.1.6 requires php ^7.1.3 -> your PHP version (7.0.32) does not satisfy that requirement.
Problem 25
- Installation request for symfony/stopwatch v4.1.6 -> satisfiable by symfony/stopwatch[v4.1.6].
- symfony/stopwatch v4.1.6 requires php ^7.1.3 -> your PHP version (7.0.32) does not satisfy that requirement.
Problem 26
- symfony/console v4.1.6 requires php ^7.1.3 -> your PHP version (7.0.32) does not satisfy that requirement.
- sebastian/phpcpd 3.0.1 requires symfony/console ^2.7|^3.0|^4.0 -> satisfiable by symfony/console[v4.1.6].
- Installation request for sebastian/phpcpd 3.0.1 -> satisfiable by sebastian/phpcpd[3.0.1].
To enable extensions, verify that they are enabled in those .ini files:
- /etc/php/7.0/cli/php.ini
- /etc/php/7.0/cli/conf.d/10-mysqlnd.ini
- /etc/php/7.0/cli/conf.d/10-opcache.ini
- /etc/php/7.0/cli/conf.d/10-pdo.ini
- /etc/php/7.0/cli/conf.d/15-xml.ini
- /etc/php/7.0/cli/conf.d/20-calendar.ini
- /etc/php/7.0/cli/conf.d/20-ctype.ini
- /etc/php/7.0/cli/conf.d/20-curl.ini
- /etc/php/7.0/cli/conf.d/20-dom.ini
- /etc/php/7.0/cli/conf.d/20-exif.ini
- /etc/php/7.0/cli/conf.d/20-fileinfo.ini
- /etc/php/7.0/cli/conf.d/20-ftp.ini
- /etc/php/7.0/cli/conf.d/20-gd.ini
- /etc/php/7.0/cli/conf.d/20-gettext.ini
- /etc/php/7.0/cli/conf.d/20-iconv.ini
- /etc/php/7.0/cli/conf.d/20-intl.ini
- /etc/php/7.0/cli/conf.d/20-json.ini
- /etc/php/7.0/cli/conf.d/20-mbstring.ini
- /etc/php/7.0/cli/conf.d/20-mcrypt.ini
- /etc/php/7.0/cli/conf.d/20-mysqli.ini
- /etc/php/7.0/cli/conf.d/20-pdo_mysql.ini
- /etc/php/7.0/cli/conf.d/20-phar.ini
- /etc/php/7.0/cli/conf.d/20-posix.ini
- /etc/php/7.0/cli/conf.d/20-readline.ini
- /etc/php/7.0/cli/conf.d/20-shmop.ini
- /etc/php/7.0/cli/conf.d/20-simplexml.ini
- /etc/php/7.0/cli/conf.d/20-sockets.ini
- /etc/php/7.0/cli/conf.d/20-sysvmsg.ini
- /etc/php/7.0/cli/conf.d/20-sysvsem.ini
- /etc/php/7.0/cli/conf.d/20-sysvshm.ini
- /etc/php/7.0/cli/conf.d/20-tokenizer.ini
- /etc/php/7.0/cli/conf.d/20-wddx.ini
- /etc/php/7.0/cli/conf.d/20-xmlreader.ini
- /etc/php/7.0/cli/conf.d/20-xmlwriter.ini
- /etc/php/7.0/cli/conf.d/20-xsl.ini
- /etc/php/7.0/cli/conf.d/20-zip.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
step1: first better to remove the php from your ubuntu using this command.
it will only remove php and its modules
sudo apt-get purge `dpkg -l | grep php| awk '{print $2}' |tr "\n" " "`
step2: PHP 7.1 isn’t available on Ubuntu default repositories… in order to install it,
you will have to get it from third-party repositories.
Run the commands below to add the below third party repository to install PHP 7.1
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
step:3
now install the required modules.
sudo apt-get install php7.1 libapache2-mod-php7.1 php7.1-common php7.1-mbstring php7.1-xmlrpc php7.1-soap php7.1-gd php7.1-xml php7.1-intl php7.1-mysql php7.1-cli php7.1-mcrypt php7.1-zip php7.1-curl composer
I got the same error, using this command error is resolved
sudo apt-get install php-bcmath php-soap

Socialite installation error Laravel

I have installed socialite before but haven't experienced this type of error. All of a sudden this error pops up.
What is the problem that caused these errors?
c:\xampp\htdocs\laravel-projects\chats>composer require laravel/socialite
Using version ^2.0 for laravel/socialite
./composer.json has been created
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
- laravel/socialite v2.0.0 requires league/oauth1-client ~1.0 -> satisfiable
by league/oauth1-client[1.0.0, 1.0.1, 1.0.2, 1.1.0, 1.2.0, 1.2.1, 1.3.0, 1.4.0,
1.5.0, 1.5.1, 1.6.0, 1.6.1]
- laravel/socialite v2.0.3 requires league/oauth1-client ~1.0 -> satisfiable
- laravel/socialite v2.0.7 requires league/oauth1-client ~1.0 -> satisfiable
by league/oauth1-client[1.0.0, 1.0.1, 1.0.2, 1.1.0, 1.2.0, 1.2.1, 1.3.0, 1.4.0,
1.5.0, 1.5.1, 1.6.0, 1.6.1].
- league/oauth1-client 1.0.0 requires guzzle/guzzle 3.* -> satisfiable by gu
- league/oauth1-client 1.0.1 requires guzzle/guzzle 3.* -> satisfiable by gu
zzle/guzzle[v3.0.0, v3.0.1, v3.0.2, v3.0.3, v3.0.4, v3.0.5, v3.0.6, v3.0.7, v3.1
.0, v3.1.1, v3.1.2, v3.2.0, v3.3.0, v3.3.1, v3.4.0, v3.4.1, v3.4.2, v3.4.3, v3.5
.0, v3.6.0, v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4, v3.8.0, v3.8.1, v3.9.0, v3.9
.1, v3.9.2, v3.9.3].
- league/oauth1-client 1.5.1 requires guzzle/guzzle 3.* -> satisfiable by gu
zzle/guzzle[v3.0.0, v3.0.1, v3.0.2, v3.0.3, v3.0.4, v3.0.5, v3.0.6, v3.0.7, v3.1
.0, v3.1.1, v3.1.2, v3.2.0, v3.3.0, v3.3.1, v3.4.0, v3.4.1, v3.4.2, v3.4.3, v3.5
.0, v3.6.0, v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4, v3.8.0, v3.8.1, v3.9.0, v3.9
.1, v3.9.2, v3.9.3].
- guzzle/guzzle v3.9.3 requires ext-curl * -> the requested PHP extension cu
rl is missing from your system.
- guzzle/guzzle v3.3.0 requires ext-curl * -> the requested PHP extension cu
socialite[v2.0.0, v2.0.1, v2.0.10, v2.0.11, v2.0.12, v2.0.13, v2.0.14, v2.0.15,
v2.0.16, v2.0.17, v2.0.2, v2.0.3, v2.0.4, v2.0.5, v2.0.6, v2.0.7, v2.0.8, v2.0.9
].
To enable extensions, verify that they are enabled in those .ini files:
- C:\xampp\php\php.ini
You can also run `php --ini` inside terminal to see which files are used by PH
P in CLI mode.
Installation failed, deleting ./composer.json.
I have removed many repeating errors with different version since the error code was very big.
Run composer install or composer update first. Then try running composer require laravel/socialite.
And you have not installed curl, install it first.
I solved it by enabling the curl in Php.ini file and install socialite as usual and it worked

Resources