devidw/folder-to-file

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

Maintainers

Package info

github.com/devidw/FolderToFile

pkg:composer/devidw/folder-to-file

Fund package maintenance!

devidw

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

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

This package is auto-updated.

Last update: 2026-02-25 08:28:18 UTC


README

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

ℹ️ Requires a asciidoctor-pdf installation on the current PATH to be able to generate .pdf files

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