
# gulp-laravel-validator

> Generate PHP validations from short and concise descriptions of the input format.

**NOTE:** This project is not related to the Laravel official Validator class. It's
a stricter and statically generated alternative to it.

## Installation

Install via [npm](https://npmjs.org/package/gulp-laravel-validator):

```
npm install gulp-laravel-validator --save-dev
```


## Example

```js
var gulp = require('gulp'),
    laravelValidator = require('gulp-laravel-validator'),
    rename = require('gulp-rename');

gulp.task('default', function() {
  return gulp.src('app/validators/**/*.val')
    .pipe(laravelValidator())
    .pipe(rename({extname: '.php'}))
    .pipe(gulp.dest('app/lib/Validators'));
});
```

For this example to work you'll need to install [gulp-rename](https://github.com/hparra/gulp-rename).



# gulp-laravel-validator

> Generate PHP validations from short and concise descriptions of the input format.

**NOTE:** This project is not related to the Laravel official Validator class. It's
a stricter and statically generated alternative to it.

To read more about the format of the validator files see the [laravel-validator](https://github.com/ernestoalejo/laravel-validator) project directly.


## Installation

Install via [npm](https://npmjs.org/package/gulp-laravel-validator):

```
npm install gulp-laravel-validator --save-dev
```


## Example

```js
var gulp = require('gulp'),
    laravelValidator = require('gulp-laravel-validator'),
    rename = require('gulp-rename');

gulp.task('default', function() {
  return gulp.src('app/validators/**/*.val')
    .pipe(laravelValidator())
    .pipe(rename({extname: '.php'}))
    .pipe(gulp.dest('app/lib/Validators'));
});
```

For this example to work you'll need to install [gulp-rename](https://github.com/hparra/gulp-rename).


Add a reference to the original library in the docs.
Add a reference to the original library in the docs.
