Skip to content

update: docs, composer.json #54

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 6, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Or in your file'composer.json' add:
```json
{
"require": {
"geekcom/phpjasper": "1.*"
"geekcom/phpjasper": "^2.1"
}
}
```
Expand Down Expand Up @@ -124,11 +124,11 @@ First we need to compile our `JRXML` file into a `JASPER` binary file. We just h

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

use JasperPHP\JasperPHP;
use PHPJasper\PHPJasper;

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

$jasper = new JasperPHP;
$jasper = new PHPJasper;
$jasper->compile($input)->execute();
```

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

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

use JasperPHP\JasperPHP;
use PHPJasper\PHPJasper;

$input = __DIR__ . '/vendor/geekcom/phpjasper/examples/hello_world.jasper';
$output = __DIR__ . '/vendor/geekcom/phpjasper/examples';
$options = [
'format' => ['pdf', 'rtf']
];

$jasper = new JasperPHP;
$jasper = new PHPJasper;

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

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

use JasperPHP\JasperPHP;
use PHPJasper\PHPJasper;

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

$jasper = new JasperPHP;
$jasper = new PHPJasper;
$output = $jasper->listParameters($input)->execute();

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

use JasperPHP\JasperPHP;
use PHPJasper\PHPJasper;

$input = '/your_input_path/your_report.jasper';
$output = '/your_output_path';
Expand All @@ -207,7 +207,7 @@ $options = [
]
];

$jasper = new JasperPHP;
$jasper = new PHPJasper;

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

use JasperPHP\JasperPHP;
use PHPJasper\PHPJasper;

$input = '/your_input_path/your_report.jasper or .jrxml';
$output = '/your_output_path';
Expand All @@ -247,7 +247,7 @@ $options = [
]
];

$jasper = new JasperPHP;
$jasper = new PHPJasper;

$jasper->process(
$input,
Expand All @@ -261,7 +261,7 @@ $jasper->process(
```php
require __DIR__ . '/vendor/autoload.php';

use JasperPHP\JasperPHP;
use PHPJasper\PHPJasper;

$input = '/your_input_path/your_report.jasper';
$output = '/your_output_path';
Expand All @@ -277,7 +277,7 @@ $options = [
]
];

$jasper = new JasperPHP;
$jasper = new PHPJasper;

$jasper->process(
$input,
Expand All @@ -291,7 +291,7 @@ $jasper->process(
```php
require __DIR__ . '/vendor/autoload.php';

use JasperPHP\JasperPHP;
use PHPJasper\PHPJasper;

$input = '/your_input_path/your_report.jasper';
$output = '/your_output_path';
Expand All @@ -308,7 +308,7 @@ $options = [
]
];

$jasper = new JasperPHP;
$jasper = new PHPJasper;

$jasper->process(
$input,
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"minimum-stability": "stable",
"require": {
"php": ">=7.1",
"symfony/console": "^3.2"
"symfony/console": "^3.3"
},
"require-dev": {
"phpunit/phpunit": "^6.1"
Expand Down
30 changes: 15 additions & 15 deletions docs/pt_BR/LEIA-ME_pt_BR.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Ou crie um arquivo 'composer.json' e adicione o trecho:
```json
{
"require": {
"geekcom/phpjasper": "1.*"
"geekcom/phpjasper": "^2.1"
}
}
```
Expand Down Expand Up @@ -123,11 +123,11 @@ Primeiro precisamos compilar o arquivo com a extensão `.JRXML` em um arquivo bi

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

use JasperPHP\JasperPHP;
use PHPJasper\PHPJasper;

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

$jasper = new JasperPHP;
$jasper = new PHPJasper;
$jasper->compile($input)->execute();
```

Expand All @@ -140,15 +140,15 @@ Agora vamos processar o nosso relatório que foi compilado acima:
```php
require __DIR__ . '/vendor/autoload.php';

use JasperPHP\JasperPHP;
use PHPJasper\PHPJasper;

$input = __DIR__ . '/vendor/geekcom/phpjasper/examples/hello_world.jasper';
$output = __DIR__ . '/vendor/geekcom/phpjasper/examples';
$options = [
'format' => ['pdf', 'rtf']
];

$jasper = new JasperPHP;
$jasper = new PHPJasper;

$jasper->process(
$input,
Expand All @@ -167,11 +167,11 @@ Como consultar o arquivo jrxml para examinar os parâmetros disponíveis no rela

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

use JasperPHP\JasperPHP;
use PHPJasper\PHPJasper;

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

$jasper = new JasperPHP;
$jasper = new PHPJasper;
$output = $jasper->listParameters($input)->execute();

foreach($output as $parameter_description)
Expand All @@ -185,7 +185,7 @@ Adicione os parâmetros específicos para conexão com seu banco de dados: MYSQL
```php
require __DIR__ . '/vendor/autoload.php';

use JasperPHP\JasperPHP;
use PHPJasper\PHPJasper;

$input = '/your_input_path/your_report.jasper';
$output = '/your_output_path';
Expand All @@ -203,7 +203,7 @@ $options = [
]
];

$jasper = new JasperPHP;
$jasper = new PHPJasper;

$jasper->process(
$input,
Expand All @@ -221,7 +221,7 @@ Para a lista completa de idiomas suportados veja o link [Supported Locales](http
```php
require __DIR__ . '/vendor/autoload.php';

use JasperPHP\JasperPHP;
use PHPJasper\PHPJasper;

$input = '/your_input_path/your_report.jasper or .jrxml';
$output = '/your_output_path';
Expand All @@ -243,7 +243,7 @@ $options = [
]
];

$jasper = new JasperPHP;
$jasper = new PHPJasper;

$jasper->process(
$input,
Expand All @@ -257,7 +257,7 @@ $jasper->process(
```php
require __DIR__ . '/vendor/autoload.php';

use JasperPHP\JasperPHP;
use PHPJasper\PHPJasper;

$input = '/your_input_path/your_report.jasper';
$output = '/your_output_path';
Expand All @@ -273,7 +273,7 @@ $options = [
]
];

$jasper = new JasperPHP;
$jasper = new PHPJasper;

$jasper->process(
$input,
Expand All @@ -287,7 +287,7 @@ $jasper->process(
```php
require __DIR__ . '/vendor/autoload.php';

use JasperPHP\JasperPHP;
use PHPJasper\PHPJasper;

$input = '/your_input_path/your_report.jasper';
$output = '/your_output_path';
Expand All @@ -304,7 +304,7 @@ $options = [
]
];

$jasper = new JasperPHP;
$jasper = new PHPJasper;

$jasper->process(
$input,
Expand Down