I'm starting to install the laravel/socialite. I have the Laravel 5.6 installed, so should I use composer require laravel/socialite "^3.2.0" based on the documentation from https://laravel.com/docs/5.6/socialite or can I use composer require laravel/socialite based on the https://laravel.com/docs/5.7/socialite.
If you use Laravel 5.6 then I think you should install
composer require laravel/socialite "^3.2.0"
If you use composer require laravel/socialite you can get an error, and this command trying to install version 4.0 which is not supported in Laravel 5.6
Related
installing maatwebsite/excel with Laravel 9 but getting phpoffice and PHP version issues. I am using PHP 8.1, I downgrade to PHP 8.0 but still doesn't work. Even I enable the gd extention from the php.ini file.
I am installing maatwebsite using below command which is offered by official website
composer require maatwebsite/excel
I found the problem it's happening due to cache problem, we need to update the cache version.
Let me explain it with all steps
Go to the php.ini file and remove ;
before
;extension=gd
after
extension=gd
execute the command to change your cache
composer require psr/simple-cache ^2.0
if the above version is not work for you try it with 1.0 version (optional)
composer require psr/simple-cache ^1.0
Then install maatwebsiteexcel
composer require maatwebsite/excel
It will work like a charm
This will help you
composer require psr/simple-cache:^1.0 maatwebsite/excel
Some time composer require fails on Laravel 9 because of the simple-cache dependency, you will have to specify the psr/simple-cache version as ^1.0 in your composer.json to satisfy the PhpSpreadsheet dependency.
find solution here https://docs.laravel-excel.com/3.1/getting-started/installation.html
trying to install new laravel app I got version error :
$ laravel new hostels3
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 mockery/mockery 1.4.1 -> satisfiable by mockery/mockery[1.4.1].
- mockery/mockery 1.4.1 requires php ^7.3 || ^8.0 -> your PHP version (7.2.24) does not satisfy that requirement.
I do not want to move to PHP 7.3 now and if there isa a way to install lower version of laravel
to satisfy my PHP version 7.2.24 ? If yes, how ?
Thanks!
Laravel installer needs PHP 7.3, You may use composer instead:
composer create-project --prefer-dist laravel/laravel hostels3
Note 1: Laravel framework v7.x needs PHP version 7.2.5 or greater. You have 7.2.24 so you can install Laravel 7.x (the latest as of writing).
Note 2: To install older version of Laravel, specify the version as the last argument:
composer create-project --prefer-dist laravel/laravel hostels3 "6.*"
that way you can choose the version to install
composer create-project laravel/laravel miproyecto "6.*"
using composer you can simply install, Below I show laravel 5.4 install using composer
composer create-project --prefer-dist laravel/laravel blog "5.4.*"
I have upgraded the laravel from 5.5 to 5.6 and try to install laravel/socialite but there is error.
Composer.json
I think the autoloader is jammed up and needs to be cleared.
Try running
composer dump-autoload
php artisan clear-compiled
composer require laravel/socialite
Looks like you need to install the version ^3.2.0 for the package if you are using laravel 5.6, not the ^3.0 or ^4.0 so, you need to be explicit about the version:
composer require laravel/socialite "^3.2.0"
Docs: https://laravel.com/docs/5.6/socialite#installation
I am having error in installing laravel/socialite in my laravel 5.2 project.
I tried this -- composer laravel/socialite but gets an error like this.
Please help me.
You should write this
composer require laravel/socialite
this is the command. Use this
To install a package to laravel using composer you need to add require method after composer
Try doing like this
composer require laravel/socialite
I am using PHP 5.4 and I have Laravel 5.1 for my development. When I try to install guzzlehttp through composer for my Laravel I get error that your PHP 5.4 doesn't specify the requirements.
i tried to install it by lowering the version like
composer require "guzzlehttp/guzzle": "5.0"
but still with no luck.
try,
composer require "guzzlehttp/guzzle:~5.3"