PHP code example of luanoldcode / forgepdf

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

    

luanoldcode / forgepdf example snippets


use ForgePDF\ForgePDF;

class CustomPdf extends ForgePDF
{
    public function __construct(
        $orientation = 'P',
        $unit = 'mm',
        $size = 'letter'
    ) {
        parent::__construct( $orientation, $unit, $size );
        // ...
    }
}


"ForgePDF\ForgePDF": "^1.00"
sh
php composer.phar update
 php
$pdf = new ForgePDF();