1. Go to this page and download the library: Download kibi/lanyardpendant 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/ */
kibi / lanyardpendant example snippets
$pdfName = 'Namensschild.pdf';
$pdf = LanyardPendant($pdfName);
$pdf->SetCreator("Creator name");
$pdf->SetAuthor("Author name");
//Nur zu Testzwecken
$pdf->setPDFBackgroundDocumentPath(dirname(__FILE__).'/LanyardPendantBackground-sample.pdf');
$pdf->AddPage();
$pdf->drawHolePunch(); //Nur zu Testzwecken
$pdf->writeName('Max');
$pdf->writeName('Mustermann');
//$pdf->writeName('Mustermann von Musterhausenstein'); //Automatische Anpassung der Schriftgröße an Textlänge (-> Immer nur eine Zeile)
$pdf->writePersonalCompany('Meine Musterfirma');
$pdf->writePersonalPosition('Event Manager');
$pdf->writePersonalTextField('<b>Sprich mich an, wenn...</b><br>du dich für Co-Workingspaces, Events, Hackathons & Networking interessierst');
$pdf->writePersonalQRCode('https://example.com/link/to/my/profile');
//PDF DIREKT AUSGEBEN
$pdf->Output($pdfName.'.pdf', 'I');