Skip to content

Commit 0c0b0a7

Browse files
committed
update: docs, composer.json
1 parent 42ce4e7 commit 0c0b0a7

File tree

3 files changed

+31
-31
lines changed

3 files changed

+31
-31
lines changed

README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Or in your file'composer.json' add:
9494
```json
9595
{
9696
"require": {
97-
"geekcom/phpjasper": "1.*"
97+
"geekcom/phpjasper": "^2.1"
9898
}
9999
}
100100
```
@@ -124,11 +124,11 @@ First we need to compile our `JRXML` file into a `JASPER` binary file. We just h
124124

125125
require __DIR__ . '/vendor/autoload.php';
126126

127-
use JasperPHP\JasperPHP;
127+
use PHPJasper\PHPJasper;
128128

129129
$input = __DIR__ . '/vendor/geekcom/phpjasper/examples/hello_world.jrxml';
130130

131-
$jasper = new JasperPHP;
131+
$jasper = new PHPJasper;
132132
$jasper->compile($input)->execute();
133133
```
134134

@@ -142,15 +142,15 @@ Now lets process the report that we compile before:
142142

143143
require __DIR__ . '/vendor/autoload.php';
144144

145-
use JasperPHP\JasperPHP;
145+
use PHPJasper\PHPJasper;
146146

147147
$input = __DIR__ . '/vendor/geekcom/phpjasper/examples/hello_world.jasper';
148148
$output = __DIR__ . '/vendor/geekcom/phpjasper/examples';
149149
$options = [
150150
'format' => ['pdf', 'rtf']
151151
];
152152

153-
$jasper = new JasperPHP;
153+
$jasper = new PHPJasper;
154154

155155
$jasper->process(
156156
$input,
@@ -171,11 +171,11 @@ Querying the jasper file to examine parameters available in the given jasper rep
171171

172172
require __DIR__ . '/vendor/autoload.php';
173173

174-
use JasperPHP\JasperPHP;
174+
use PHPJasper\PHPJasper;
175175

176176
$input = __DIR__ . '/vendor/geekcom/phpjasper/examples/hello_world_params.jrxml';
177177

178-
$jasper = new JasperPHP;
178+
$jasper = new PHPJasper;
179179
$output = $jasper->listParameters($input)->execute();
180180

181181
foreach($output as $parameter_description)
@@ -189,7 +189,7 @@ We can also specify parameters for connecting to database:
189189
```php
190190
require __DIR__ . '/vendor/autoload.php';
191191

192-
use JasperPHP\JasperPHP;
192+
use PHPJasper\PHPJasper;
193193

194194
$input = '/your_input_path/your_report.jasper';
195195
$output = '/your_output_path';
@@ -207,7 +207,7 @@ $options = [
207207
]
208208
];
209209

210-
$jasper = new JasperPHP;
210+
$jasper = new PHPJasper;
211211

212212
$jasper->process(
213213
$input,
@@ -225,7 +225,7 @@ For a complete list of locales see [Supported Locales](http://www.oracle.com/tec
225225
```php
226226
require __DIR__ . '/vendor/autoload.php';
227227

228-
use JasperPHP\JasperPHP;
228+
use PHPJasper\PHPJasper;
229229

230230
$input = '/your_input_path/your_report.jasper or .jrxml';
231231
$output = '/your_output_path';
@@ -247,7 +247,7 @@ $options = [
247247
]
248248
];
249249

250-
$jasper = new JasperPHP;
250+
$jasper = new PHPJasper;
251251

252252
$jasper->process(
253253
$input,
@@ -261,7 +261,7 @@ $jasper->process(
261261
```php
262262
require __DIR__ . '/vendor/autoload.php';
263263

264-
use JasperPHP\JasperPHP;
264+
use PHPJasper\PHPJasper;
265265

266266
$input = '/your_input_path/your_report.jasper';
267267
$output = '/your_output_path';
@@ -277,7 +277,7 @@ $options = [
277277
]
278278
];
279279

280-
$jasper = new JasperPHP;
280+
$jasper = new PHPJasper;
281281

282282
$jasper->process(
283283
$input,
@@ -291,7 +291,7 @@ $jasper->process(
291291
```php
292292
require __DIR__ . '/vendor/autoload.php';
293293

294-
use JasperPHP\JasperPHP;
294+
use PHPJasper\PHPJasper;
295295

296296
$input = '/your_input_path/your_report.jasper';
297297
$output = '/your_output_path';
@@ -308,7 +308,7 @@ $options = [
308308
]
309309
];
310310

311-
$jasper = new JasperPHP;
311+
$jasper = new PHPJasper;
312312

313313
$jasper->process(
314314
$input,

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"minimum-stability": "stable",
1818
"require": {
1919
"php": ">=7.1",
20-
"symfony/console": "^3.2"
20+
"symfony/console": "^3.3"
2121
},
2222
"require-dev": {
2323
"phpunit/phpunit": "^6.1"

docs/pt_BR/LEIA-ME_pt_BR.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -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

124124
require __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
141141
require __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

168168
require __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

177177
foreach($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
186186
require __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
222222
require __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
258258
require __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
288288
require __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

Comments
 (0)