junty / junty-todir
Send globs to another paths.
v0.1.2
2016-03-08 22:24 UTC
Requires
- php: >=7.0
- guzzlehttp/psr7: ^1.2
- junty/junty-plugin: ^0.1
Requires (Dev)
- phpunit/phpunit: ^5.2
This package is not auto-updated.
Last update: 2025-01-04 20:47:17 UTC
README
Send globs to another paths.
Installation
$ composer require --dev junty/junty-todir
Usage
On your juntyfile.php
:
require 'vendor/autoload.php'; use Junty\Runner; use Junty\ToDir\ToDirPlugin; $junty = new Runner(); $junty->task('catch_txt', function () { $this->src('./*.txt') ->forStreams(new ToDirPlugin('txt_files')); // Send all txt files to txt_files });
Nativaly!
This plugin comes nativaly with Junty, so you don't need to install.
// ... ->forStreams($this->toDir('directory_name'))