I use my own PHP installation as a server, but I start this server using the plugin 'gulp -connect-php'. I haven't used it with XAMPP / MAMP yet, but probably you just need to reinstall "bin" and "ini" to install XAMPP / MAMP PHP. But I have no solution how you can connect Gulp to your database.
'gulp -connect-php':
https://www.npmjs.com/package/gulp-connect-php
var gulp = require('gulp'), livereload = require('gulp-livereload'), connectPHP = require('gulp-connect-php'); gulp.task('connect', function() { connectPHP.server({ hostname: '0.0.0.0', bin: 'C:/php/php.exe', ini: 'C:/php/php.ini', port: 8000, base: 'dev', livereload: true }); });
Gulp Only Connect can start the Node server (if I'm not mistaken).
Port 35729 is for javascript, which you need to place at the bottom of your PHP HTML files, where you put your other scripts. Grunt also uses the exact same code:
<script src="//localhost:35729/livereload.js"></script>
Port 9000 is probably the specific port for the Gulp Connect server.
Lanti source share