@@ -93,7 +93,7 @@ Ou crie um arquivo 'composer.json' e adicione o trecho:
9393``` json
9494{
9595 "require" : {
96- "geekcom/phpjasper" : " 1.* "
96+ "geekcom/phpjasper" : " ^2.1 "
9797 }
9898}
9999```
@@ -123,11 +123,11 @@ Primeiro precisamos compilar o arquivo com a extensão `.JRXML` em um arquivo bi
123123
124124require __DIR__ . '/vendor/autoload.php';
125125
126- use JasperPHP\JasperPHP ;
126+ use PHPJasper\PHPJasper ;
127127
128128$input = __DIR__ . '/vendor/geekcom/phpjasper/examples/hello_world.jrxml';
129129
130- $jasper = new JasperPHP ;
130+ $jasper = new PHPJasper ;
131131$jasper->compile($input)->execute();
132132```
133133
@@ -140,15 +140,15 @@ Agora vamos processar o nosso relatório que foi compilado acima:
140140``` php
141141require __DIR__ . '/vendor/autoload.php';
142142
143- use JasperPHP\JasperPHP ;
143+ use PHPJasper\PHPJasper ;
144144
145145$input = __DIR__ . '/vendor/geekcom/phpjasper/examples/hello_world.jasper';
146146$output = __DIR__ . '/vendor/geekcom/phpjasper/examples';
147147$options = [
148148 'format' => ['pdf', 'rtf']
149149];
150150
151- $jasper = new JasperPHP ;
151+ $jasper = new PHPJasper ;
152152
153153$jasper->process(
154154 $input,
@@ -167,11 +167,11 @@ Como consultar o arquivo jrxml para examinar os parâmetros disponíveis no rela
167167
168168require __DIR__ . '/vendor/autoload.php';
169169
170- use JasperPHP\JasperPHP ;
170+ use PHPJasper\PHPJasper ;
171171
172172$input = __DIR__ . '/vendor/geekcom/phpjasper/examples/hello_world_params.jrxml';
173173
174- $jasper = new JasperPHP ;
174+ $jasper = new PHPJasper ;
175175$output = $jasper->listParameters($input)->execute();
176176
177177foreach($output as $parameter_description)
@@ -185,7 +185,7 @@ Adicione os parâmetros específicos para conexão com seu banco de dados: MYSQL
185185``` php
186186require __DIR__ . '/vendor/autoload.php';
187187
188- use JasperPHP\JasperPHP ;
188+ use PHPJasper\PHPJasper ;
189189
190190$input = '/your_input_path/your_report.jasper';
191191$output = '/your_output_path';
@@ -203,7 +203,7 @@ $options = [
203203 ]
204204];
205205
206- $jasper = new JasperPHP ;
206+ $jasper = new PHPJasper ;
207207
208208$jasper->process(
209209 $input,
@@ -221,7 +221,7 @@ Para a lista completa de idiomas suportados veja o link [Supported Locales](http
221221``` php
222222require __DIR__ . '/vendor/autoload.php';
223223
224- use JasperPHP\JasperPHP ;
224+ use PHPJasper\PHPJasper ;
225225
226226$input = '/your_input_path/your_report.jasper or .jrxml';
227227$output = '/your_output_path';
@@ -243,7 +243,7 @@ $options = [
243243 ]
244244];
245245
246- $jasper = new JasperPHP ;
246+ $jasper = new PHPJasper ;
247247
248248$jasper->process(
249249 $input,
@@ -257,7 +257,7 @@ $jasper->process(
257257``` php
258258require __DIR__ . '/vendor/autoload.php';
259259
260- use JasperPHP\JasperPHP ;
260+ use PHPJasper\PHPJasper ;
261261
262262$input = '/your_input_path/your_report.jasper';
263263$output = '/your_output_path';
@@ -273,7 +273,7 @@ $options = [
273273 ]
274274];
275275
276- $jasper = new JasperPHP ;
276+ $jasper = new PHPJasper ;
277277
278278$jasper->process(
279279 $input,
@@ -287,7 +287,7 @@ $jasper->process(
287287``` php
288288require __DIR__ . '/vendor/autoload.php';
289289
290- use JasperPHP\JasperPHP ;
290+ use PHPJasper\PHPJasper ;
291291
292292$input = '/your_input_path/your_report.jasper';
293293$output = '/your_output_path';
@@ -304,7 +304,7 @@ $options = [
304304 ]
305305];
306306
307- $jasper = new JasperPHP ;
307+ $jasper = new PHPJasper ;
308308
309309$jasper->process(
310310 $input,
0 commit comments