junty / junty-todir
Send globs to another paths.
Installs: 93
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/junty/junty-todir
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-09-28 00:34:47 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'))