I'm trying to use PHPJasper but it does not find the class. I took an example from the github page even as a test. The code is simple:
<?php
require __DIR__ . '/vendor/autoload.php';
use PHPJasper\PHPJasper;
$input = __DIR__ . '/vendor/geekcom/phpjasper/examples/hello_world.jrxml';
$jasper = new PHPJasper;
$jasper->compile($input)->execute();
But it is giving error in the line of $ jasper = new PHPJasper;
Fatal error: Class 'PHPJasper\PHPJasper' not found in C:\xampp\htdocs\testepdf\teste2.php on line 8
To install the composer I did normal, I created a composer.json file with the following content:
{
"require": {
"geekcom/phpjasper": "1.16"
}
}
Followed by the command:
composer install
Library phpjasper github: link
Does anyone know why it does not find PHPJasper ???