lavela / phpjasper

Create Reports in PHP with JasperReports
MIT License
66 stars 20 forks source link

what i'm doing wrong? #40

Closed astrO1 closed 3 years ago

astrO1 commented 5 years ago
$options = [
        'format' => ['pdf'],
        'locale' => 'en',
        'params' => [],
        'db_connection' => [
          'driver'   => env('DB_CONNECTION'),
          'username' => env('DB_USERNAME'),
          'password' => env('DB_PASSWORD'),
          'host'     => env('DB_HOST'),
          'database' => env('DB_DATABASE'),
          'port'     => env('DB_PORT'),        
          'jdbc_dir' => base_path() . env('JDBC_DIR', '/vendor/lavela/phpjasper/bin/jasperstarter/jdbc'),
        ],
      ];

      $jasper = new PHPJasper;
      $jasper->process(
              $input,
              $output,
              $options
      )->execute();

When i use this i get this exception : usage: jasperstarter process [-h] -f [ ...] [-o ] [-w] what is this?