我想用一個 Open Source 嘅 accounting software,選咗一隻叫 Akaunting 嘅東西,佢係 PHP,不過用咗隻 Laravel framework,仲加咗些少 Vue JS。安裝 Akaunting 我已經用 Docker 搞掂咗,依家係想改下嘢,進一步就係寫啲 plugins(佢叫 Apps),於是乎就要起隻 development environment 出嚟,所以就有今篇文。
有片睇:
簡單嘅步驟:
- Clone Akaunting from GitHhub:git clone akaunting-git-link
Start VSCode on it
- VSCode install PHP Debug extension
- Debug installation instruction
- Install XAMPP
Start Apache & MySQL
- Browse localhost
make sure apache is running
- Modify Apache https.conf
point DocumentRoot to your project folder
- Back to your browser
copy the PHP Info
paste it into step 3
click the “Analyse my phpinfo() output” button
download the generated DLL to your PHP etx folder
- Modify your php.ini file with
[XDebug]
xdebug.remote_enable=1
xdebug.remote_autostart=1
zned_extension = “C:\xampp\php\etx\php_xdebug-…dll”
- Modify VSCode settings
“php.validate.executablePath”: “C\\xampp\\php\\php.exe”
- select VSCode DEBUG nav tab
add PHP launch.json
- start debugging with VSCode DEBUG “Listen for XDebug”
其他關聯步驟: