junty / junty
Streams handling with tasks for PHP 7.
v0.3.0
2016-04-07 21:49 UTC
Requires
- php: >=7.0
- doctrine/collections: ^1.3
- guzzlehttp/psr7: ^1.2
- junty/junty-plugin: ^0.1
- junty/junty-taskrunner: ^0.2
- junty/junty-todir: ^0.1
Requires (Dev)
- phpunit/phpunit: ^5.2
This package is not auto-updated.
Last update: 2024-04-27 16:47:42 UTC
README
Streams handling with tasks for PHP 7. Inspired by
Documentation
Example
<?php require 'vendor/autoload.php'; use Junty\Runner\JuntyRunner; use Gabrieljmj\JuntyMinify\{Css as CssMinifier, Js as JsMinifier}; // Package: gabrieljmj/junty-minify $junty = new JuntyRunner(); $junty->group('minify', function () { $junty->task('css', function () { $this->src('./public/css/*.css') ->forStreams(new CssMinifier()) ->forStreams($this->toDir('./public/dist/css')); }); $junty->task('js', function () { $this->src('./public/js/*.js') ->forStreams(new JsMinifier()) ->forStreams($this->toDir('./public/dist/js')); }); }); return $junty;
Creator
@gabrieljmj |
License
Junty is under MIT License.