PHP code example of junty / junty-todir
1. Go to this page and download the library: Download junty/junty-todir library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
junty / junty-todir example snippets
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
});
// ...
->forStreams($this->toDir('directory_name'))
juntyfile.php