PHP code example of opensistemas-hub / cert-generator
1. Go to this page and download the library: Download opensistemas-hub/cert-generator 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/ */
opensistemas-hub / cert-generator example snippets
s = [
'full_name' => "Antonio Cortés",
'course_name' => "Mi nombre de curso",
];
$settings = json_decode( __DIR__ . '/template1.json' , true );
$template = \Opensistemas\CertGenerator\Template::create( $settings, __DIR__ . '/test.pdf' ) ;
$template->generate( 'my.pdf', $vars );