4

To test the Square SDK requires Composer. After I installed it (on Windows) and ran the command as mentioned in the installation instructions which is php composer.phar install (and realized that the PHP bit was the directory and not part of the command; made a GIT correction on Github for that) when I run the command from the PHP directory as composer.phar install Windows opens up the file association dialog. This is not a Windows question (beyond the context that the developer machine is running Windows).

How do I install the Square SDK with Composer if Windows is asking me what program to open composer.phar file with? I am not running Linux.

tristansokol
  • 4,054
  • 2
  • 17
  • 32
John
  • 1
  • 13
  • 98
  • 177

1 Answers1

2

I had to download, install and run Git Bash.

On Windows use the ls command in place of dir to list directory contents.

When opening a directory with spaces use cd 'my directory'.

To get Git Bash to work with Composer navigate to the directory with the composer.json file. I was impressed by the attention to detail when I ran the composer.phar install command in a child directory and GIT Bash looked in the parent directory.

Hope this saves someone time! You can find the original answer here to credit the user @Junior_swashluv.

John
  • 1
  • 13
  • 98
  • 177