1
1
# PHPJasper
2
+ _ A PHP Report Generator_
3
+
2
4
[ ![ Scrutinizer Code Quality] ( https://scrutinizer-ci.com/g/geekcom/phpjasper/badges/quality-score.png?b=master )] ( https://scrutinizer-ci.com/g/geekcom/phpjasper/?branch=master )
3
5
[ ![ Latest Stable Version] ( https://img.shields.io/packagist/v/geekcom/phpjasper.svg?style=flat-square )] ( https://packagist.org/packages/geekcom/phpjasper )
4
6
[ ![ Minimum PHP Version] ( https://img.shields.io/badge/php-%3E%3D%207.1-blue.svg?style=flat-square )] ( https://php.net/ )
11
13
PHPJasper is the best solution to compile and process JasperReports (.jrxml & .jasper files) just using PHP, in short: to generate reports using PHP.
12
14
13
15
** Notes:**
14
- * PHPJasper Can be used regardless of your PHP Framework,
16
+ * PHPJasper Can be used regardless of your PHP Framework
15
17
* For PHP versions less than 7.1 see: [ v1.16] ( https://github.com/PHPJasper/phpjasper/releases/tag/v1.16 )
16
18
17
19
@@ -90,7 +92,7 @@ Or in your file'composer.json' add:
90
92
``` json
91
93
{
92
94
"require" : {
93
- "geekcom/phpjasper" : " ^2.1 "
95
+ "geekcom/phpjasper" : " ^2.4 "
94
96
}
95
97
}
96
98
```
@@ -178,7 +180,7 @@ foreach($output as $parameter_description)
178
180
print $parameter_description . '<pre >';
179
181
```
180
182
181
- ### Advanced example - using a database
183
+ ### Using database to generate reports
182
184
183
185
We can also specify parameters for connecting to database:
184
186
@@ -194,7 +196,7 @@ $options = [
194
196
'locale' => 'en',
195
197
'params' => [],
196
198
'db_connection' => [
197
- 'driver' => 'postgres',
199
+ 'driver' => 'postgres', //mysql, ....
198
200
'username' => 'DB_USERNAME',
199
201
'password' => 'DB_PASSWORD',
200
202
'host' => 'DB_HOST',
0 commit comments