An open API service indexing awesome lists of open source software.

https://github.com/reisraff/phulp-filter

The server addon for phulp
https://github.com/reisraff/phulp-filter

filter filter-addon php phulp phulp-filter phulpplugin

Last synced: 7 months ago
JSON representation

The server addon for phulp

Awesome Lists containing this project

README

          

# phulp-filter

The filter addon for [PHULP](https://github.com/reisraff/phulp).

## Install

```bash
$ composer require reisraff/phulp-filter
```

## Usage

```php
task('filter', function ($phulp) {
$phulp->src(['src/'], '/html$/')
->pipe(new Filter(function (DistFile $distFile) {
// and then foo.html will be removed
return $distFile->getName() !== 'foo.html' ? true : false;
}));
});

```