laravel / socialite

Laravel wrapper around OAuth 1 & OAuth 2 libraries.

Home Page:https://laravel.com/docs/socialite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Socialite installation will have the default packages removed

KanCiGamer opened this issue · comments

Socialite Version

^5.12

Laravel Version

^10.10

PHP Version

^8.1

Database Driver & Version

MySQL 8.2.0

Description

When I use the command: Composer require laravel/socialite, it removes default packages like tinker, framework which affects my project and it cannot launch. I also cannot reinstall those packages using the composer update... command.
My composer.json:

{
"name": "laravel/laravel",
"type": "project",
"description": "The skeleton application for the Laravel framework.",
"keywords": ["laravel", "framework"],
"license": "MIT",
"require": {
"php": "^8.1",
"guzzlehttp/guzzle": "^7.2",
"laravel/framework": "^10.10",
"laravel/sanctum": "^3.3",
"laravel/tinker": "^2.8",
"laravel/socialite": "^5.12"
},
"require-dev": {
"fakerphp/faker": "^1.9.1",
"laravel/pint": "^1.0",
"laravel/sail": "^1.18",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^7.0",
"phpunit/phpunit": "^10.1",
"spatie/laravel-ignition": "^2.0"
},
"autoload": {
"psr-4": {
"App": "app/",
"Database\Factories": "database/factories/",
"Database\Seeders": "database/seeders/"
}
},
"autoload-dev": {
"psr-4": {
"Tests": "tests/"
}
},
"scripts": {
"post-autoload-dump": [
"Illuminate\Foundation\ComposerScripts::postAutoloadDump",
"https://github.com/php artisan package:discover --ansi"
],
"post-update-cmd": [
"https://github.com/php artisan vendor:publish --tag=laravel-assets --ansi --force"
],
"post-root-package-install": [
"https://github.com/php -r "file_exists('.env') || copy('.env.example', '.env');""
],
"post-create-project-cmd": [
"https://github.com/php artisan key:generate --ansi"
]
},
"extra": {
"laravel": {
"dont-discover": []
}
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true,
"allow-plugins": {
"pestphp/pest-plugin": true,
"php-http/discovery": true
}
},
"minimum-stability": "stable",
"prefer-stable": true
}

Steps To Reproduce

I don't do this step

I just want to install laravel/socialite but every time I install it, it deletes default packages like framework or tinker.. and crashes my whole project. I don't know how to fix it

composer require doesn't have the ability to delete other requirements.

@crynobone I don't know what I installed wrong that caused this problem. You can see the information when I used composer require below:
`PS E:\TestAPI\GoogleAPI2> composer require laravel/socialite
D:\Composer has been updated
Running composer update laravel/socialite
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 44 installs, 3 updates, 64 removals

  • Removing webmozart/assert (1.11.0)
  • Removing vlucas/phpdotenv (v5.6.0)
  • Removing tijsverkoyen/css-to-inline-styles (v2.2.7)
  • Removing theseer/tokenizer (1.2.2)
  • Removing symfony/yaml (v7.0.3)
  • Removing symfony/uid (v6.4.3)
  • Removing symfony/routing (v6.4.3)
  • Removing symfony/polyfill-uuid (v1.29.0)
  • Removing symfony/mailer (v6.4.4)
  • Removing symfony/css-selector (v7.0.3)
  • Removing spatie/laravel-ignition (2.4.2)
  • Removing spatie/ignition (1.12.0)
  • Removing spatie/flare-client-php (1.4.4)
  • Removing spatie/backtrace (1.5.3)
  • Removing sebastian/version (4.0.1)
  • Removing sebastian/type (4.0.0)
  • Removing sebastian/recursion-context (5.0.0)
  • Removing sebastian/object-reflector (3.0.0)
  • Removing sebastian/object-enumerator (5.0.0)
  • Removing sebastian/lines-of-code (2.0.2)
  • Removing sebastian/global-state (6.0.2)
  • Removing sebastian/exporter (5.1.2)
  • Removing sebastian/environment (6.0.1)
  • Removing sebastian/diff (5.1.1)
  • Removing sebastian/complexity (3.2.0)
  • Removing sebastian/comparator (5.0.1)
  • Removing sebastian/code-unit-reverse-lookup (3.0.0)
  • Removing sebastian/code-unit (2.0.0)
  • Removing sebastian/cli-parser (2.0.1)
  • Removing psy/psysh (v0.12.0)
  • Removing phpunit/phpunit (10.5.11)
  • Removing phpunit/php-timer (6.0.0)
  • Removing phpunit/php-text-template (3.0.1)
  • Removing phpunit/php-invoker (4.0.0)
  • Removing phpunit/php-file-iterator (4.1.0)
  • Removing phpunit/php-code-coverage (10.1.12)
  • Removing phpoption/phpoption (1.9.2)
  • Removing phar-io/version (3.2.1)
  • Removing phar-io/manifest (2.0.3)
  • Removing nunomaduro/collision (v7.10.0)
  • Removing nikic/php-parser (v5.0.1)
  • Removing nette/utils (v4.0.4)
  • Removing nette/schema (v1.3.0)
  • Removing myclabs/deep-copy (1.11.1)
  • Removing monolog/monolog (3.5.0)
  • Removing mockery/mockery (1.6.7)
  • Removing league/mime-type-detection (1.15.0)
  • Removing league/flysystem-local (3.23.1)
  • Removing league/flysystem (3.24.0)
  • Removing league/config (v1.2.0)
  • Removing league/commonmark (2.4.2)
  • Removing laravel/tinker (v2.9.0)
  • Removing laravel/sanctum (v3.3.3)
  • Removing laravel/sail (v1.28.1)
  • Removing laravel/pint (v1.14.0)
  • Removing laravel/framework (v10.46.0)
  • Removing hamcrest/hamcrest-php (v2.0.1)
  • Removing graham-campbell/result-type (v1.1.2)
  • Removing filp/whoops (2.15.4)
  • Removing fakerphp/faker (v1.23.1)
  • Removing egulias/email-validator (4.0.2)
  • Removing dragonmantank/cron-expression (v3.3.3)
  • Removing doctrine/lexer (3.0.1)
  • Removing dflydev/dot-access-data (v3.0.2)
  • Installing dasprid/enum (1.0.5): Extracting archive
  • Installing bacon/bacon-qr-code (2.0.8): Extracting archive
  • Installing illuminate/macroable (v10.46.0): Extracting archive
  • Installing illuminate/contracts (v10.46.0): Extracting archive
  • Installing illuminate/conditionable (v10.46.0): Extracting archive
  • Installing illuminate/collections (v10.46.0): Extracting archive
  • Installing illuminate/support (v10.46.0): Extracting archive
  • Installing illuminate/pipeline (v10.46.0): Extracting archive
  • Installing illuminate/bus (v10.46.0): Extracting archive
  • Installing illuminate/filesystem (v10.46.0): Extracting archive
  • Installing illuminate/container (v10.46.0): Extracting archive
  • Installing illuminate/database (v10.46.0): Extracting archive
  • Installing illuminate/events (v10.46.0): Extracting archive
  • Installing illuminate/view (v10.46.0): Extracting archive
  • Installing illuminate/console (v10.46.0): Extracting archive
  • Installing illuminate/queue (v10.46.0): Extracting archive
  • Installing illuminate/session (v10.46.0): Extracting archive
  • Installing mobiledetect/mobiledetectlib (4.8.06): Extracting archive
  • Installing paragonie/constant_time_encoding (v2.6.3): Extracting archive
  • Installing pragmarx/google2fa (v8.0.1): Extracting archive
  • Installing laravel/fortify (v1.20.1): Extracting archive
  • Installing laravel/jetstream (v4.3.0): Extracting archive
  • Downgrading psr/http-message (2.0 => 1.1): Extracting archive
  • Installing symfony/psr-http-message-bridge (v2.3.1): Extracting archive
  • Installing paragonie/random_compat (v9.99.100): Extracting archive
  • Installing phpseclib/phpseclib (3.0.37): Extracting archive
  • Installing nyholm/psr7 (1.8.1): Extracting archive
  • Installing league/uri-interfaces (2.3.0): Extracting archive
  • Installing league/uri (6.8.0): Extracting archive
  • Installing league/event (2.2.0): Extracting archive
  • Installing stella-maris/clock (0.1.7): Extracting archive
  • Installing lcobucci/clock (2.3.0): Extracting archive
  • Installing lcobucci/jwt (4.0.4): Extracting archive
  • Installing defuse/php-encryption (v2.4.0): Extracting archive
  • Installing league/oauth2-server (8.4.2): Extracting archive
  • Upgrading symfony/var-dumper (v6.4.4 => v7.0.4): Extracting archive
  • Upgrading symfony/error-handler (v6.4.4 => v7.0.4): Extracting archive
  • Installing illuminate/http (v10.46.0): Extracting archive
  • Installing illuminate/encryption (v10.46.0): Extracting archive
  • Installing illuminate/cookie (v10.46.0): Extracting archive
  • Installing illuminate/auth (v10.46.0): Extracting archive
  • Installing firebase/php-jwt (v6.10.0): Extracting archive
  • Installing laravel/passport (v11.8.4): Extracting archive
  • Installing league/oauth1-client (v1.10.1): Extracting archive
  • Installing laravel/socialite (v5.12.1): Extracting archive
  • Installing socialiteproviders/manager (v4.5.1): Extracting archive
  • Installing socialiteproviders/zoho (4.1.0): Extracting archive
    Generating autoload files
    45 packages you are using are looking for funding.
    Use the composer fund command to find out more!
    No security vulnerability advisories found.
    Using version ^5.12 for laravel/socialite`
Running composer update laravel/socialite
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Writing lock file

Based on above information it's clear that:

  1. laravel/socialite requirements already exists in composer.lock.
  2. laravel/framework requirements is not available in composer.lock.

So what exactly should I do? I'm new and don't know how to determine exactly how to fix it. Please help me, thank you

I have solved the problem