@@ -93,7 +93,7 @@ Ou crie um arquivo 'composer.json' e adicione o trecho:
93
93
``` json
94
94
{
95
95
"require" : {
96
- "geekcom/phpjasper" : " 1.* "
96
+ "geekcom/phpjasper" : " ^2.1 "
97
97
}
98
98
}
99
99
```
@@ -123,11 +123,11 @@ Primeiro precisamos compilar o arquivo com a extensão `.JRXML` em um arquivo bi
123
123
124
124
require __DIR__ . '/vendor/autoload.php';
125
125
126
- use JasperPHP\JasperPHP ;
126
+ use PHPJasper\PHPJasper ;
127
127
128
128
$input = __DIR__ . '/vendor/geekcom/phpjasper/examples/hello_world.jrxml';
129
129
130
- $jasper = new JasperPHP ;
130
+ $jasper = new PHPJasper ;
131
131
$jasper->compile($input)->execute();
132
132
```
133
133
@@ -140,15 +140,15 @@ Agora vamos processar o nosso relatório que foi compilado acima:
140
140
``` php
141
141
require __DIR__ . '/vendor/autoload.php';
142
142
143
- use JasperPHP\JasperPHP ;
143
+ use PHPJasper\PHPJasper ;
144
144
145
145
$input = __DIR__ . '/vendor/geekcom/phpjasper/examples/hello_world.jasper';
146
146
$output = __DIR__ . '/vendor/geekcom/phpjasper/examples';
147
147
$options = [
148
148
'format' => ['pdf', 'rtf']
149
149
];
150
150
151
- $jasper = new JasperPHP ;
151
+ $jasper = new PHPJasper ;
152
152
153
153
$jasper->process(
154
154
$input,
@@ -167,11 +167,11 @@ Como consultar o arquivo jrxml para examinar os parâmetros disponíveis no rela
167
167
168
168
require __DIR__ . '/vendor/autoload.php';
169
169
170
- use JasperPHP\JasperPHP ;
170
+ use PHPJasper\PHPJasper ;
171
171
172
172
$input = __DIR__ . '/vendor/geekcom/phpjasper/examples/hello_world_params.jrxml';
173
173
174
- $jasper = new JasperPHP ;
174
+ $jasper = new PHPJasper ;
175
175
$output = $jasper->listParameters($input)->execute();
176
176
177
177
foreach($output as $parameter_description)
@@ -185,7 +185,7 @@ Adicione os parâmetros específicos para conexão com seu banco de dados: MYSQL
185
185
``` php
186
186
require __DIR__ . '/vendor/autoload.php';
187
187
188
- use JasperPHP\JasperPHP ;
188
+ use PHPJasper\PHPJasper ;
189
189
190
190
$input = '/your_input_path/your_report.jasper';
191
191
$output = '/your_output_path';
@@ -203,7 +203,7 @@ $options = [
203
203
]
204
204
];
205
205
206
- $jasper = new JasperPHP ;
206
+ $jasper = new PHPJasper ;
207
207
208
208
$jasper->process(
209
209
$input,
@@ -221,7 +221,7 @@ Para a lista completa de idiomas suportados veja o link [Supported Locales](http
221
221
``` php
222
222
require __DIR__ . '/vendor/autoload.php';
223
223
224
- use JasperPHP\JasperPHP ;
224
+ use PHPJasper\PHPJasper ;
225
225
226
226
$input = '/your_input_path/your_report.jasper or .jrxml';
227
227
$output = '/your_output_path';
@@ -243,7 +243,7 @@ $options = [
243
243
]
244
244
];
245
245
246
- $jasper = new JasperPHP ;
246
+ $jasper = new PHPJasper ;
247
247
248
248
$jasper->process(
249
249
$input,
@@ -257,7 +257,7 @@ $jasper->process(
257
257
``` php
258
258
require __DIR__ . '/vendor/autoload.php';
259
259
260
- use JasperPHP\JasperPHP ;
260
+ use PHPJasper\PHPJasper ;
261
261
262
262
$input = '/your_input_path/your_report.jasper';
263
263
$output = '/your_output_path';
@@ -273,7 +273,7 @@ $options = [
273
273
]
274
274
];
275
275
276
- $jasper = new JasperPHP ;
276
+ $jasper = new PHPJasper ;
277
277
278
278
$jasper->process(
279
279
$input,
@@ -287,7 +287,7 @@ $jasper->process(
287
287
``` php
288
288
require __DIR__ . '/vendor/autoload.php';
289
289
290
- use JasperPHP\JasperPHP ;
290
+ use PHPJasper\PHPJasper ;
291
291
292
292
$input = '/your_input_path/your_report.jasper';
293
293
$output = '/your_output_path';
@@ -304,7 +304,7 @@ $options = [
304
304
]
305
305
];
306
306
307
- $jasper = new JasperPHP ;
307
+ $jasper = new PHPJasper ;
308
308
309
309
$jasper->process(
310
310
$input,
0 commit comments