devidw/folder-to-file

Merge all source files inside a folder recursively into a single PDF file.

Fund package maintenance!
devidw

dev-master 2022-01-24 22:56 UTC

This package is auto-updated.

Last update: 2024-10-25 05:41:01 UTC


README

Merge all source files inside a folder recursively into a single PDF file.

Installation

composer require devidw/folder-to-file

Usage

<?php

require_once dirname(__DIR__) . '/vendor/autoload.php';

use Devidw\FolderToFile\FolderToFile;

$merger = new FolderToFile(
    inputDir: __DIR__ . '/test',
    outputFile: __DIR__ . '/Source-Code.adoc',
    allowedExtensions: [
        'html',
        'php',
    ]
);

Testing

php ./tests/test.php