Composer could not install tymon/jwt-auth
I found a (temporary) solution.
To get Laravel 5.8 compatibility, perform:
composer require tymon/jwt-auth ^1.0.0-rc.4.1
See discussion in this Github issue.
this command worked for me in Laravel 8:
composer require -w tymon/jwt-auth --ignore-platform-reqs
composer.json
{"name": "laravel/laravel","type": "project","description": "The Laravel Framework.","keywords": [ "framework", "laravel"],"license": "MIT","require": { "php": "^7.3|^8.0", "fideloper/proxy": "^4.4.1", "fruitcake/laravel-cors": "^2.0.3", "guzzlehttp/guzzle": "^7.0.1", "laravel/framework": "^8.0", "laravel/passport": "^10.0", "laravel/tinker": "^2.5|dev-develop", "paragonie/random_compat": "2.*" },"require-dev": { "fakerphp/faker": "^1.9.1", "mockery/mockery": "^1.4.2", "nunomaduro/collision": "^5.0", "phpunit/phpunit": "^9.3.3"},"config": { "optimize-autoloader": true, "preferred-install": "dist", "sort-packages": true},"extra": { "laravel": { "dont-discover": [] }},"autoload": { "psr-4": { "App\\": "app/", "Database\\Factories\\": "database/factories/", "Database\\Seeders\\": "database/seeders/" }},"autoload-dev": { "psr-4": { "Tests\\": "tests/" }},"minimum-stability": "dev","prefer-stable": true,"scripts": { "post-autoload-dump": [ "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", "@php artisan package:discover --ansi" ], "post-root-package-install": [ "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" ], "post-create-project-cmd": [ "@php artisan key:generate --ansi" ]}}
To install this package you will need:
Laravel 4 or 5 (see compatibility table)PHP 5.4 +
Install via composer - edit your composer.json to require the package.
"require": { "tymon/jwt-auth": "0.5.*" }
Then run
composer update
in your terminal to pull it in.
The installation is there https://github.com/tymondesigns/jwt-auth/wiki/InstallationThere is nothing said about dev-master
, try with 0.5.*