开发环境:Windows10,XAMPP(x64-7.4.33),Netbeans。
官网下载XAMPP安装包,我下载的版本 x64-7.4.33。安装包中相关软件版本(官网上可查询):
修改配置文件(相关配置文件可在控制面板上快速打开):
mysqladmin --user=root password "xxxxx"
$cfg['Servers'][$i]['password']
打开 http://localhost:8081 ,点击页面上方菜单“phpMyAdmin”可以进行数据库相关操作。
官网下载 Apache NetBeans 安装包。配置xdebug,我的xampp的安装位置是D:\xampp 。
[XDebug]
zend_extension = "D:\xampp\php\ext\php_xdebug.dll"
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "D:\xampp\tmp"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 1
xdebug.remote_port=9000
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
xdebug.trace_output_dir = "D:\xampp\tmp"
如果使用 chrome 调试可以安装 NetBeans 插件。
参考网站:https://www.thecodedeveloper.com/install-composer-windows-xampp/
extension=php_openssl.dll
extension=php_curl.dll
测试的时候发现 extension=php_openssl.dll 默认没有注释。增加了extension=php_curl.dll 会提示我已经加载了curl扩展,所以最后的结果是我没有修改php.ini文件。
下载 Composer,windows install。安装过程是配置php.exe位置,并可以添加环境变量,方便使用Composer。
选中“Developer mode”可以指定Composer安装的位置。
选中“Add this PHP to your path? It will replace the existing entry.” 会添加 PHP运行路径到环境变量中。
打开 XAMPP shell运行 composer -v 能看到版本号就安装成功了。
安装包分享到百度网盘链接:https://pan.baidu.com/s/1HnOk-CXMKI23bpHONpgKMg?pwd=ntis