uh hello guys uh welcome to this video
So in this video I will show you that
how to fix this error message if you
type composer inside your terminal And
if you are getting this error message
that composer is not recognized as an
internal or external command If you're
seeing this error message then in this
video I'll show you how to fix this Uh
I'm assuming that you have installed
composer Composer is nothing but it's a
dependency manager for your PHP
applications similar to node So if you
haven't installed it then definitely go
to this website click on download and
download the installer file which is
composer
setup.exe I've already installed it but
I can't access it in the terminal So for
for uh fixing this you need to go to the
location where composer is installed So
by default it's stored in the C drive Uh
there is a folder called as pro program
data By default it's hidden So it will
appear like this program data just
outside just below the program files
folder Just open this folder and right
here you will find out a folder called
as composer setup So this is your folder
right here composer setup Just open this
and just go to the bin
directory and these are your composer
files right here Bad file right If you
try to open command line here type the
same command
composer So it will give you this uh new
error which is PHP is not recognized as
an internal or external command Just
make sure that PHP is also stored inside
the path variable as well because
composer is dependent upon PHP So that's
why
So what you need to do first of all
right click copy this entire
path Just open environment
variable and uh go to system
variable Just select
path Add this entry paste this entire
path Okay Okay Okay And also you need to
add the path for the PHP So for PHP I'm
using exam control panel I'm assuming
that is so exam comes with the Apache
server MySQL
database So Examp is a very po
uh popular software for
PHP for downloading PHP as a local
software So if you are using exam then
perfectly okay So wherever you install
PHP by default it's stored inside the C
drive in the case of exam So there is a
folder PHP folder if you
see and
just also add this folder as well Right
click uh copy this location also add
this folder Again repeat the same
process Open environment
variable and go to system
variable select
path and paste this location So you will
see you need to paste two paths here
First of all for the composer second for
the PHP And just now okay Okay Just
restart the terminal and just type the
same command here Composer So now you
will see the composer command will
perfectly work So in this easy way you
can fix this error message also the PHP
command will also work So in this easy
way guys you can fix this error message
Just follow the step-by-step process and
also check out my website
freemediatools.com
uh which contains thousands of tools
regarding audio video and image And I
will be seeing you in the