I ended up using gulp -connect-php with http-proxy. As a result, my php serve task looked like this:
gulp.task('php-serve', ['styles', 'fonts'], function () { connect.server({ port: 9001, base: 'app', open: false }); var proxy = httpProxy.createProxyServer({}); browserSync({ notify: false, port : 9000, server: { baseDir : ['.tmp', 'app'], routes : { '/bower_components': 'bower_components' }, middleware: function (req, res, next) { var url = req.url; if (!url.match(/^\/(styles|fonts|bower_components)\//)) { proxy.web(req, res, { target: '{ip address taken out}:9001' }); } else { next(); } } } }); // watch for changes gulp.watch([ 'app/*.html', 'app/*.php', 'app/scripts/**/*.js', 'app/images/**/*', '.tmp/fonts/**/*' ]).on('change', reload); gulp.watch('app/styles/**/*.scss', ['styles']); gulp.watch('app/fonts/**/*', ['fonts']); gulp.watch('bower.json', ['wiredep', 'fonts']); });
source share