junty / junty-todir
将glob发送到其他路径。
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: 2024-09-14 18:58:38 UTC
README
将glob发送到其他路径。
安装
$ composer require --dev junty/junty-todir
使用
在您的 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 });
原生态!
此插件与Junty原生态提供,因此您无需安装。
// ... ->forStreams($this->toDir('directory_name'))