1. Go to this page and download the library: Download vaneves/tosko 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/ */
vaneves / tosko example snippets
use Vaneves\Tosko\Pipeline;
use Vaneves\Tosko\Src;
use Vaneves\Tosko\Dist;
use Vaneves\Tosko\Concat;
$js = (new Pipeline)
->pipe(new Concat('all.js'))
->pipe(new Dist('assets/'));
$js->process(new Src([
'path/to/lib/jquery.js',
'path/to/lib/bootstrap.js',
'path/to/my/*/*.js',
'my-script.js',
]));
$css = (new Pipeline)
->pipe(new Concat('all.css'))
->pipe(new Dist('assets/'));
$css->process(new Src([
'path/to/lib/bootstrap.css',
'my-style.css',
]));
// To just copy files, don't use Concat
$font = (new Pipeline)
->pipe(new Dist('assets/fonts'));
$font->process(new Src([
'path/to/fonts/*',
]));
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.