phplint

Inspired by and largely copied from jgable/grunt-phplint but in a build-tool agnostic manner.
Install
$ npm install --save-dev phplint
Usage
var phplint = require('phplint');
var lint = phplint('src/app/**/*.php');
lint.then(function (msg) {
console.log(msg);
});
lint.fail(function (err) {
console.error(err);
});
Gulp
var gulp = require('gulp');
var phplint = require('phplint');
gulp.task('phplint', function () {
return phplint('src/app/**/*.php');
});
gulp.task('default', ['phplint']);
Options
limit
Sets the process spawn limit, defaults to 10.
var phplint = require('phplint');
phplint('src/*.php', {
limit: 2
});
License
MIT © Wayne Ashley Berry