PHP code example of nsrosenqvist / phulp-concat

1. Go to this page and download the library: Download nsrosenqvist/phulp-concat 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/ */

    

nsrosenqvist / phulp-concat example snippets




use NSRosenqvist\Phulp\Concat;

$phulp->task('scripts', function ($phulp) {
    $phulp->src(['assets/scripts/'], '/js$/')
        ->pipe(new Concat('theme.js', true))
        ->pipe($phulp->dest('dist/scripts/'));
});