Skip to content
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ tests/*.jasper
tests/fixture
/tests/logs
.phpcs-cache
.phpunit.result.cache

# IDE
## Eclipse
Expand Down
13 changes: 13 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
Release Notes - PHPJasper - Version 3.2.0
========================================================
* Improvement
* minimum PHP version now is 7.2
https://www.php.net/supported-versions.php
* phpunit minimal now is 8.*
* Update
* suggested jdbc drivers in the folder bin/jasperstarter/jdbc
* update tests and phpunit.xml
* docs
* Remove
* break test
________________________________________________
Release Notes - PHPJasper - Version 3.1.0
========================================================
* Improvement
Expand Down
32 changes: 10 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ _A PHP Report Generator_

[![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)
[![Latest Stable Version](https://poser.pugx.org/geekcom/phpjasper/v/stable)](https://packagist.org/packages/geekcom/phpjasper)
[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%207.0-blue.svg?style=flat-square)](https://php.net/)
[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%207.2-blue.svg?style=flat-square)](https://php.net/)
[![Total Downloads](https://poser.pugx.org/geekcom/phpjasper/downloads)](https://packagist.org/packages/geekcom/phpjasper)
[![License](https://poser.pugx.org/geekcom/phpjasper/license)](https://packagist.org/packages/geekcom/phpjasper)

Expand All @@ -21,7 +21,6 @@ PHPJasper is the best solution to compile and process JasperReports (.jrxml & .j
* For PHP versions less than 7.0 see: [v1.16](https://github.com/PHPJasper/phpjasper/releases/tag/v1.16)
* [Here](https://github.com/PHPJasper/examples) are several examples of how to use PHPJasper


### Why PHPJasper?

Did you ever had to create a good looking Invoice with a lot of fields for your great web app?
Expand All @@ -48,15 +47,17 @@ It is recommended using [Jaspersoft Studio](http://community.jaspersoft.com/proj

## Requirements

* PHP 7.0 or above
* PHP 7.2 or above
* Java JDK 1.8

## Optional

* [Mysql JDBC Driver](http://dev.mysql.com/downloads/connector/j/) (If you want to use a database)
* [PostgreSQL JDBC Driver](https://jdbc.postgresql.org/download.html) (If you want to use a database)
* [Microsoft JDBC Drivers](https://www.microsoft.com/en-US/download/details.aspx?id=11774) (If you want to use a database)
* [Jaspersoft Studio](http://community.jaspersoft.com/project/jaspersoft-studio) (to draw and compile your reports)
* Any `jdbc` drivers to generate reports from a database (MySQL, PostgreSQL, MSSQL...), must be copied to a folder `bin/jasperstarter/jdbc`
* We ship the [PostgreSQL](https://jdbc.postgresql.org/) (42.2.9) in the `bin/jasperstarter/jdbc` directory.
* We ship the [MySQL connector](http://dev.mysql.com/downloads/connector/j/) (v5.1.48) in the `bin/jasperstarter/jdbc` directory.
* [Microsoft JDBC Drivers SQL Server
](https://docs.microsoft.com/en-us/sql/connect/jdbc/download-microsoft-jdbc-driver-for-sql-server?view=sql-server-ver15).
* [Jaspersoft Studio](http://community.jaspersoft.com/project/jaspersoft-studio) (to draw your reports).

## Installation

Expand All @@ -69,7 +70,7 @@ Or in your file'composer.json' add:
```json
{
"require": {
"geekcom/phpjasper": "^3.1.0"
"geekcom/phpjasper": "^3.2.0"
}
}
```
Expand All @@ -94,7 +95,7 @@ To execute tests:
* `docker exec -it phpjasper ./vendor/bin/phpunit` or
* `docker exec -it phpjasper ./vendor/bin/phpunit --testdox`

To see coverage of tests execute the file: `/tests/codeCoverage/html/dashboard.html`
To see coverage of tests execute the file: `tests/logs/coverage/index.html`

_Help us writing new tests, make a fork_ :)

Expand Down Expand Up @@ -310,19 +311,6 @@ $jasper->process(
)->execute();
```

### MySQL

We ship the [MySQL connector](http://dev.mysql.com/downloads/connector/j/) (v5.1.39) in the `/src/JasperStarter/jdbc/` directory.

### PostgreSQL

We ship the [PostgreSQL](https://jdbc.postgresql.org/) (v9.4-1203) in the `/src/JasperStarter/jdbc/` directory.

### MSSQL

[Microsoft JDBC Drivers 6.0, 4.2, 4.1, and 4.0 for SQL Server
](https://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=11774).

## Performance

Depends on the complexity, amount of data and the resources of your machine (let me know your use case).
Expand Down
Binary file not shown.
Binary file not shown.
Binary file added bin/jasperstarter/jdbc/postgresql-42.2.9.jar
Binary file not shown.
Binary file not shown.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
],
"minimum-stability": "stable",
"require": {
"php": ">=7.0"
"php": "^7.2"
},
"require-dev": {
"phpunit/phpunit": "^6.1",
"squizlabs/php_codesniffer": "^3.1"
"phpunit/phpunit": "^8.3",
"squizlabs/php_codesniffer": "3.*"
},
"autoload": {
"psr-4": {
Expand Down
Loading