PHP: Merge PDFs without composer?

Solution:

You don’t need composer to use PDFMerger.

Just clone the original repository from https://github.com/myokyawhtun/PDFMerger and move PDFMerge.php and the tcpdf directory into your project.

Then you can do the following:

include ‘PDFMerger.php’;

$pdf = new \PDFMerger\PDFMerger;