Knowledgebase
emscom > emscom Help Desk > Knowledgebase

Search help:


Install PHP composer

Solution

 

See NGinX, PHP, Netbeans, XDebug installation articles

 

1. Create a folder c:\dev\php\composer

2. Check the PATH environment variable include c:\dev\php

3.A functioning php.ini is required. 

  • Either create/copy php.ini to c:\dev\php
  • Or pass the path to php.exe with the argument php --php-ini c:\dev\php.ini

4. From an elevated command prompt

  cd \dev\php\composer\

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; } echo PHP_EOL;"

php composer-setup.php

5. Configure Netbeans to use composer,

Tools>Options>PHP>Frameworks and Tools>Composer

  • Composer: c:\dev\php\composer\composer.phar

6. Right click the project in the Project navigation pane, select Composer>Init

7. Dependencies can be added to the projct with Composer>Add Dependency

 

<in progress>

 

 
Was this article helpful? yes / no
Related articles Install Netbeans for PHP development on Windows
Install NGinX and PHP on Windows
Article details
Article ID: 183
Category: Dev
Date added: 21-06-2022 09:13:09
Views: 17804
Rating (Votes): Article not rated yet (0)

 
« Go back

 
Powered by Help Desk Software HESK, in partnership with SysAid Technologies