A simple facebook generating class based on FPDF.
Via Composer
$ composer require xu/facebook
// create a facebook instance
$pdf = new Facebook();
// set the default font
$pdf->SetFont('Times', '', 12);
// add users
$pdf->addUsers([
User::fromArray([
'image' => __DIR__ . "/blue.png",
'name' => "lixu",
'desc' => "Hi, \nI am lixu.",
])
]);
// render it
$pdf->render();
// output to browser
$pdf->Output();
Please see example for details.
$ phpunit
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.