一個PHP學院。學習PHP革命性的全新方式,把你的想象力,生活在一個開放的學習生態系統php
老窩地址git
1.安裝php-school curl -O https://php-school.github.io/workshop-manager/workshop-manager.phar 2.移動過去 mv workshop-manager.phar /usr/local/bin/workshop-manager 3.給個執行權限 chmod +x /usr/local/bin/workshop-manager
這個時候你覺得搞好了?其實並無,驗證一下裝好沒github
pushaowei@pushaoweideMacBook-Pro:/Users/pushaowei/job/_local_test $ workshop-manager verify
而後貌似就是說環境變量有問題,那就把它那句綠色的話 複製一下vim
echo 'export PATH="$PATH:/Users/pushaowei/.php-school/bin"' >> ~/.bashrc && source ~/.bashrc
而後這下就驗證成功了,而後我們裝幾本書進去學學,好比這個新手必備,介紹PHP的核心特性:i / o,http,數組,異常等。數組
pushaowei@pushaoweideMacBook-Pro:/Users/pushaowei/job/_local_test $ workshop-manager install learnyouphp
固然還有其餘的能夠經過bash
pushaowei@pushaoweideMacBook-Pro:/Users/pushaowei/job/_local_test $ workshop-manager search
剛剛安裝了lernyouphp
,咱們來玩一下,直接curl
pushaowei@pushaoweideMacBook-Pro:/Users/pushaowei/job/_local_test $ learnyouphp
這裏我選了一個hello world
做爲測試ide
反正就是讓你建個 program.php
文件學習
vim program.php <?php echo 'hello world';
// 執行開始驗證對錯 learnyouphp verify program.php