You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+96-67Lines changed: 96 additions & 67 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,29 +1,5 @@
1
1
# JasperReports for PHP
2
2
3
-
Package to generate reports with [JasperReports 6](http://community.jaspersoft.com/project/jasperreports-library) library through [JasperStarter v3](http://jasperstarter.sourceforge.net/) command-line tool.
4
-
5
-
##Install
6
-
7
-
Install [Composer](http://getcomposer.org) if you don't have it.
8
-
```
9
-
composer require lavela/phpjasper
10
-
```
11
-
Or in your 'composer.json' file add:
12
-
13
-
```javascript
14
-
{
15
-
"require": {
16
-
"lavela/phpjasper":"1.0",
17
-
}
18
-
}
19
-
```
20
-
21
-
And the just run:
22
-
23
-
composer install
24
-
25
-
and thats it.
26
-
27
3
##Introduction
28
4
29
5
This package aims to be a solution to compile and process JasperReports (.jrxml & .jasper files).
@@ -44,14 +20,69 @@ Well, everything. JasperReports is a powerful tool for **reporting** and **BI**.
44
20
45
21
> The JasperReports Library is the world's most popular open source reporting engine. It is entirely written in Java and it is able to use data coming from any kind of data source and produce pixel-perfect documents that can be viewed, printed or exported in a variety of document formats including HTML, PDF, Excel, OpenOffice and Word.
46
22
47
-
I recommend using [Jaspersoft Studio](http://community.jaspersoft.com/project/jaspersoft-studio) to build your reports, connect it to your datasource (ex: MySQL), loop thru the results and output it to PDF, XLS, DOC, RTF, ODF, etc.
23
+
I recommend using [Jaspersoft Studio](http://community.jaspersoft.com/project/jaspersoft-studio) to build your reports, connect it to your datasource (ex: MySQL, POSTGRES), loop thru the results and output it to PDF, XLS, DOC, RTF, ODF, etc.
48
24
49
25
*Some examples of what you can do:*
50
26
51
27
* Invoices
52
28
* Reports
53
29
* Listings
54
30
31
+
Package to generate reports with [JasperReports 6](http://community.jaspersoft.com/project/jasperreports-library) library through [JasperStarter v3](http://jasperstarter.sourceforge.net/) command-line tool.
32
+
33
+
##Requirements
34
+
35
+
* Java JDK 1.8
36
+
* PHP [exec()](http://php.net/manual/function.exec.php) function
37
+
*[optional][Mysql Connector](http://dev.mysql.com/downloads/connector/j/) (if you want to use database)
38
+
*[optional][PostgreSQL Connector](https://jdbc.postgresql.org/download.html) (if you want to use database)
39
+
*[optional][Jaspersoft Studio](http://community.jaspersoft.com/project/jaspersoft-studio) (to draw and compile your reports)
40
+
41
+
##Installation
42
+
43
+
###Java
44
+
45
+
Check if you already have Java installed:
46
+
47
+
```
48
+
$ java -version
49
+
java version "1.8.0_65"
50
+
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
51
+
Java HotSpot(TM) Client VM (build 25.65-b01, mixed mode, sharing)
52
+
```
53
+
54
+
If you get:
55
+
56
+
command not found: java
57
+
58
+
Then install it with: (Ubuntu/Debian)
59
+
60
+
$ sudo apt-get install default-jdk
61
+
62
+
Now run the `java -version` again and check if the output is ok.
63
+
64
+
##Install
65
+
66
+
Install [Composer](http://getcomposer.org) if you don't have it.
0 commit comments