Install / Update Composer on MAC / Install Composer for PHP 8 / Laravel 9 | Install Brew on MAC

preview_player
Показать описание
In this video, we are going to install Composer on MAC which will help to install Laravel 9 with PHP 8 and other latest PHP frameworks.

Steps to install Composer for PHP 8 and Laravel 9 on Mac OS -

(Note: Install Xampp or some other Apache Server first if installing composer for Laravel or some other PHP Framework)

1) Install Brew first to Install Composer:-
We need to install Brew first to install Composer.
1.2 Copy command that will come on screen and run in terminal
1.3 Command + Space to find the terminal in MAC (in case you are not able to find it)
1.4 Paste and Run command
1.5 Brew get installed

2) Install Composer:-
Once brew gets installed, we are ready to install Composer with help of brew.
Run below command in terminal to install Composer:-
brew install composer

3) Update Composer (if required) :-
If the composer is already installed, we can also update it if required by running the below command in the terminal:-
composer self-update
composer self-update --2
composer update

4) Check Composer Version
We can check the composer version by running the below command in the terminal:-
composer --version

Now we are ready to install Laravel 9 or other latest PHP framework with Composer that can support even PHP 8

If in case, the above error comes then we can resolve it by running the below commands if we have updated to PHP 8.1 version

You can check your updated PHP version by locating /usr/local/opt/ folder in your MAC. Check in the video how we locate this folder to check the PHP version

( Another way to Press Command-Shift-G to open the dialogue box. Enter what you want to search for, e.g.,/usr or /usr/ )

►Install Xampp to PHP 8 in Mac -

Popular Stack Developers Series that can help you:-

Follow Stack Developers on Social Media to get updates and resolve your queries

#composer #php8 #laravel9
Рекомендации по теме
Комментарии
Автор

Warning: No available formula with the name "composer".

shabankhan
visit shbcf.ru