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
- Host: GitHub
- URL: https://github.com/reisraff/phulp-filter
- Owner: reisraff
- License: mit
- Created: 2016-10-27T19:18:19.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-01-27T19:09:29.000Z (about 5 years ago)
- Last Synced: 2025-02-19T15:06:35.242Z (about 1 year ago)
- Topics: filter, filter-addon, php, phulp, phulp-filter, phulpplugin
- Language: PHP
- Homepage: https://github.com/reisraff/phulp
- Size: 12.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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;
}));
});
```