在phpstrom 中啓用composer 步驟:php
1.打開編輯器,選擇 文件(file)->設置(setting),找到 Command Line Tool Support ,點擊 + 號進行添加composer
2.選擇php 運行文件以及composer.phar文件路徑,肯定編輯器
3.應用,OK命令行
Terminal命令行終端:
1.Windows & Linux:ALT + F12或者利用Action快捷鍵:Ctrl + Shift + A,而後輸入terminal,回車。terminal
Mac OS:符號+ Shift + A開啓Action快捷面板查找terminal。io
執行一個PHP文件並輸出結果:
php安裝路徑 要執行的文件 例:E:/phpStudy/PHPTutorial/php/php-5.6.27-nts/php index.phpfile