Skip to content

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Folder To File

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

About

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

Topics

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

1 watching

Forks

Contributors

Languages