├── .gitignore ├── CHANGES ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── bin └── jasperstarter │ ├── CHANGES │ ├── LICENSE │ ├── NOTICE │ ├── README.md │ ├── bin │ ├── jasperstarter │ └── jasperstarter.exe │ ├── jdbc │ ├── README │ ├── mysql-connector-java-5.1.39-bin.jar │ └── postgresql-9.4-1203.jdbc4.jar │ └── lib │ ├── ant-1.7.1.jar │ ├── ant-launcher-1.7.1.jar │ ├── argparse4j-0.5.0.jar │ ├── avalon-framework-impl-4.2.0.jar │ ├── barbecue-1.5-beta1.jar │ ├── barcode4j-2.1.jar │ ├── batik-anim-1.9.1.jar │ ├── batik-awt-util-1.9.1.jar │ ├── batik-bridge-1.9.1.jar │ ├── batik-constants-1.9.1.jar │ ├── batik-css-1.9.1.jar │ ├── batik-dom-1.9.1.jar │ ├── batik-ext-1.9.1.jar │ ├── batik-gvt-1.9.1.jar │ ├── batik-i18n-1.9.1.jar │ ├── batik-parser-1.9.1.jar │ ├── batik-script-1.9.1.jar │ ├── batik-svg-dom-1.9.1.jar │ ├── batik-svggen-1.9.1.jar │ ├── batik-util-1.9.1.jar │ ├── batik-xml-1.9.1.jar │ ├── bcprov-jdk15on-1.52.jar │ ├── castor-core-1.3.3.jar │ ├── castor-xml-1.3.3.jar │ ├── commons-beanutils-1.9.3.jar │ ├── commons-cli-1.0.jar │ ├── commons-codec-1.10.jar │ ├── commons-collections-3.2.2.jar │ ├── commons-collections4-4.1.jar │ ├── commons-digester-2.1.jar │ ├── commons-io-2.5.jar │ ├── commons-lang-2.6.jar │ ├── commons-logging-1.1.1.jar │ ├── core-3.2.1.jar │ ├── ecj-4.4.2.jar │ ├── groovy-all-2.4.12.jar │ ├── icu4j-57.1.jar │ ├── itext-2.1.7.js6.jar │ ├── jackson-annotations-2.1.4.jar │ ├── jackson-core-2.1.4.jar │ ├── jackson-databind-2.1.4.jar │ ├── jakarta-regexp-1.4.jar │ ├── jasperreports-6.4.3.jar │ ├── jasperreports-fonts-6.0.0.jar │ ├── jasperreports-functions-6.4.3.jar │ ├── jasperstarter.jar │ ├── javax.inject-1.jar │ ├── jcalendar-1.4.jar │ ├── jcommon-1.0.23.jar │ ├── jfreechart-1.0.19.jar │ ├── joda-time-2.1.jar │ ├── jython-2.7.0.jar │ ├── log4j-1.2.17.jar │ ├── lucene-analyzers-common-4.5.1.jar │ ├── lucene-core-4.5.1.jar │ ├── lucene-queries-4.5.1.jar │ ├── lucene-queryparser-4.5.1.jar │ ├── lucene-sandbox-4.5.1.jar │ ├── olap4j-0.9.7.309-JS-3.jar │ ├── poi-3.17.jar │ ├── rhino-1.7.7.2.jar │ ├── serializer-2.7.2.jar │ ├── servlet-api-2.5.jar │ ├── stax-1.2.0.jar │ ├── stax-api-1.0-2.jar │ ├── stax-api-1.0.1.jar │ ├── xalan-2.7.2.jar │ ├── xml-apis-1.3.04.jar │ ├── xml-apis-ext-1.3.04.jar │ └── xmlgraphics-commons-2.2.jar ├── composer.json ├── composer.lock ├── docs └── pt_BR │ └── LEIA-ME_pt_BR.md ├── examples ├── .gitignore ├── CancelAck.jrxml ├── CancelAck.xml ├── contacts.json ├── hello_world.jrxml ├── hello_world_params.jrxml └── json.jrxml ├── phpunit.xml ├── src ├── Exception │ ├── ErrorCommandExecutable.php │ ├── InvalidCommandExecutable.php │ ├── InvalidFormat.php │ ├── InvalidInputFile.php │ └── InvalidResourceDirectory.php ├── PHPJasper.php └── PHPJasperServiceProvider.php └── tests ├── PHPJasper ├── PHPJasperTest.php └── test.jrxml └── bootstrap.php /.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | /vendor 3 | tests/PHPJasper/*.jasper 4 | 5 | # IDE 6 | ## Eclipse 7 | .buildpath 8 | .project 9 | .settings -------------------------------------------------------------------------------- /CHANGES: -------------------------------------------------------------------------------- 1 | Release Notes - PHPJasper - Version 2.6 2 | ======================================================== 3 | ** Update 4 | * updated for jasperstarter 3.2.1 5 | ________________________________________________________ 6 | Release Notes - PHPJasper - Version 2.5 7 | ======================================================== 8 | * https://github.com/PHPJasper/phpjasper/pull/77 9 | * https://github.com/PHPJasper/phpjasper/pull/78 10 | * https://github.com/PHPJasper/phpjasper/pull/79 11 | * https://github.com/PHPJasper/phpjasper/pull/80 12 | ________________________________________________________ 13 | 14 | Release Notes - PHPJasper - Version 2.2 15 | ======================================================== 16 | ** Improvement: https://github.com/PHPJasper/phpjasper/issues/30 17 | * add support for resource option 18 | ________________________________________________________ 19 | 20 | Release Notes - PHPJasper - Version 2.1 21 | ======================================================== 22 | ** Refactoring 23 | * strict types activate 24 | * add type declarations 25 | ________________________________________________________ 26 | Release Notes - PHPJasper - Version 2.0 27 | ======================================================== 28 | ** Improvement 29 | * Support php 7.1 above 30 | ________________________________________________________ 31 | 32 | Release Notes - PHPJasper - Version 1.15 33 | ======================================================== 34 | ** Improvement 35 | * Updated JasperStarter to Version 3.1.0 36 | ________________________________________________________ 37 | 38 | Release Notes - JasperStarter - Version 3.1.0 39 | ======================================================== 40 | 41 | ** New Feature 42 | * [JAS-83] - JSON file as a data source 43 | 44 | ** Task 45 | * [JAS-95] - Include JasperReports 6.4.0 46 | 47 | ** Improvement 48 | * [JAS-84] - How to pass $P{XML_DATA_DOCUMENT} to sub report - additional documentation 49 | ________________________________________________________ -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. 6 | 7 | ## Our Standards 8 | 9 | Examples of behavior that contributes to creating a positive environment include: 10 | 11 | * Using welcoming and inclusive language 12 | * Being respectful of differing viewpoints and experiences 13 | * Gracefully accepting constructive criticism 14 | * Focusing on what is best for the community 15 | * Showing empathy towards other community members 16 | 17 | Examples of unacceptable behavior by participants include: 18 | 19 | * The use of sexualized language or imagery and unwelcome sexual attention or advances 20 | * Trolling, insulting/derogatory comments, and personal or political attacks 21 | * Public or private harassment 22 | * Publishing others' private information, such as a physical or electronic address, without explicit permission 23 | * Other conduct which could reasonably be considered inappropriate in a professional setting 24 | 25 | ## Our Responsibilities 26 | 27 | Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. 28 | 29 | Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. 30 | 31 | ## Scope 32 | 33 | This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. 34 | 35 | ## Enforcement 36 | 37 | Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at danielrodrigues-ti@hotmail.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. 38 | 39 | Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. 40 | 41 | ## Attribution 42 | 43 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] 44 | 45 | [homepage]: http://contributor-covenant.org 46 | [version]: http://contributor-covenant.org/version/1/4/ 47 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | **Keep your code clean and organized, happy code.** 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2013 Hélder Duarte 4 | Copyright (c) 2015 Daniel Rodrigues Lima (geekcom) 5 | Copyright (c) 2015 Leandro Bitencourt 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | this software and associated documentation files (the "Software"), to deal in 9 | the Software without restriction, including without limitation the rights to 10 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 11 | the Software, and to permit persons to whom the Software is furnished to do so, 12 | subject to the following conditions: 13 | 14 | The above copyright notice and this permission notice shall be included in all 15 | copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 19 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 20 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 21 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 22 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # [DEPRECATED] PHPJasper - Laravel Version 5.4 / 5.5 2 | _A PHP Report Generator integrated with Laravel Framework_ 3 | 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) 5 | [![Latest Stable Version](https://img.shields.io/packagist/v/geekcom/phpjasper.svg?style=flat-square)](https://packagist.org/packages/geekcom/phpjasper-laravel) 6 | [![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%207.0-blue.svg?style=flat-square)](https://php.net/) 7 | [![License](https://poser.pugx.org/geekcom/phpjasper/license)](https://packagist.org/packages/geekcom/phpjasper) 8 | 9 | ### Docs 10 | [![Language-pt_BR](https://img.shields.io/badge/pt__BR-100%25-green.svg)](https://github.com/PHPJasper/phpjasper-laravel/blob/master/docs/pt_BR/LEIA-ME_pt_BR.md) 11 | 12 | ### About 13 | PHPJasper is the best solution to compile and process JasperReports (.jrxml & .jasper files) just using PHP, in short: to generate reports using PHP. 14 | 15 | **Notes:** 16 | * [Here](https://github.com/PHPJasper/examples) are several examples of how to use PHPJasper 17 | 18 | 19 | ### Why PHPJasper? 20 | 21 | Did you ever had to create a good looking Invoice with a lot of fields for your great web app? 22 | 23 | Generating *HTML* + *CSS* to make a *PDF*? That doesn't make any sense! :) 24 | 25 | ### What can I do with this? 26 | 27 | Well, everything. JasperReports is a powerful tool for **reporting** and **BI**. 28 | 29 | **From their website:** 30 | 31 | > 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. 32 | 33 | It is recommended 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. 34 | 35 | *Some examples of what you can do:* 36 | 37 | * Invoices 38 | * Reports 39 | * Listings 40 | 41 | ## Requirements 42 | 43 | * PHP 7.0 or above 44 | * Laravel 5.4 or 5.5 45 | * Java JDK 1.8 46 | 47 | ## Optional 48 | 49 | * [Mysql JDBC Driver](http://dev.mysql.com/downloads/connector/j/) (If you want to use a database) 50 | * [PostgreSQL JDBC Driver](https://jdbc.postgresql.org/download.html) (If you want to use a database) 51 | * [Microsoft JDBC Drivers](https://www.microsoft.com/en-US/download/details.aspx?id=11774) (If you want to use a database) 52 | * [Jaspersoft Studio](http://community.jaspersoft.com/project/jaspersoft-studio) (to draw and compile your reports) 53 | 54 | ### Java(JDK) 55 | 56 | Check if you already have Java installed: 57 | 58 | ``` 59 | $ javac -version 60 | javac version 1.8.0_101 61 | ``` 62 | 63 | If you get: 64 | 65 | command not found: javac 66 | 67 | Then install it with: (Ubuntu/Debian) 68 | 69 | $ sudo apt-get install default-jdk 70 | 71 | To install on: (centOS/Fedora) 72 | 73 | # yum install java-1.8.0-openjdk.x86_64 74 | 75 | To install on windows visit the link-> [JDK](http://www.oracle.com/technetwork/pt/java/javase/downloads/jdk8-downloads-2133151.html) and look for the most appropriate version for your system. 76 | 77 | Now run the `javac -version` again and check if the output is ok. 78 | 79 | --------------------------------------------------------------------------------------------------------------------------- 80 | 81 | ## Installation 82 | 83 | Install [Composer](http://getcomposer.org) if you don't have it. 84 | ``` 85 | composer require geekcom/phpjasper-laravel 86 | ``` 87 | Or in your file'composer.json' add: 88 | 89 | ```json 90 | { 91 | "require": { 92 | "geekcom/phpjasper-laravel": "^1.0" 93 | } 94 | } 95 | ``` 96 | 97 | To register PHPJasperServiceProvider, add it to the array: 98 | 99 | 'providers' => [ 100 | // Other Service Providers 101 | PHPJasper\PHPJasperServiceProvider::class, 102 | ], 103 | 104 | And the just run: 105 | 106 | composer install 107 | 108 | and thats it. 109 | 110 | ---------------------------------------------------------------------------------------------------------------------------- 111 | 112 | ## Examples 113 | 114 | ### The *Hello World* example. 115 | 116 | Go to the examples directory in the root of the repository (`vendor/geekcom/phpjasper/examples`). 117 | Open the `hello_world.jrxml` file with Jaspersoft Studio or with your favorite text editor and take a look at the source code. 118 | 119 | #### Compiling 120 | 121 | First we need to compile our `JRXML` file into a `JASPER` binary file. We just have to do this one time. 122 | 123 | **Note 1:** You don't need to do this step if you are using *Jaspersoft Studio*. You can compile directly within the program. 124 | 125 | ```php 126 | 127 | require __DIR__ . '/vendor/autoload.php'; 128 | 129 | use PHPJasper\PHPJasper; 130 | 131 | $input = __DIR__ . '/vendor/geekcom/phpjasper/examples/hello_world.jrxml'; 132 | 133 | $jasper = new PHPJasper; 134 | $jasper->compile($input)->execute(); 135 | ``` 136 | 137 | This commando will compile the `hello_world.jrxml` source file to a `hello_world.jasper` file. 138 | 139 | #### Processing 140 | 141 | Now lets process the report that we compile before: 142 | 143 | ```php 144 | 145 | require __DIR__ . '/vendor/autoload.php'; 146 | 147 | use PHPJasper\PHPJasper; 148 | 149 | $input = __DIR__ . '/vendor/geekcom/phpjasper/examples/hello_world.jasper'; 150 | $output = __DIR__ . '/vendor/geekcom/phpjasper/examples'; 151 | $options = [ 152 | 'format' => ['pdf', 'rtf'] 153 | ]; 154 | 155 | $jasper = new PHPJasper; 156 | 157 | $jasper->process( 158 | $input, 159 | $output, 160 | $options 161 | )->execute(); 162 | ``` 163 | 164 | Now check the examples folder! :) Great right? You now have 2 files, `hello_world.pdf` and `hello_world.rtf`. 165 | 166 | Check the *methods* `compile` and `process` in `src/JasperPHP.php` for more details 167 | 168 | #### Listing Parameters 169 | 170 | Querying the jasper file to examine parameters available in the given jasper report file: 171 | 172 | ```php 173 | 174 | require __DIR__ . '/vendor/autoload.php'; 175 | 176 | use PHPJasper\PHPJasper; 177 | 178 | $input = __DIR__ . '/vendor/geekcom/phpjasper/examples/hello_world_params.jrxml'; 179 | 180 | $jasper = new PHPJasper; 181 | $output = $jasper->listParameters($input)->execute(); 182 | 183 | foreach($output as $parameter_description) 184 | print $parameter_description . '
';
185 | ```
186 | 
187 | ### Using database to generate reports
188 | 
189 | We can also specify parameters for connecting to database:
190 | 
191 | ```php
192 | require __DIR__ . '/vendor/autoload.php';
193 | 
194 | use PHPJasper\PHPJasper;    
195 | 
196 | $input = '/your_input_path/your_report.jasper';   
197 | $output = '/your_output_path';
198 | $options = [
199 |     'format' => ['pdf'],
200 |     'locale' => 'en',
201 |     'params' => [],
202 |     'db_connection' => [
203 |         'driver' => 'postgres', //mysql, ....
204 |         'username' => 'DB_USERNAME',
205 |         'password' => 'DB_PASSWORD',
206 |         'host' => 'DB_HOST',
207 |         'database' => 'DB_DATABASE',
208 |         'port' => '5432'
209 |     ]
210 | ];
211 | 
212 | $jasper = new PHPJasper;
213 | 
214 | $jasper->process(
215 |         $input,
216 |         $output,
217 |         $options
218 | )->execute();
219 | ```
220 | 
221 | **Note 2:**
222 | 
223 | For a complete list of locales see [Supported Locales](http://www.oracle.com/technetwork/java/javase/java8locales-2095355.html)
224 | 
225 | ### Using MSSQL DataBase
226 | 
227 | ```php
228 | require __DIR__ . '/vendor/autoload.php';
229 | 
230 | use PHPJasper\PHPJasper;
231 | 
232 | $input = '/your_input_path/your_report.jasper or .jrxml';   
233 | $output = '/your_output_path';
234 | $jdbc_dir = __DIR__ . '/vendor/geekcom/phpjasper/bin/jaspertarter/jdbc';
235 | $options = [
236 |     'format' => ['pdf'],
237 |     'locale' => 'en',
238 |     'params' => [],
239 |     'db_connection' => [
240 |         'driver' => 'generic',
241 |         'host' => '127.0.0.1',
242 |         'port' => '1433',
243 |         'database' => 'DataBaseName',
244 |         'username' => 'UserName',
245 |         'password' => 'password',
246 |         'jdbc_driver' => 'com.microsoft.sqlserver.jdbc.SQLServerDriver',
247 |         'jdbc_url' => 'jdbc:sqlserver://127.0.0.1:1433;databaseName=Teste',
248 |         'jdbc_dir' => $jdbc_dir
249 |     ]
250 | ];
251 | 
252 | $jasper = new PHPJasper;
253 | 
254 | $jasper->process(
255 |         $input,
256 |         $output,
257 |         $options
258 |     )->execute();
259 | ```
260 | 
261 | ### Reports from a XML
262 | 
263 | ```php
264 | require __DIR__ . '/vendor/autoload.php';
265 | 
266 | use PHPJasper\PHPJasper;
267 | 
268 | $input = '/your_input_path/your_report.jasper';   
269 | $output = '/your_output_path';
270 | $data_file = __DIR__ . '/your_data_files_path/your_xml_file.xml';
271 | $options = [
272 |     'format' => ['pdf'],
273 |     'params' => [],
274 |     'locale' => 'en',
275 |     'db_connection' => [
276 |         'driver' => 'xml',
277 |         'data_file' => $data_file,
278 |         'xml_xpath' => '/your_xml_xpath'
279 |     ]
280 | ];
281 | 
282 | $jasper = new PHPJasper;
283 | 
284 | $jasper->process(
285 |     $input,
286 |     $output,
287 |     $options
288 | )->execute();
289 | ```
290 | 
291 | ### Reports from a JSON
292 | 
293 | ```php
294 | require __DIR__ . '/vendor/autoload.php';
295 | 
296 | use PHPJasper\PHPJasper;
297 | 
298 | $input = '/your_input_path/your_report.jasper';   
299 | $output = '/your_output_path';
300 | 
301 | $data_file = __DIR__ . '/your_data_files_path/your_json_file.json';
302 | $options = [
303 |     'format' => ['pdf'],
304 |     'params' => [],
305 |     'locale' => 'en',
306 |     'db_connection' => [
307 |         'driver' => 'json',
308 |         'data_file' => $data_file,
309 |         'json_query' => 'your_json_query'
310 |     ]
311 | ];
312 | 
313 | $jasper = new PHPJasper;
314 | 
315 | $jasper->process(
316 |     $input,
317 |     $output,
318 |     $options
319 | )->execute();
320 | ```
321 | 
322 | ### MySQL
323 | 
324 | We ship the [MySQL connector](http://dev.mysql.com/downloads/connector/j/) (v5.1.39) in the `/src/JasperStarter/jdbc/` directory.
325 | 
326 | ### PostgreSQL
327 | 
328 | We ship the [PostgreSQL](https://jdbc.postgresql.org/) (v9.4-1203) in the `/src/JasperStarter/jdbc/` directory.
329 | 
330 | ### MSSQL
331 | 
332 | [Microsoft JDBC Drivers 6.0, 4.2, 4.1, and 4.0 for SQL Server
333 | ](https://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=11774).
334 | 
335 | ## Performance
336 | 
337 | Depends on the complexity, amount of data and the resources of your machine (let me know your use case).
338 | 
339 | I have a report that generates a *Invoice* with a DB connection, images and multiple pages and it takes about **3/4 seconds** to process. I suggest that you use a worker to generate the reports in the background.
340 | 
341 | ## Thanks
342 | 
343 | [Cenote GmbH](http://www.cenote.de/) for the [JasperStarter](http://jasperstarter.sourceforge.net/) tool.
344 | 
345 | [JetBrains](https://www.jetbrains.com/) for the [PhpStorm](https://www.jetbrains.com/phpstorm/) and all great tools.
346 | 
347 | 
348 | ## [Questions?](https://github.com/PHPJasper/phpjasper/issues)
349 | 
350 | Open a new [Issue](https://github.com/PHPJasper/phpjasper/issues) or look for a closed issue
351 | 
352 | 
353 | ## [License](https://github.com/PHPJasper/phpjasper/blob/master/LICENSE)
354 | 
355 | MIT
356 | 
357 | ## [Contribute](https://github.com/PHPJasper/phpjasper/blob/master/CONTRIBUTING.md)
358 | 
359 | Contribute to the community PHP, make a fork!
360 | 


--------------------------------------------------------------------------------
/bin/jasperstarter/CHANGES:
--------------------------------------------------------------------------------
  1 | 
  2 | JasperStarter - Running JasperReports from command line
  3 | ========================================================
  4 | 
  5 | Release Notes - JasperStarter - Version 3.2.1
  6 | ---------------------------------------------
  7 | 
  8 | ** Task
  9 |     * [JAS-109] - Include JasperReports-6.4.3
 10 | 
 11 | 
 12 | Release Notes - JasperStarter - Version 3.2.0
 13 | ---------------------------------------------
 14 | 
 15 | ** Bug
 16 |     * [JAS-96] - Enable JavaScript in expression
 17 |     * [JAS-99] - jasperreports-functions not in maven central
 18 |     * [JAS-100] - Pipeline build failed: Font "Arial" is not available to the JVM
 19 |     * [JAS-101] - Pipeline build failed: net.sf.launch4j.ExecException: java.io.IOException: Cannot run program
 20 |     * [JAS-107] - JasperStarter could not run reports with Barcode4J barcodes
 21 | 
 22 | ** Task
 23 |     * [JAS-108] - Include JasperReports 6.4.1
 24 | 
 25 | 
 26 | Release Notes - JasperStarter - Version 3.1.0
 27 | ---------------------------------------------
 28 | 
 29 | ** New Feature
 30 |     * [JAS-83] - JSON file as a data source
 31 | 
 32 | ** Task
 33 |     * [JAS-95] - Include JasperReports 6.4.0
 34 | 
 35 | ** Improvement
 36 |     * [JAS-84] - How to pass $P{XML_DATA_DOCUMENT} to sub report - additional documentation
 37 | 
 38 | 
 39 | Release Notes - JasperStarter - Version 3.0.0
 40 | ---------------------------------------------
 41 | 
 42 | This Release works with Java8.
 43 | 
 44 | ** Bug
 45 |     * [JAS-69] - Calls of assertEquals have the arguments actual and
 46 |                  expected interchanged 
 47 |     * [JAS-70] - Example report csv.jrxml truncates data 
 48 |     * [JAS-80] - jasperstarter by default is missing some important
 49 |                  jasper studio builtin libraries 
 50 |     * [JAS-81] - Eclipse compiler error when running using Java 8
 51 | 
 52 | ** Improvement
 53 |     * [JAS-68] - Expand documentation with calls of running the
 54 |                  example reports 
 55 | 
 56 | ** New Feature
 57 |     * [JAS-67] - Ability to produce CSV Metadata reports
 58 |     * [JAS-72] - Ability to produce XLS Metadata reports
 59 | 
 60 | ** Task
 61 |     * [JAS-57] - Switching from Mercurial to Git
 62 |     * [JAS-59] - Include JasperReports 6.0.0
 63 |     * [JAS-61] - update dependencies
 64 |     * [JAS-65] - Include JasperReports 6.0.2
 65 |     * [JAS-66] - Include JasperReports 6.0.3
 66 |     * [JAS-76] - Git version and revision information in manifest file
 67 |     * [JAS-79] - Include JasperReports 6.0.4
 68 | 
 69 | 
 70 | Release Notes - JasperStarter - Version 2.2.2
 71 | ----------------------------------------------
 72 | 
 73 | ** Bug
 74 |     * [JAS-63] - Version 2.2 WindowsSetup replace the path variable
 75 | 
 76 | 
 77 | Release Notes - JasperStarter - Version 2.2.1
 78 | ----------------------------------------------
 79 | 
 80 | ** Bug
 81 |     * [JAS-58] - DB type generic should not require a username
 82 |     * [JAS-62] - Linux startup script does not work if called via symlink
 83 | 
 84 | ** Task
 85 |     * [JAS-57] - Switching from Mercurial to Git (Branch Jasperstarter-2.2)
 86 | 
 87 | 
 88 | Release Notes - JasperStarter - Version 2.2.0
 89 | ----------------------------------------------
 90 | 
 91 | ** Bug
 92 |     * [JAS-54] - Eclipse complains: Plugin execution not covered by
 93 |                  lifecycle configuration
 94 | 
 95 | ** New Feature
 96 |     * [JAS-56] - Support for XML data sources
 97 | 
 98 | ** Task
 99 |     * [JAS-48] - Rewrite api calls deprecated since JasperReports 5.6.0
100 |     * [JAS-49] - Rewrite code reported by -Xlint:unchecked
101 | 
102 | 
103 | Release Notes - JasperStarter - Version 2.1.2
104 | ---------------------------------------------
105 | 
106 | ** Bug
107 |     * [JAS-53] - Property net.sf.jasperreports.export.xls.one.page.per.sheet was overrided
108 | 
109 | 
110 | Release Notes - JasperStarter - Version 2.1.1
111 | ----------------------------------------------
112 | 
113 | ** Task
114 |     * [JAS-52] - Include JasperReports 5.6.1
115 | 
116 | 
117 | Release Notes - JasperStarter - Version 2.1.0
118 | ----------------------------------------------
119 | 
120 | ** Bug
121 |     * [JAS-40] - No page title is set in index.html
122 | 
123 | ** New Feature
124 |     * [JAS-50] - Accept number of copies when printing
125 | 
126 | ** Task
127 |     * [JAS-47] - Include JasperReports 5.6.0
128 | 
129 | 
130 | Release Notes - JasperStarter - Version 2.0.0
131 | ----------------------------------------------
132 | 
133 | The command line syntax has changed in this release! 
134 |  is now an argument and the format of report parameters has changed.
135 | Specifying the parameter type is no longer necessary. The type is determined
136 | from the report and it is no longer possible to provide a non existent
137 | parameter.
138 | The major new feature is support for csv files as a datasource.
139 | 
140 | ** Bug
141 |     * [JAS-37] - The artifact org.apache.commons:commons-io:jar:1.3.2 has been
142 |                  relocated to commons-io:commons-io:jar:1.3.2
143 |     * [JAS-41] - Command "jasperstarter params" gives no useful result if param
144 |                  has no description
145 | 
146 | ** Improvement
147 |     * [JAS-15] - Report parameters should be handled in a more generic way
148 |     * [JAS-42] - Accept  as positional argument instead of an option
149 | 
150 | ** New Feature
151 |     * [JAS-30] - CSV as a datasource for Jasperstarter
152 | 
153 | ** Task
154 |     * [JAS-23] - create unit test
155 |     * [JAS-24] - create example reports
156 |     * [JAS-34] - site translation de for release 2.0
157 |     * [JAS-35] - site translation cz for release 2.0
158 |     * [JAS-38] - Update build dependencies
159 |     * [JAS-39] - Include JasperReports 5.2.0
160 | 
161 | 
162 | Release Notes - JasperStarter - Version 1.4.2
163 | ----------------------------------------------
164 | 
165 | ** Bug
166 |     * [JAS-41] - Command "jasperstarter params" gives no useful result
167 |                  if param has no description 
168 | 
169 | 
170 | Release Notes - JasperStarter - Version 1.4.1
171 | ----------------------------------------------
172 | 
173 | ** Bug
174 |     * [JAS-33] - Report parameter with space produces error on Unix
175 |                  like systems
176 | 
177 | 
178 | Release Notes - JasperStarter - Version 1.4.0
179 | ----------------------------------------------
180 | 
181 | ** Bug
182 |     * [JAS-29] - Documentation typo java.awt.image
183 | 
184 | ** Task
185 |     * [JAS-31] - Include JasperReports 5.1.2
186 |     * [JAS-32] - Include argparse4j 0.4.1
187 | 
188 | 
189 | Release Notes - JasperStarter - Version 1.3.0
190 | ----------------------------------------------
191 | 
192 | This release is mainly due to the new JasperReports library version 5.1.0.
193 | 
194 | ** Improvement
195 |     * [JAS-28] - Include argparse4j 0.4.0 which introduces some features to the
196 |                  user
197 |                  - Argument abbreviations
198 |                  - Subcommand abbreviations
199 | 
200 | ** Task
201 |     * [JAS-27] - Include JasperReports 5.1.0
202 | 
203 | 
204 | Release Notes - JasperStarter - Version 1.2.0
205 | ----------------------------------------------
206 | 
207 | This release is mainly due to the new JasperReports library version 5.0.4.
208 | 
209 | ** Improvement
210 |     * [JAS-25] - Implement command aliases
211 | 
212 | ** Task
213 |     * [JAS-19] - create an independent configuration bean as replacement for the
214 |                  parser dependend namspace object
215 |     * [JAS-20] - move any call of System.exit() to App.main()
216 |     * [JAS-21] - remove obsolete option --keep
217 |     * [JAS-26] - Use jasperreports library 5.0.4
218 | 
219 | 
220 | Release Notes - JasperStarter - Version 1.1.0
221 | ----------------------------------------------
222 | 
223 | JasperStarter is now able to prompt for report parameters.
224 | 
225 | ** Bug
226 |     * [JAS-5] - Maven site does not create index.html if called directly
227 |     * [JAS-6] - Maven site does not generate translation if called directly
228 |     * [JAS-11] - Maven site does not create index.html if called via package
229 |     * [JAS-16] - Selection of the report locale yields unexpected results in
230 |                  some cases
231 | 
232 | ** Improvement
233 |     * [JAS-13] - new parameter type locale to specify report locale independent
234 |                  from gui locale
235 | 
236 | ** New Feature
237 |     * [JAS-12] - new option to specify report resources like resource bundles or
238 |                  icons
239 |     * [JAS-14] - New option: prompt for report parameters
240 |     * [JAS-17] - New Command: List report parameters
241 | 
242 | ** Task
243 |     * [JAS-7] - Site translation cs
244 |     * [JAS-22] - site translation de
245 | 
246 | 
247 | --------
248 | 
249 |  1.0.1  [JAS-18] - Unable to save output into Excel format
250 | 
251 |  1.0.0
252 |         JasperStarter now has commands: pr - process, lp - list printers.
253 |         New command: cp - compile, can compile one file or all .jrxml in a
254 |         directory.
255 |         New input file types for command pr allowed:
256 |           jrxml    - compiles implicit
257 |           jrprint  - print, view or export previously filled reports.
258 |         New output type: jrprint. This makes --keep obsolete.
259 |         New parameter -w writes compiled file to imput dir if jrxml is
260 |         processed.
261 |         Parameter -t defaults to "none" and can therefore be omited if no
262 |         database is needed.
263 |         Input file is read once. No temporary files needed anymore.
264 |         Setup checks for previous versions and creates menuitems for uninstall
265 |         and help.
266 |         Setup is available in English, Chinese (Simplified), Czech, French,
267 |         Hungarian, German, Polish, Romanian, Thai, Ukrainian.
268 |         [JAS-2] - runtime parameter value cannot contain equal sign
269 |         Contains JasperReports 5.0.1
270 |         German translation for Site/docs
271 |         [JAS-4] - java.lang.Integer cannot be cast to java.lang.String
272 |         [JAS-8] - java.lang.String cannot be cast to java.lang.Integer
273 |         [JAS-9] - Exception in thread "main" java.lang.IllegalArgumentException:
274 |                   URI has an authority component
275 | 
276 |  0.10.0 New report parameter types: double, image (see usage).
277 |         New supported export formats: xls, xlsx, csv, ods, pptx, xhtml, xml.
278 |         Windows setup available.
279 |         --version shows included JasperReports version.
280 |         Fixed some minor bugs.
281 | 
282 | V 0.9.1 Bugfix release fixed problems with --jdbc-dir option.
283 | 
284 | V 0.9.0 First public release
285 |         Switched from Commons CLI to argparse4j.
286 |         Project documentation in generated site.
287 |         README uses markdown syntay, renamed to README.md.
288 |         Applied Apache License 2.0 to the software.
289 |         JasperStarter now starts via executable files in ./bin.
290 |         Windows binary jasperstarter.exe is generated with launch4j.
291 | 
292 | V 0.8.0 Switched to maven.
293 | 
294 | V 0.7.1 Fixed issue: duplicated option -n
295 | 
296 | V 0.7.0 new option --set-report-name to temporary change the reportname when
297 |         printing. This is useful if you want to change the printjob name for
298 |         printing to a pdf printer like cups-pfd which uses the document name as
299 |         part of the pdf name by default.
300 | 
301 | V 0.6.0 new options --printer-name --with-print-dialog --list-printers
302 |         printername matches .toLowercase().startWith() and spaces can be escaped
303 |         by the underline character _.
304 |         print dialog and viewer appear in system look an feel.
305 | 
306 | V 0.5.0 support for postgres, oracle and generic jdbc
307 |         password is no longer a required option except for oracle
308 |         jrprint file is stored in system temp dir and deleted after processing
309 |         new options --jdbc-dir, --debug, --keep-jrprint
310 |         file extension .jasper is added to input if omitted
311 |         output can be omitted or can be file or directory
312 | 
313 | V 0.4.0 jdbc drivers are loaded from jdbc dir
314 |         new parameter: db-type: none, mysql (none provides JREmptyDataSource()
315 |            for a non database report)
316 |         support for barcode4j
317 | 
318 | V 0.3.1 Bugfix: removed jasperreports-javaflow
319 |         added barbecue barcode lib
320 | 
321 | V 0.3.0 Print preview
322 |         nicer help message
323 |         package renamed
324 |  
325 | V 0.2.0 Print support added
326 |         Added exportformats html, odt
327 |         Added report parameter type date.
328 |         New parameter db-name - database name
329 | 
330 | V 0.1.0 First working version
331 |         Supports export to PDF, DOCX, RTF.
332 |         Simple report parameters of type string and int.
333 | 


--------------------------------------------------------------------------------
/bin/jasperstarter/LICENSE:
--------------------------------------------------------------------------------
  1 |                                  Apache License
  2 |                            Version 2.0, January 2004
  3 |                         http://www.apache.org/licenses/
  4 | 
  5 |    TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
  6 | 
  7 |    1. Definitions.
  8 | 
  9 |       "License" shall mean the terms and conditions for use, reproduction,
 10 |       and distribution as defined by Sections 1 through 9 of this document.
 11 | 
 12 |       "Licensor" shall mean the copyright owner or entity authorized by
 13 |       the copyright owner that is granting the License.
 14 | 
 15 |       "Legal Entity" shall mean the union of the acting entity and all
 16 |       other entities that control, are controlled by, or are under common
 17 |       control with that entity. For the purposes of this definition,
 18 |       "control" means (i) the power, direct or indirect, to cause the
 19 |       direction or management of such entity, whether by contract or
 20 |       otherwise, or (ii) ownership of fifty percent (50%) or more of the
 21 |       outstanding shares, or (iii) beneficial ownership of such entity.
 22 | 
 23 |       "You" (or "Your") shall mean an individual or Legal Entity
 24 |       exercising permissions granted by this License.
 25 | 
 26 |       "Source" form shall mean the preferred form for making modifications,
 27 |       including but not limited to software source code, documentation
 28 |       source, and configuration files.
 29 | 
 30 |       "Object" form shall mean any form resulting from mechanical
 31 |       transformation or translation of a Source form, including but
 32 |       not limited to compiled object code, generated documentation,
 33 |       and conversions to other media types.
 34 | 
 35 |       "Work" shall mean the work of authorship, whether in Source or
 36 |       Object form, made available under the License, as indicated by a
 37 |       copyright notice that is included in or attached to the work
 38 |       (an example is provided in the Appendix below).
 39 | 
 40 |       "Derivative Works" shall mean any work, whether in Source or Object
 41 |       form, that is based on (or derived from) the Work and for which the
 42 |       editorial revisions, annotations, elaborations, or other modifications
 43 |       represent, as a whole, an original work of authorship. For the purposes
 44 |       of this License, Derivative Works shall not include works that remain
 45 |       separable from, or merely link (or bind by name) to the interfaces of,
 46 |       the Work and Derivative Works thereof.
 47 | 
 48 |       "Contribution" shall mean any work of authorship, including
 49 |       the original version of the Work and any modifications or additions
 50 |       to that Work or Derivative Works thereof, that is intentionally
 51 |       submitted to Licensor for inclusion in the Work by the copyright owner
 52 |       or by an individual or Legal Entity authorized to submit on behalf of
 53 |       the copyright owner. For the purposes of this definition, "submitted"
 54 |       means any form of electronic, verbal, or written communication sent
 55 |       to the Licensor or its representatives, including but not limited to
 56 |       communication on electronic mailing lists, source code control systems,
 57 |       and issue tracking systems that are managed by, or on behalf of, the
 58 |       Licensor for the purpose of discussing and improving the Work, but
 59 |       excluding communication that is conspicuously marked or otherwise
 60 |       designated in writing by the copyright owner as "Not a Contribution."
 61 | 
 62 |       "Contributor" shall mean Licensor and any individual or Legal Entity
 63 |       on behalf of whom a Contribution has been received by Licensor and
 64 |       subsequently incorporated within the Work.
 65 | 
 66 |    2. Grant of Copyright License. Subject to the terms and conditions of
 67 |       this License, each Contributor hereby grants to You a perpetual,
 68 |       worldwide, non-exclusive, no-charge, royalty-free, irrevocable
 69 |       copyright license to reproduce, prepare Derivative Works of,
 70 |       publicly display, publicly perform, sublicense, and distribute the
 71 |       Work and such Derivative Works in Source or Object form.
 72 | 
 73 |    3. Grant of Patent License. Subject to the terms and conditions of
 74 |       this License, each Contributor hereby grants to You a perpetual,
 75 |       worldwide, non-exclusive, no-charge, royalty-free, irrevocable
 76 |       (except as stated in this section) patent license to make, have made,
 77 |       use, offer to sell, sell, import, and otherwise transfer the Work,
 78 |       where such license applies only to those patent claims licensable
 79 |       by such Contributor that are necessarily infringed by their
 80 |       Contribution(s) alone or by combination of their Contribution(s)
 81 |       with the Work to which such Contribution(s) was submitted. If You
 82 |       institute patent litigation against any entity (including a
 83 |       cross-claim or counterclaim in a lawsuit) alleging that the Work
 84 |       or a Contribution incorporated within the Work constitutes direct
 85 |       or contributory patent infringement, then any patent licenses
 86 |       granted to You under this License for that Work shall terminate
 87 |       as of the date such litigation is filed.
 88 | 
 89 |    4. Redistribution. You may reproduce and distribute copies of the
 90 |       Work or Derivative Works thereof in any medium, with or without
 91 |       modifications, and in Source or Object form, provided that You
 92 |       meet the following conditions:
 93 | 
 94 |       (a) You must give any other recipients of the Work or
 95 |           Derivative Works a copy of this License; and
 96 | 
 97 |       (b) You must cause any modified files to carry prominent notices
 98 |           stating that You changed the files; and
 99 | 
100 |       (c) You must retain, in the Source form of any Derivative Works
101 |           that You distribute, all copyright, patent, trademark, and
102 |           attribution notices from the Source form of the Work,
103 |           excluding those notices that do not pertain to any part of
104 |           the Derivative Works; and
105 | 
106 |       (d) If the Work includes a "NOTICE" text file as part of its
107 |           distribution, then any Derivative Works that You distribute must
108 |           include a readable copy of the attribution notices contained
109 |           within such NOTICE file, excluding those notices that do not
110 |           pertain to any part of the Derivative Works, in at least one
111 |           of the following places: within a NOTICE text file distributed
112 |           as part of the Derivative Works; within the Source form or
113 |           documentation, if provided along with the Derivative Works; or,
114 |           within a display generated by the Derivative Works, if and
115 |           wherever such third-party notices normally appear. The contents
116 |           of the NOTICE file are for informational purposes only and
117 |           do not modify the License. You may add Your own attribution
118 |           notices within Derivative Works that You distribute, alongside
119 |           or as an addendum to the NOTICE text from the Work, provided
120 |           that such additional attribution notices cannot be construed
121 |           as modifying the License.
122 | 
123 |       You may add Your own copyright statement to Your modifications and
124 |       may provide additional or different license terms and conditions
125 |       for use, reproduction, or distribution of Your modifications, or
126 |       for any such Derivative Works as a whole, provided Your use,
127 |       reproduction, and distribution of the Work otherwise complies with
128 |       the conditions stated in this License.
129 | 
130 |    5. Submission of Contributions. Unless You explicitly state otherwise,
131 |       any Contribution intentionally submitted for inclusion in the Work
132 |       by You to the Licensor shall be under the terms and conditions of
133 |       this License, without any additional terms or conditions.
134 |       Notwithstanding the above, nothing herein shall supersede or modify
135 |       the terms of any separate license agreement you may have executed
136 |       with Licensor regarding such Contributions.
137 | 
138 |    6. Trademarks. This License does not grant permission to use the trade
139 |       names, trademarks, service marks, or product names of the Licensor,
140 |       except as required for reasonable and customary use in describing the
141 |       origin of the Work and reproducing the content of the NOTICE file.
142 | 
143 |    7. Disclaimer of Warranty. Unless required by applicable law or
144 |       agreed to in writing, Licensor provides the Work (and each
145 |       Contributor provides its Contributions) on an "AS IS" BASIS,
146 |       WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 |       implied, including, without limitation, any warranties or conditions
148 |       of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 |       PARTICULAR PURPOSE. You are solely responsible for determining the
150 |       appropriateness of using or redistributing the Work and assume any
151 |       risks associated with Your exercise of permissions under this License.
152 | 
153 |    8. Limitation of Liability. In no event and under no legal theory,
154 |       whether in tort (including negligence), contract, or otherwise,
155 |       unless required by applicable law (such as deliberate and grossly
156 |       negligent acts) or agreed to in writing, shall any Contributor be
157 |       liable to You for damages, including any direct, indirect, special,
158 |       incidental, or consequential damages of any character arising as a
159 |       result of this License or out of the use or inability to use the
160 |       Work (including but not limited to damages for loss of goodwill,
161 |       work stoppage, computer failure or malfunction, or any and all
162 |       other commercial damages or losses), even if such Contributor
163 |       has been advised of the possibility of such damages.
164 | 
165 |    9. Accepting Warranty or Additional Liability. While redistributing
166 |       the Work or Derivative Works thereof, You may choose to offer,
167 |       and charge a fee for, acceptance of support, warranty, indemnity,
168 |       or other liability obligations and/or rights consistent with this
169 |       License. However, in accepting such obligations, You may act only
170 |       on Your own behalf and on Your sole responsibility, not on behalf
171 |       of any other Contributor, and only if You agree to indemnify,
172 |       defend, and hold each Contributor harmless for any liability
173 |       incurred by, or claims asserted against, such Contributor by reason
174 |       of your accepting any such warranty or additional liability.
175 | 
176 |    END OF TERMS AND CONDITIONS
177 | 
178 |    APPENDIX: How to apply the Apache License to your work.
179 | 
180 |       To apply the Apache License to your work, attach the following
181 |       boilerplate notice, with the fields enclosed by brackets "[]"
182 |       replaced with your own identifying information. (Don't include
183 |       the brackets!)  The text should be enclosed in the appropriate
184 |       comment syntax for the file format. We also recommend that a
185 |       file or class name and description of purpose be included on the
186 |       same "printed page" as the copyright notice for easier
187 |       identification within third-party archives.
188 | 
189 |    Copyright [yyyy] [name of copyright owner]
190 | 
191 |    Licensed under the Apache License, Version 2.0 (the "License");
192 |    you may not use this file except in compliance with the License.
193 |    You may obtain a copy of the License at
194 | 
195 |        http://www.apache.org/licenses/LICENSE-2.0
196 | 
197 |    Unless required by applicable law or agreed to in writing, software
198 |    distributed under the License is distributed on an "AS IS" BASIS,
199 |    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 |    See the License for the specific language governing permissions and
201 |    limitations under the License.
202 | 


--------------------------------------------------------------------------------
/bin/jasperstarter/NOTICE:
--------------------------------------------------------------------------------
 1 | 
 2 |    JasperStarter - Running JasperReports from command line
 3 |    Copyright 2012, 2013, 2014, 2015 Cenote GmbH
 4 | 
 5 |    This product includes software developed at:
 6 | 
 7 |    https://sourceforge.net/projects/jasperreports/
 8 |    https://github.com/tatsuhiro-t/argparse4j
 9 |    The Apache Software Foundation (http://www.apache.org/)
10 | 
11 |    For a detailed view please see dependency report in the documentation.
12 | 


--------------------------------------------------------------------------------
/bin/jasperstarter/README.md:
--------------------------------------------------------------------------------
  1 | 
  2 | JasperStarter - Running JasperReports from command line
  3 | --------------------------------------------------------
  4 | 
  5 | JasperStarter is an opensource command line launcher and batch compiler for
  6 | [JasperReports][].
  7 | 
  8 | The official homepage is [jasperstater.cenote.de][].
  9 | 
 10 | It has the following features:
 11 | 
 12 |   * Run any JasperReport that needs a jdbc, csv, xml, json or empty datasource
 13 |   * Use with any database for which a jdbc driver is available
 14 |   * Run reports with subreports
 15 |   * Execute reports that need runtime parameters. Any parameter whose class has
 16 |     a string constructor is accepted. Additionally the following types are
 17 |     supported or have special handlers:
 18 |     * date, image (see usage), locale
 19 |   * Optionally prompt for report parameters
 20 |   * Print directly to system default or given printer
 21 |   * Optionally show printer dialog to choose printer
 22 |   * Optionally show printpreview
 23 |   * Export to file in the following formats:
 24 |     * pdf, rtf, xls, xlsMeta, xlsx, docx, odt, ods, pptx, csv, csvMeta, html, xhtml, xml, jrprint
 25 |   * Export multiple formats in one commanding call
 26 |   * Compile, print and export in one commanding call
 27 |   * View, print or export previously filled reports (use jrprint file as input)
 28 |   * Can compile a whole directory of .jrxml files.
 29 |   * Integrate in non Java applications (for example PHP, Python)
 30 |   * Binary executable on Windows
 31 |   * Includes JasperReports so this is the only tool you need to install
 32 | 
 33 | Requirements:
 34 | 
 35 |   * Java 1.6 or higher
 36 |   * A JDBC 2.1 driver for your database
 37 | 
 38 | 
 39 | ### Quickstart
 40 | 
 41 |   * Download JasperStarter from [Sourceforge][].
 42 |   * Extract the distribution archive to any directory on your system.
 43 |   * Add the _./bin_ directory of your installation to your searchpath (on
 44 |     Windows: invoke setup.exe).
 45 |   * Put your jdbc drivers in the _./jdbc_ directory of your installation or
 46 |     use _\--jdbc-dir_ to point to a different directory.
 47 | 
 48 | Invoke JasperStarter with _\-h_ to get an overview:
 49 | 
 50 |     $ jasperstarter -h
 51 | 
 52 | Invoke JasperStarter with _process \-h_ to get help on the process command:
 53 | 
 54 |     $ jasperstarter process -h
 55 | 
 56 | Example with reportparameters:
 57 | 
 58 |     $ jasperstarter pr report.jasper -t mysql -u myuser -f pdf -H myhost \
 59 |      -n mydb -o report -p secret -P CustomerNo=10 StartFrom=2012-10-01
 60 | 
 61 | Example with hsql using database type generic:
 62 | 
 63 |     $ jasperstarter pr report.jasper -t generic -f pdf -o report -u sa \
 64 |     --db-driver org.hsqldb.jdbcDriver \
 65 |     --db-url jdbc:hsqldb:hsql://localhost
 66 | 
 67 | For more information take a look in the docs directory of the distibution
 68 | archive or read the [Usage][] page online.
 69 | 
 70 | 
 71 | ### Release Notes
 72 | 
 73 | See [Changes] for a history of changes.
 74 | 
 75 | 
 76 | #### Known Bugs
 77 | 
 78 | For upcoming issues see [Issues][]
 79 | 
 80 | 
 81 | ### Feedback
 82 | 
 83 | Feedback is always welcome! If you have any questions or proposals, don't
 84 | hesitate to write to our [discussion][] forum.
 85 | If you found a bug or you are missing a feature, log into our [Issuetracker][]
 86 | and create a bug or feature request.
 87 | 
 88 | If you like the software you can write a [review][] :-)
 89 | 
 90 | 
 91 | ### Developement
 92 | 
 93 | The sourcecode is available at [bitbucket.org/cenote/jasperstarter][], the
 94 | project website is hosted at [Sourceforge][].
 95 | 
 96 | JasperStarter is build with [Maven][]. 
 97 | 
 98 | On Linux 64 bit the launch4j-maven-plugin may fail. You need the folloing libs in a 32 bit version:
 99 | 
100 |   * z1
101 |   * ncurses5
102 |   * bz2-1.0
103 | 
104 | On Ubuntu 14.04 for example use this command:
105 | 
106 |     $ sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0
107 | 
108 | 
109 | To get a distribution package run:
110 | 
111 |     $ mvn package -P release
112 | 
113 | or if you build from the current default branch you better use:
114 | 
115 |     $ mvn package -P release,snapshot
116 | 
117 | **Attention! You cannot execute** `target/jasperstarter.jar`
118 | **without having it\'s dependencies in** `../lib` ! See **dev** profile below!
119 | 
120 | If you want to build the Windows setup.exe, you need to have _nsis_ in your
121 | search path (works on linux too, you can find a compiled release in the 
122 | sourceforge download folder _build-tools_ for your convenience)
123 | an add the **windows-setup** profile to your build:
124 | 
125 |     $ mvn package -P release,windows-setup
126 | 
127 | or
128 | 
129 |     $ mvn package -P release,windows-setup,snapshot
130 | 
131 | While developing you may want to have a quicker build. The **dev** profile
132 | excludes some long running reports and the compressed archives. Instead it puts
133 | the build result into _target/jasperstarter-dev-bin_.
134 | 
135 |     $ mvn package -P dev
136 | 
137 | Now you can execute JasperStarter without IDE:
138 | 
139 |     $ target/jasperstarter-dev-bin/bin/jasperstarter
140 | 
141 | or
142 | 
143 |     $ java -jar target/jasperstarter-dev-bin/lib/jasperstarter.jar
144 | 
145 | During development you might want not to be annoyed by tests. So the following
146 | options are useful:
147 | 
148 |     $ mvn package -P dev -D skipTests
149 | 
150 | or
151 | 
152 |     $ mvn package -P dev -D maven.test.failure.ignore=true
153 | 
154 | To run JasperStarter from within your IDE add _\--jdbc-dir jdbc_ to the argument
155 | list of your run configuration. Otherwise you will get an error:
156 | 
157 |     Error, (...)/JasperStarter/target/classes/jdbc is not a directory!
158 | 
159 | Put your jdbc drivers in the _./jdbc_ directory of the project to invoke
160 | JasperStarter from within your IDE to call up a database based report.
161 | 
162 | 
163 | ### License
164 | 
165 | Copyright 2012-2015 Cenote GmbH.
166 | 
167 | Licensed under the Apache License, Version 2.0 (the "License");
168 | you may not use this file except in compliance with the License.
169 | You may obtain a copy of the License at
170 | 
171 |    http://www.apache.org/licenses/LICENSE-2.0
172 | 
173 | Unless required by applicable law or agreed to in writing, software
174 | distributed under the License is distributed on an "AS IS" BASIS,
175 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
176 | See the License for the specific language governing permissions and
177 | limitations under the License.
178 | 
179 | [jasperstater.cenote.de]:http://jasperstarter.cenote.de/
180 | [JasperReports]:http://community.jaspersoft.com/project/jasperreports-library
181 | [Maven]:http://maven.apache.org/
182 | [Sourceforge]:http://sourceforge.net/projects/jasperstarter/
183 | [bitbucket.org/cenote/jasperstarter]:http://bitbucket.org/cenote/jasperstarter
184 | [review]:http://sourceforge.net/projects/jasperstarter/reviews
185 | [discussion]:http://sourceforge.net/p/jasperstarter/discussion/
186 | [Issuetracker]:https://cenote-issues.atlassian.net/browse/JAS
187 | [Usage]:http://jasperstarter.sourceforge.net/usage.html
188 | [Issues]:https://cenote-issues.atlassian.net/browse/JAS
189 | [Changes]:changes.html
190 | 


--------------------------------------------------------------------------------
/bin/jasperstarter/bin/jasperstarter:
--------------------------------------------------------------------------------
 1 | #!/bin/sh
 2 | 
 3 | # Copyright 2012 Cenote GmbH.
 4 | #
 5 | # Licensed under the Apache License, Version 2.0 (the "License");
 6 | # you may not use this file except in compliance with the License.
 7 | # You may obtain a copy of the License at
 8 | #
 9 | #      http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 | 
17 | ## detect home folder
18 | if(test -L "$0") then
19 |   auxlink=`ls -l "$0" | sed 's/^[^>]*-> //g'`
20 |   HOME_FOLDER=`dirname "$auxlink"`/..
21 | else 
22 |   HOME_FOLDER=`dirname "$0"`/..
23 | fi
24 | 
25 | #SCRIPTPATH="$(dirname $0)"
26 | java -jar "$HOME_FOLDER/lib/jasperstarter.jar" "$@"


--------------------------------------------------------------------------------
/bin/jasperstarter/bin/jasperstarter.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/bin/jasperstarter.exe


--------------------------------------------------------------------------------
/bin/jasperstarter/jdbc/README:
--------------------------------------------------------------------------------
1 | This is the jdbc drivers directory.
2 | All jar files in this directory are added to the classpath.
3 | 


--------------------------------------------------------------------------------
/bin/jasperstarter/jdbc/mysql-connector-java-5.1.39-bin.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/jdbc/mysql-connector-java-5.1.39-bin.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/jdbc/postgresql-9.4-1203.jdbc4.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/jdbc/postgresql-9.4-1203.jdbc4.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/ant-1.7.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/ant-1.7.1.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/ant-launcher-1.7.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/ant-launcher-1.7.1.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/argparse4j-0.5.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/argparse4j-0.5.0.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/avalon-framework-impl-4.2.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/avalon-framework-impl-4.2.0.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/barbecue-1.5-beta1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/barbecue-1.5-beta1.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/barcode4j-2.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/barcode4j-2.1.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/batik-anim-1.9.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/batik-anim-1.9.1.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/batik-awt-util-1.9.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/batik-awt-util-1.9.1.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/batik-bridge-1.9.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/batik-bridge-1.9.1.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/batik-constants-1.9.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/batik-constants-1.9.1.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/batik-css-1.9.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/batik-css-1.9.1.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/batik-dom-1.9.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/batik-dom-1.9.1.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/batik-ext-1.9.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/batik-ext-1.9.1.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/batik-gvt-1.9.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/batik-gvt-1.9.1.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/batik-i18n-1.9.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/batik-i18n-1.9.1.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/batik-parser-1.9.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/batik-parser-1.9.1.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/batik-script-1.9.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/batik-script-1.9.1.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/batik-svg-dom-1.9.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/batik-svg-dom-1.9.1.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/batik-svggen-1.9.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/batik-svggen-1.9.1.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/batik-util-1.9.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/batik-util-1.9.1.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/batik-xml-1.9.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/batik-xml-1.9.1.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/bcprov-jdk15on-1.52.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/bcprov-jdk15on-1.52.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/castor-core-1.3.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/castor-core-1.3.3.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/castor-xml-1.3.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/castor-xml-1.3.3.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/commons-beanutils-1.9.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/commons-beanutils-1.9.3.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/commons-cli-1.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/commons-cli-1.0.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/commons-codec-1.10.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/commons-codec-1.10.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/commons-collections-3.2.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/commons-collections-3.2.2.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/commons-collections4-4.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/commons-collections4-4.1.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/commons-digester-2.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/commons-digester-2.1.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/commons-io-2.5.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/commons-io-2.5.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/commons-lang-2.6.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/commons-lang-2.6.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/commons-logging-1.1.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/commons-logging-1.1.1.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/core-3.2.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/core-3.2.1.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/ecj-4.4.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/ecj-4.4.2.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/groovy-all-2.4.12.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/groovy-all-2.4.12.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/icu4j-57.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/icu4j-57.1.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/itext-2.1.7.js6.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/itext-2.1.7.js6.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/jackson-annotations-2.1.4.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/jackson-annotations-2.1.4.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/jackson-core-2.1.4.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/jackson-core-2.1.4.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/jackson-databind-2.1.4.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/jackson-databind-2.1.4.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/jakarta-regexp-1.4.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/jakarta-regexp-1.4.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/jasperreports-6.4.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/jasperreports-6.4.3.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/jasperreports-fonts-6.0.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/jasperreports-fonts-6.0.0.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/jasperreports-functions-6.4.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/jasperreports-functions-6.4.3.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/jasperstarter.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/jasperstarter.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/javax.inject-1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/javax.inject-1.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/jcalendar-1.4.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/jcalendar-1.4.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/jcommon-1.0.23.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/jcommon-1.0.23.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/jfreechart-1.0.19.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/jfreechart-1.0.19.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/joda-time-2.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/joda-time-2.1.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/jython-2.7.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/jython-2.7.0.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/log4j-1.2.17.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/log4j-1.2.17.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/lucene-analyzers-common-4.5.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/lucene-analyzers-common-4.5.1.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/lucene-core-4.5.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/lucene-core-4.5.1.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/lucene-queries-4.5.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/lucene-queries-4.5.1.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/lucene-queryparser-4.5.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/lucene-queryparser-4.5.1.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/lucene-sandbox-4.5.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/lucene-sandbox-4.5.1.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/olap4j-0.9.7.309-JS-3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/olap4j-0.9.7.309-JS-3.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/poi-3.17.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/poi-3.17.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/rhino-1.7.7.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/rhino-1.7.7.2.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/serializer-2.7.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/serializer-2.7.2.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/servlet-api-2.5.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/servlet-api-2.5.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/stax-1.2.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/stax-1.2.0.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/stax-api-1.0-2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/stax-api-1.0-2.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/stax-api-1.0.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/stax-api-1.0.1.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/xalan-2.7.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/xalan-2.7.2.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/xml-apis-1.3.04.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/xml-apis-1.3.04.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/xml-apis-ext-1.3.04.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/xml-apis-ext-1.3.04.jar


--------------------------------------------------------------------------------
/bin/jasperstarter/lib/xmlgraphics-commons-2.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PHPJasper/phpjasper-laravel/614225623b6c784d59505261afec907253d472c6/bin/jasperstarter/lib/xmlgraphics-commons-2.2.jar


--------------------------------------------------------------------------------
/composer.json:
--------------------------------------------------------------------------------
 1 | {
 2 |   "name": "geekcom/phpjasper-laravel",
 3 |   "description": "A PHP report generator",
 4 |   "license": "MIT",
 5 |   "keywords": [
 6 |     "reports",
 7 |     "php-reports",
 8 |     "pdf"
 9 |   ],
10 |   "authors": [
11 |     {
12 |       "name": "Daniel Rodrigues Lima",
13 |       "email": "danielrodrigues-ti@hotmail.com",
14 |       "role": "lead"
15 |     }
16 |   ],
17 |   "minimum-stability": "stable",
18 |   "require": {
19 |     "php": ">=7.0"
20 |   },
21 |   "require-dev": {
22 |     "phpunit/phpunit": "^6.1",
23 |     "squizlabs/php_codesniffer": "^3.1"
24 |   },
25 |   "autoload": {
26 |     "psr-4": {
27 |       "PHPJasper\\": "src/"
28 |     }
29 |   },
30 |   "autoload-dev": {
31 |     "psr-4": {
32 |       "PHPJasper\\Test\\": "tests/"
33 |     }
34 |   }
35 | }
36 | 


--------------------------------------------------------------------------------
/composer.lock:
--------------------------------------------------------------------------------
   1 | {
   2 |     "_readme": [
   3 |         "This file locks the dependencies of your project to a known state",
   4 |         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
   5 |         "This file is @generated automatically"
   6 |     ],
   7 |     "hash": "0ab434f3414d278bddbc1e7cff91f4da",
   8 |     "content-hash": "4ce53a029d8b8e312472fa566cc27915",
   9 |     "packages": [],
  10 |     "packages-dev": [
  11 |         {
  12 |             "name": "doctrine/instantiator",
  13 |             "version": "1.0.5",
  14 |             "source": {
  15 |                 "type": "git",
  16 |                 "url": "https://github.com/doctrine/instantiator.git",
  17 |                 "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d"
  18 |             },
  19 |             "dist": {
  20 |                 "type": "zip",
  21 |                 "url": "https://api.github.com/repos/doctrine/instantiator/zipball/8e884e78f9f0eb1329e445619e04456e64d8051d",
  22 |                 "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d",
  23 |                 "shasum": ""
  24 |             },
  25 |             "require": {
  26 |                 "php": ">=5.3,<8.0-DEV"
  27 |             },
  28 |             "require-dev": {
  29 |                 "athletic/athletic": "~0.1.8",
  30 |                 "ext-pdo": "*",
  31 |                 "ext-phar": "*",
  32 |                 "phpunit/phpunit": "~4.0",
  33 |                 "squizlabs/php_codesniffer": "~2.0"
  34 |             },
  35 |             "type": "library",
  36 |             "extra": {
  37 |                 "branch-alias": {
  38 |                     "dev-master": "1.0.x-dev"
  39 |                 }
  40 |             },
  41 |             "autoload": {
  42 |                 "psr-4": {
  43 |                     "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/"
  44 |                 }
  45 |             },
  46 |             "notification-url": "https://packagist.org/downloads/",
  47 |             "license": [
  48 |                 "MIT"
  49 |             ],
  50 |             "authors": [
  51 |                 {
  52 |                     "name": "Marco Pivetta",
  53 |                     "email": "ocramius@gmail.com",
  54 |                     "homepage": "http://ocramius.github.com/"
  55 |                 }
  56 |             ],
  57 |             "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors",
  58 |             "homepage": "https://github.com/doctrine/instantiator",
  59 |             "keywords": [
  60 |                 "constructor",
  61 |                 "instantiate"
  62 |             ],
  63 |             "time": "2015-06-14 21:17:01"
  64 |         },
  65 |         {
  66 |             "name": "myclabs/deep-copy",
  67 |             "version": "1.7.0",
  68 |             "source": {
  69 |                 "type": "git",
  70 |                 "url": "https://github.com/myclabs/DeepCopy.git",
  71 |                 "reference": "3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e"
  72 |             },
  73 |             "dist": {
  74 |                 "type": "zip",
  75 |                 "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e",
  76 |                 "reference": "3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e",
  77 |                 "shasum": ""
  78 |             },
  79 |             "require": {
  80 |                 "php": "^5.6 || ^7.0"
  81 |             },
  82 |             "require-dev": {
  83 |                 "doctrine/collections": "^1.0",
  84 |                 "doctrine/common": "^2.6",
  85 |                 "phpunit/phpunit": "^4.1"
  86 |             },
  87 |             "type": "library",
  88 |             "autoload": {
  89 |                 "psr-4": {
  90 |                     "DeepCopy\\": "src/DeepCopy/"
  91 |                 },
  92 |                 "files": [
  93 |                     "src/DeepCopy/deep_copy.php"
  94 |                 ]
  95 |             },
  96 |             "notification-url": "https://packagist.org/downloads/",
  97 |             "license": [
  98 |                 "MIT"
  99 |             ],
 100 |             "description": "Create deep copies (clones) of your objects",
 101 |             "keywords": [
 102 |                 "clone",
 103 |                 "copy",
 104 |                 "duplicate",
 105 |                 "object",
 106 |                 "object graph"
 107 |             ],
 108 |             "time": "2017-10-19 19:58:43"
 109 |         },
 110 |         {
 111 |             "name": "phar-io/manifest",
 112 |             "version": "1.0.1",
 113 |             "source": {
 114 |                 "type": "git",
 115 |                 "url": "https://github.com/phar-io/manifest.git",
 116 |                 "reference": "2df402786ab5368a0169091f61a7c1e0eb6852d0"
 117 |             },
 118 |             "dist": {
 119 |                 "type": "zip",
 120 |                 "url": "https://api.github.com/repos/phar-io/manifest/zipball/2df402786ab5368a0169091f61a7c1e0eb6852d0",
 121 |                 "reference": "2df402786ab5368a0169091f61a7c1e0eb6852d0",
 122 |                 "shasum": ""
 123 |             },
 124 |             "require": {
 125 |                 "ext-dom": "*",
 126 |                 "ext-phar": "*",
 127 |                 "phar-io/version": "^1.0.1",
 128 |                 "php": "^5.6 || ^7.0"
 129 |             },
 130 |             "type": "library",
 131 |             "extra": {
 132 |                 "branch-alias": {
 133 |                     "dev-master": "1.0.x-dev"
 134 |                 }
 135 |             },
 136 |             "autoload": {
 137 |                 "classmap": [
 138 |                     "src/"
 139 |                 ]
 140 |             },
 141 |             "notification-url": "https://packagist.org/downloads/",
 142 |             "license": [
 143 |                 "BSD-3-Clause"
 144 |             ],
 145 |             "authors": [
 146 |                 {
 147 |                     "name": "Arne Blankerts",
 148 |                     "email": "arne@blankerts.de",
 149 |                     "role": "Developer"
 150 |                 },
 151 |                 {
 152 |                     "name": "Sebastian Heuer",
 153 |                     "email": "sebastian@phpeople.de",
 154 |                     "role": "Developer"
 155 |                 },
 156 |                 {
 157 |                     "name": "Sebastian Bergmann",
 158 |                     "email": "sebastian@phpunit.de",
 159 |                     "role": "Developer"
 160 |                 }
 161 |             ],
 162 |             "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)",
 163 |             "time": "2017-03-05 18:14:27"
 164 |         },
 165 |         {
 166 |             "name": "phar-io/version",
 167 |             "version": "1.0.1",
 168 |             "source": {
 169 |                 "type": "git",
 170 |                 "url": "https://github.com/phar-io/version.git",
 171 |                 "reference": "a70c0ced4be299a63d32fa96d9281d03e94041df"
 172 |             },
 173 |             "dist": {
 174 |                 "type": "zip",
 175 |                 "url": "https://api.github.com/repos/phar-io/version/zipball/a70c0ced4be299a63d32fa96d9281d03e94041df",
 176 |                 "reference": "a70c0ced4be299a63d32fa96d9281d03e94041df",
 177 |                 "shasum": ""
 178 |             },
 179 |             "require": {
 180 |                 "php": "^5.6 || ^7.0"
 181 |             },
 182 |             "type": "library",
 183 |             "autoload": {
 184 |                 "classmap": [
 185 |                     "src/"
 186 |                 ]
 187 |             },
 188 |             "notification-url": "https://packagist.org/downloads/",
 189 |             "license": [
 190 |                 "BSD-3-Clause"
 191 |             ],
 192 |             "authors": [
 193 |                 {
 194 |                     "name": "Arne Blankerts",
 195 |                     "email": "arne@blankerts.de",
 196 |                     "role": "Developer"
 197 |                 },
 198 |                 {
 199 |                     "name": "Sebastian Heuer",
 200 |                     "email": "sebastian@phpeople.de",
 201 |                     "role": "Developer"
 202 |                 },
 203 |                 {
 204 |                     "name": "Sebastian Bergmann",
 205 |                     "email": "sebastian@phpunit.de",
 206 |                     "role": "Developer"
 207 |                 }
 208 |             ],
 209 |             "description": "Library for handling version information and constraints",
 210 |             "time": "2017-03-05 17:38:23"
 211 |         },
 212 |         {
 213 |             "name": "phpdocumentor/reflection-common",
 214 |             "version": "1.0.1",
 215 |             "source": {
 216 |                 "type": "git",
 217 |                 "url": "https://github.com/phpDocumentor/ReflectionCommon.git",
 218 |                 "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6"
 219 |             },
 220 |             "dist": {
 221 |                 "type": "zip",
 222 |                 "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6",
 223 |                 "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6",
 224 |                 "shasum": ""
 225 |             },
 226 |             "require": {
 227 |                 "php": ">=5.5"
 228 |             },
 229 |             "require-dev": {
 230 |                 "phpunit/phpunit": "^4.6"
 231 |             },
 232 |             "type": "library",
 233 |             "extra": {
 234 |                 "branch-alias": {
 235 |                     "dev-master": "1.0.x-dev"
 236 |                 }
 237 |             },
 238 |             "autoload": {
 239 |                 "psr-4": {
 240 |                     "phpDocumentor\\Reflection\\": [
 241 |                         "src"
 242 |                     ]
 243 |                 }
 244 |             },
 245 |             "notification-url": "https://packagist.org/downloads/",
 246 |             "license": [
 247 |                 "MIT"
 248 |             ],
 249 |             "authors": [
 250 |                 {
 251 |                     "name": "Jaap van Otterdijk",
 252 |                     "email": "opensource@ijaap.nl"
 253 |                 }
 254 |             ],
 255 |             "description": "Common reflection classes used by phpdocumentor to reflect the code structure",
 256 |             "homepage": "http://www.phpdoc.org",
 257 |             "keywords": [
 258 |                 "FQSEN",
 259 |                 "phpDocumentor",
 260 |                 "phpdoc",
 261 |                 "reflection",
 262 |                 "static analysis"
 263 |             ],
 264 |             "time": "2017-09-11 18:02:19"
 265 |         },
 266 |         {
 267 |             "name": "phpdocumentor/reflection-docblock",
 268 |             "version": "4.2.0",
 269 |             "source": {
 270 |                 "type": "git",
 271 |                 "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
 272 |                 "reference": "66465776cfc249844bde6d117abff1d22e06c2da"
 273 |             },
 274 |             "dist": {
 275 |                 "type": "zip",
 276 |                 "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/66465776cfc249844bde6d117abff1d22e06c2da",
 277 |                 "reference": "66465776cfc249844bde6d117abff1d22e06c2da",
 278 |                 "shasum": ""
 279 |             },
 280 |             "require": {
 281 |                 "php": "^7.0",
 282 |                 "phpdocumentor/reflection-common": "^1.0.0",
 283 |                 "phpdocumentor/type-resolver": "^0.4.0",
 284 |                 "webmozart/assert": "^1.0"
 285 |             },
 286 |             "require-dev": {
 287 |                 "doctrine/instantiator": "~1.0.5",
 288 |                 "mockery/mockery": "^1.0",
 289 |                 "phpunit/phpunit": "^6.4"
 290 |             },
 291 |             "type": "library",
 292 |             "extra": {
 293 |                 "branch-alias": {
 294 |                     "dev-master": "4.x-dev"
 295 |                 }
 296 |             },
 297 |             "autoload": {
 298 |                 "psr-4": {
 299 |                     "phpDocumentor\\Reflection\\": [
 300 |                         "src/"
 301 |                     ]
 302 |                 }
 303 |             },
 304 |             "notification-url": "https://packagist.org/downloads/",
 305 |             "license": [
 306 |                 "MIT"
 307 |             ],
 308 |             "authors": [
 309 |                 {
 310 |                     "name": "Mike van Riel",
 311 |                     "email": "me@mikevanriel.com"
 312 |                 }
 313 |             ],
 314 |             "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
 315 |             "time": "2017-11-27 17:38:31"
 316 |         },
 317 |         {
 318 |             "name": "phpdocumentor/type-resolver",
 319 |             "version": "0.4.0",
 320 |             "source": {
 321 |                 "type": "git",
 322 |                 "url": "https://github.com/phpDocumentor/TypeResolver.git",
 323 |                 "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7"
 324 |             },
 325 |             "dist": {
 326 |                 "type": "zip",
 327 |                 "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/9c977708995954784726e25d0cd1dddf4e65b0f7",
 328 |                 "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7",
 329 |                 "shasum": ""
 330 |             },
 331 |             "require": {
 332 |                 "php": "^5.5 || ^7.0",
 333 |                 "phpdocumentor/reflection-common": "^1.0"
 334 |             },
 335 |             "require-dev": {
 336 |                 "mockery/mockery": "^0.9.4",
 337 |                 "phpunit/phpunit": "^5.2||^4.8.24"
 338 |             },
 339 |             "type": "library",
 340 |             "extra": {
 341 |                 "branch-alias": {
 342 |                     "dev-master": "1.0.x-dev"
 343 |                 }
 344 |             },
 345 |             "autoload": {
 346 |                 "psr-4": {
 347 |                     "phpDocumentor\\Reflection\\": [
 348 |                         "src/"
 349 |                     ]
 350 |                 }
 351 |             },
 352 |             "notification-url": "https://packagist.org/downloads/",
 353 |             "license": [
 354 |                 "MIT"
 355 |             ],
 356 |             "authors": [
 357 |                 {
 358 |                     "name": "Mike van Riel",
 359 |                     "email": "me@mikevanriel.com"
 360 |                 }
 361 |             ],
 362 |             "time": "2017-07-14 14:27:02"
 363 |         },
 364 |         {
 365 |             "name": "phpspec/prophecy",
 366 |             "version": "1.7.3",
 367 |             "source": {
 368 |                 "type": "git",
 369 |                 "url": "https://github.com/phpspec/prophecy.git",
 370 |                 "reference": "e4ed002c67da8eceb0eb8ddb8b3847bb53c5c2bf"
 371 |             },
 372 |             "dist": {
 373 |                 "type": "zip",
 374 |                 "url": "https://api.github.com/repos/phpspec/prophecy/zipball/e4ed002c67da8eceb0eb8ddb8b3847bb53c5c2bf",
 375 |                 "reference": "e4ed002c67da8eceb0eb8ddb8b3847bb53c5c2bf",
 376 |                 "shasum": ""
 377 |             },
 378 |             "require": {
 379 |                 "doctrine/instantiator": "^1.0.2",
 380 |                 "php": "^5.3|^7.0",
 381 |                 "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0",
 382 |                 "sebastian/comparator": "^1.1|^2.0",
 383 |                 "sebastian/recursion-context": "^1.0|^2.0|^3.0"
 384 |             },
 385 |             "require-dev": {
 386 |                 "phpspec/phpspec": "^2.5|^3.2",
 387 |                 "phpunit/phpunit": "^4.8.35 || ^5.7"
 388 |             },
 389 |             "type": "library",
 390 |             "extra": {
 391 |                 "branch-alias": {
 392 |                     "dev-master": "1.7.x-dev"
 393 |                 }
 394 |             },
 395 |             "autoload": {
 396 |                 "psr-0": {
 397 |                     "Prophecy\\": "src/"
 398 |                 }
 399 |             },
 400 |             "notification-url": "https://packagist.org/downloads/",
 401 |             "license": [
 402 |                 "MIT"
 403 |             ],
 404 |             "authors": [
 405 |                 {
 406 |                     "name": "Konstantin Kudryashov",
 407 |                     "email": "ever.zet@gmail.com",
 408 |                     "homepage": "http://everzet.com"
 409 |                 },
 410 |                 {
 411 |                     "name": "Marcello Duarte",
 412 |                     "email": "marcello.duarte@gmail.com"
 413 |                 }
 414 |             ],
 415 |             "description": "Highly opinionated mocking framework for PHP 5.3+",
 416 |             "homepage": "https://github.com/phpspec/prophecy",
 417 |             "keywords": [
 418 |                 "Double",
 419 |                 "Dummy",
 420 |                 "fake",
 421 |                 "mock",
 422 |                 "spy",
 423 |                 "stub"
 424 |             ],
 425 |             "time": "2017-11-24 13:59:53"
 426 |         },
 427 |         {
 428 |             "name": "phpunit/php-code-coverage",
 429 |             "version": "5.2.4",
 430 |             "source": {
 431 |                 "type": "git",
 432 |                 "url": "https://github.com/sebastianbergmann/php-code-coverage.git",
 433 |                 "reference": "033ec97498cf530cc1be4199264cad568b19be26"
 434 |             },
 435 |             "dist": {
 436 |                 "type": "zip",
 437 |                 "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/033ec97498cf530cc1be4199264cad568b19be26",
 438 |                 "reference": "033ec97498cf530cc1be4199264cad568b19be26",
 439 |                 "shasum": ""
 440 |             },
 441 |             "require": {
 442 |                 "ext-dom": "*",
 443 |                 "ext-xmlwriter": "*",
 444 |                 "php": "^7.0",
 445 |                 "phpunit/php-file-iterator": "^1.4.2",
 446 |                 "phpunit/php-text-template": "^1.2.1",
 447 |                 "phpunit/php-token-stream": "^2.0.1",
 448 |                 "sebastian/code-unit-reverse-lookup": "^1.0.1",
 449 |                 "sebastian/environment": "^3.0",
 450 |                 "sebastian/version": "^2.0.1",
 451 |                 "theseer/tokenizer": "^1.1"
 452 |             },
 453 |             "require-dev": {
 454 |                 "ext-xdebug": "^2.5",
 455 |                 "phpunit/phpunit": "^6.0"
 456 |             },
 457 |             "suggest": {
 458 |                 "ext-xdebug": "^2.5.5"
 459 |             },
 460 |             "type": "library",
 461 |             "extra": {
 462 |                 "branch-alias": {
 463 |                     "dev-master": "5.2.x-dev"
 464 |                 }
 465 |             },
 466 |             "autoload": {
 467 |                 "classmap": [
 468 |                     "src/"
 469 |                 ]
 470 |             },
 471 |             "notification-url": "https://packagist.org/downloads/",
 472 |             "license": [
 473 |                 "BSD-3-Clause"
 474 |             ],
 475 |             "authors": [
 476 |                 {
 477 |                     "name": "Sebastian Bergmann",
 478 |                     "email": "sb@sebastian-bergmann.de",
 479 |                     "role": "lead"
 480 |                 }
 481 |             ],
 482 |             "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.",
 483 |             "homepage": "https://github.com/sebastianbergmann/php-code-coverage",
 484 |             "keywords": [
 485 |                 "coverage",
 486 |                 "testing",
 487 |                 "xunit"
 488 |             ],
 489 |             "time": "2017-11-27 09:00:30"
 490 |         },
 491 |         {
 492 |             "name": "phpunit/php-file-iterator",
 493 |             "version": "1.4.5",
 494 |             "source": {
 495 |                 "type": "git",
 496 |                 "url": "https://github.com/sebastianbergmann/php-file-iterator.git",
 497 |                 "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4"
 498 |             },
 499 |             "dist": {
 500 |                 "type": "zip",
 501 |                 "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/730b01bc3e867237eaac355e06a36b85dd93a8b4",
 502 |                 "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4",
 503 |                 "shasum": ""
 504 |             },
 505 |             "require": {
 506 |                 "php": ">=5.3.3"
 507 |             },
 508 |             "type": "library",
 509 |             "extra": {
 510 |                 "branch-alias": {
 511 |                     "dev-master": "1.4.x-dev"
 512 |                 }
 513 |             },
 514 |             "autoload": {
 515 |                 "classmap": [
 516 |                     "src/"
 517 |                 ]
 518 |             },
 519 |             "notification-url": "https://packagist.org/downloads/",
 520 |             "license": [
 521 |                 "BSD-3-Clause"
 522 |             ],
 523 |             "authors": [
 524 |                 {
 525 |                     "name": "Sebastian Bergmann",
 526 |                     "email": "sb@sebastian-bergmann.de",
 527 |                     "role": "lead"
 528 |                 }
 529 |             ],
 530 |             "description": "FilterIterator implementation that filters files based on a list of suffixes.",
 531 |             "homepage": "https://github.com/sebastianbergmann/php-file-iterator/",
 532 |             "keywords": [
 533 |                 "filesystem",
 534 |                 "iterator"
 535 |             ],
 536 |             "time": "2017-11-27 13:52:08"
 537 |         },
 538 |         {
 539 |             "name": "phpunit/php-text-template",
 540 |             "version": "1.2.1",
 541 |             "source": {
 542 |                 "type": "git",
 543 |                 "url": "https://github.com/sebastianbergmann/php-text-template.git",
 544 |                 "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686"
 545 |             },
 546 |             "dist": {
 547 |                 "type": "zip",
 548 |                 "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
 549 |                 "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
 550 |                 "shasum": ""
 551 |             },
 552 |             "require": {
 553 |                 "php": ">=5.3.3"
 554 |             },
 555 |             "type": "library",
 556 |             "autoload": {
 557 |                 "classmap": [
 558 |                     "src/"
 559 |                 ]
 560 |             },
 561 |             "notification-url": "https://packagist.org/downloads/",
 562 |             "license": [
 563 |                 "BSD-3-Clause"
 564 |             ],
 565 |             "authors": [
 566 |                 {
 567 |                     "name": "Sebastian Bergmann",
 568 |                     "email": "sebastian@phpunit.de",
 569 |                     "role": "lead"
 570 |                 }
 571 |             ],
 572 |             "description": "Simple template engine.",
 573 |             "homepage": "https://github.com/sebastianbergmann/php-text-template/",
 574 |             "keywords": [
 575 |                 "template"
 576 |             ],
 577 |             "time": "2015-06-21 13:50:34"
 578 |         },
 579 |         {
 580 |             "name": "phpunit/php-timer",
 581 |             "version": "1.0.9",
 582 |             "source": {
 583 |                 "type": "git",
 584 |                 "url": "https://github.com/sebastianbergmann/php-timer.git",
 585 |                 "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f"
 586 |             },
 587 |             "dist": {
 588 |                 "type": "zip",
 589 |                 "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3dcf38ca72b158baf0bc245e9184d3fdffa9c46f",
 590 |                 "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f",
 591 |                 "shasum": ""
 592 |             },
 593 |             "require": {
 594 |                 "php": "^5.3.3 || ^7.0"
 595 |             },
 596 |             "require-dev": {
 597 |                 "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
 598 |             },
 599 |             "type": "library",
 600 |             "extra": {
 601 |                 "branch-alias": {
 602 |                     "dev-master": "1.0-dev"
 603 |                 }
 604 |             },
 605 |             "autoload": {
 606 |                 "classmap": [
 607 |                     "src/"
 608 |                 ]
 609 |             },
 610 |             "notification-url": "https://packagist.org/downloads/",
 611 |             "license": [
 612 |                 "BSD-3-Clause"
 613 |             ],
 614 |             "authors": [
 615 |                 {
 616 |                     "name": "Sebastian Bergmann",
 617 |                     "email": "sb@sebastian-bergmann.de",
 618 |                     "role": "lead"
 619 |                 }
 620 |             ],
 621 |             "description": "Utility class for timing",
 622 |             "homepage": "https://github.com/sebastianbergmann/php-timer/",
 623 |             "keywords": [
 624 |                 "timer"
 625 |             ],
 626 |             "time": "2017-02-26 11:10:40"
 627 |         },
 628 |         {
 629 |             "name": "phpunit/php-token-stream",
 630 |             "version": "2.0.2",
 631 |             "source": {
 632 |                 "type": "git",
 633 |                 "url": "https://github.com/sebastianbergmann/php-token-stream.git",
 634 |                 "reference": "791198a2c6254db10131eecfe8c06670700904db"
 635 |             },
 636 |             "dist": {
 637 |                 "type": "zip",
 638 |                 "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/791198a2c6254db10131eecfe8c06670700904db",
 639 |                 "reference": "791198a2c6254db10131eecfe8c06670700904db",
 640 |                 "shasum": ""
 641 |             },
 642 |             "require": {
 643 |                 "ext-tokenizer": "*",
 644 |                 "php": "^7.0"
 645 |             },
 646 |             "require-dev": {
 647 |                 "phpunit/phpunit": "^6.2.4"
 648 |             },
 649 |             "type": "library",
 650 |             "extra": {
 651 |                 "branch-alias": {
 652 |                     "dev-master": "2.0-dev"
 653 |                 }
 654 |             },
 655 |             "autoload": {
 656 |                 "classmap": [
 657 |                     "src/"
 658 |                 ]
 659 |             },
 660 |             "notification-url": "https://packagist.org/downloads/",
 661 |             "license": [
 662 |                 "BSD-3-Clause"
 663 |             ],
 664 |             "authors": [
 665 |                 {
 666 |                     "name": "Sebastian Bergmann",
 667 |                     "email": "sebastian@phpunit.de"
 668 |                 }
 669 |             ],
 670 |             "description": "Wrapper around PHP's tokenizer extension.",
 671 |             "homepage": "https://github.com/sebastianbergmann/php-token-stream/",
 672 |             "keywords": [
 673 |                 "tokenizer"
 674 |             ],
 675 |             "time": "2017-11-27 05:48:46"
 676 |         },
 677 |         {
 678 |             "name": "phpunit/phpunit",
 679 |             "version": "6.4.4",
 680 |             "source": {
 681 |                 "type": "git",
 682 |                 "url": "https://github.com/sebastianbergmann/phpunit.git",
 683 |                 "reference": "562f7dc75d46510a4ed5d16189ae57fbe45a9932"
 684 |             },
 685 |             "dist": {
 686 |                 "type": "zip",
 687 |                 "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/562f7dc75d46510a4ed5d16189ae57fbe45a9932",
 688 |                 "reference": "562f7dc75d46510a4ed5d16189ae57fbe45a9932",
 689 |                 "shasum": ""
 690 |             },
 691 |             "require": {
 692 |                 "ext-dom": "*",
 693 |                 "ext-json": "*",
 694 |                 "ext-libxml": "*",
 695 |                 "ext-mbstring": "*",
 696 |                 "ext-xml": "*",
 697 |                 "myclabs/deep-copy": "^1.6.1",
 698 |                 "phar-io/manifest": "^1.0.1",
 699 |                 "phar-io/version": "^1.0",
 700 |                 "php": "^7.0",
 701 |                 "phpspec/prophecy": "^1.7",
 702 |                 "phpunit/php-code-coverage": "^5.2.2",
 703 |                 "phpunit/php-file-iterator": "^1.4.2",
 704 |                 "phpunit/php-text-template": "^1.2.1",
 705 |                 "phpunit/php-timer": "^1.0.9",
 706 |                 "phpunit/phpunit-mock-objects": "^4.0.3",
 707 |                 "sebastian/comparator": "^2.0.2",
 708 |                 "sebastian/diff": "^2.0",
 709 |                 "sebastian/environment": "^3.1",
 710 |                 "sebastian/exporter": "^3.1",
 711 |                 "sebastian/global-state": "^2.0",
 712 |                 "sebastian/object-enumerator": "^3.0.3",
 713 |                 "sebastian/resource-operations": "^1.0",
 714 |                 "sebastian/version": "^2.0.1"
 715 |             },
 716 |             "conflict": {
 717 |                 "phpdocumentor/reflection-docblock": "3.0.2",
 718 |                 "phpunit/dbunit": "<3.0"
 719 |             },
 720 |             "require-dev": {
 721 |                 "ext-pdo": "*"
 722 |             },
 723 |             "suggest": {
 724 |                 "ext-xdebug": "*",
 725 |                 "phpunit/php-invoker": "^1.1"
 726 |             },
 727 |             "bin": [
 728 |                 "phpunit"
 729 |             ],
 730 |             "type": "library",
 731 |             "extra": {
 732 |                 "branch-alias": {
 733 |                     "dev-master": "6.4.x-dev"
 734 |                 }
 735 |             },
 736 |             "autoload": {
 737 |                 "classmap": [
 738 |                     "src/"
 739 |                 ]
 740 |             },
 741 |             "notification-url": "https://packagist.org/downloads/",
 742 |             "license": [
 743 |                 "BSD-3-Clause"
 744 |             ],
 745 |             "authors": [
 746 |                 {
 747 |                     "name": "Sebastian Bergmann",
 748 |                     "email": "sebastian@phpunit.de",
 749 |                     "role": "lead"
 750 |                 }
 751 |             ],
 752 |             "description": "The PHP Unit Testing framework.",
 753 |             "homepage": "https://phpunit.de/",
 754 |             "keywords": [
 755 |                 "phpunit",
 756 |                 "testing",
 757 |                 "xunit"
 758 |             ],
 759 |             "time": "2017-11-08 11:26:09"
 760 |         },
 761 |         {
 762 |             "name": "phpunit/phpunit-mock-objects",
 763 |             "version": "4.0.4",
 764 |             "source": {
 765 |                 "type": "git",
 766 |                 "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git",
 767 |                 "reference": "2f789b59ab89669015ad984afa350c4ec577ade0"
 768 |             },
 769 |             "dist": {
 770 |                 "type": "zip",
 771 |                 "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/2f789b59ab89669015ad984afa350c4ec577ade0",
 772 |                 "reference": "2f789b59ab89669015ad984afa350c4ec577ade0",
 773 |                 "shasum": ""
 774 |             },
 775 |             "require": {
 776 |                 "doctrine/instantiator": "^1.0.5",
 777 |                 "php": "^7.0",
 778 |                 "phpunit/php-text-template": "^1.2.1",
 779 |                 "sebastian/exporter": "^3.0"
 780 |             },
 781 |             "conflict": {
 782 |                 "phpunit/phpunit": "<6.0"
 783 |             },
 784 |             "require-dev": {
 785 |                 "phpunit/phpunit": "^6.0"
 786 |             },
 787 |             "suggest": {
 788 |                 "ext-soap": "*"
 789 |             },
 790 |             "type": "library",
 791 |             "extra": {
 792 |                 "branch-alias": {
 793 |                     "dev-master": "4.0.x-dev"
 794 |                 }
 795 |             },
 796 |             "autoload": {
 797 |                 "classmap": [
 798 |                     "src/"
 799 |                 ]
 800 |             },
 801 |             "notification-url": "https://packagist.org/downloads/",
 802 |             "license": [
 803 |                 "BSD-3-Clause"
 804 |             ],
 805 |             "authors": [
 806 |                 {
 807 |                     "name": "Sebastian Bergmann",
 808 |                     "email": "sb@sebastian-bergmann.de",
 809 |                     "role": "lead"
 810 |                 }
 811 |             ],
 812 |             "description": "Mock Object library for PHPUnit",
 813 |             "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/",
 814 |             "keywords": [
 815 |                 "mock",
 816 |                 "xunit"
 817 |             ],
 818 |             "time": "2017-08-03 14:08:16"
 819 |         },
 820 |         {
 821 |             "name": "sebastian/code-unit-reverse-lookup",
 822 |             "version": "1.0.1",
 823 |             "source": {
 824 |                 "type": "git",
 825 |                 "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git",
 826 |                 "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18"
 827 |             },
 828 |             "dist": {
 829 |                 "type": "zip",
 830 |                 "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/4419fcdb5eabb9caa61a27c7a1db532a6b55dd18",
 831 |                 "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18",
 832 |                 "shasum": ""
 833 |             },
 834 |             "require": {
 835 |                 "php": "^5.6 || ^7.0"
 836 |             },
 837 |             "require-dev": {
 838 |                 "phpunit/phpunit": "^5.7 || ^6.0"
 839 |             },
 840 |             "type": "library",
 841 |             "extra": {
 842 |                 "branch-alias": {
 843 |                     "dev-master": "1.0.x-dev"
 844 |                 }
 845 |             },
 846 |             "autoload": {
 847 |                 "classmap": [
 848 |                     "src/"
 849 |                 ]
 850 |             },
 851 |             "notification-url": "https://packagist.org/downloads/",
 852 |             "license": [
 853 |                 "BSD-3-Clause"
 854 |             ],
 855 |             "authors": [
 856 |                 {
 857 |                     "name": "Sebastian Bergmann",
 858 |                     "email": "sebastian@phpunit.de"
 859 |                 }
 860 |             ],
 861 |             "description": "Looks up which function or method a line of code belongs to",
 862 |             "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/",
 863 |             "time": "2017-03-04 06:30:41"
 864 |         },
 865 |         {
 866 |             "name": "sebastian/comparator",
 867 |             "version": "2.1.0",
 868 |             "source": {
 869 |                 "type": "git",
 870 |                 "url": "https://github.com/sebastianbergmann/comparator.git",
 871 |                 "reference": "1174d9018191e93cb9d719edec01257fc05f8158"
 872 |             },
 873 |             "dist": {
 874 |                 "type": "zip",
 875 |                 "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/1174d9018191e93cb9d719edec01257fc05f8158",
 876 |                 "reference": "1174d9018191e93cb9d719edec01257fc05f8158",
 877 |                 "shasum": ""
 878 |             },
 879 |             "require": {
 880 |                 "php": "^7.0",
 881 |                 "sebastian/diff": "^2.0",
 882 |                 "sebastian/exporter": "^3.1"
 883 |             },
 884 |             "require-dev": {
 885 |                 "phpunit/phpunit": "^6.4"
 886 |             },
 887 |             "type": "library",
 888 |             "extra": {
 889 |                 "branch-alias": {
 890 |                     "dev-master": "2.1.x-dev"
 891 |                 }
 892 |             },
 893 |             "autoload": {
 894 |                 "classmap": [
 895 |                     "src/"
 896 |                 ]
 897 |             },
 898 |             "notification-url": "https://packagist.org/downloads/",
 899 |             "license": [
 900 |                 "BSD-3-Clause"
 901 |             ],
 902 |             "authors": [
 903 |                 {
 904 |                     "name": "Jeff Welch",
 905 |                     "email": "whatthejeff@gmail.com"
 906 |                 },
 907 |                 {
 908 |                     "name": "Volker Dusch",
 909 |                     "email": "github@wallbash.com"
 910 |                 },
 911 |                 {
 912 |                     "name": "Bernhard Schussek",
 913 |                     "email": "bschussek@2bepublished.at"
 914 |                 },
 915 |                 {
 916 |                     "name": "Sebastian Bergmann",
 917 |                     "email": "sebastian@phpunit.de"
 918 |                 }
 919 |             ],
 920 |             "description": "Provides the functionality to compare PHP values for equality",
 921 |             "homepage": "https://github.com/sebastianbergmann/comparator",
 922 |             "keywords": [
 923 |                 "comparator",
 924 |                 "compare",
 925 |                 "equality"
 926 |             ],
 927 |             "time": "2017-11-03 07:16:52"
 928 |         },
 929 |         {
 930 |             "name": "sebastian/diff",
 931 |             "version": "2.0.1",
 932 |             "source": {
 933 |                 "type": "git",
 934 |                 "url": "https://github.com/sebastianbergmann/diff.git",
 935 |                 "reference": "347c1d8b49c5c3ee30c7040ea6fc446790e6bddd"
 936 |             },
 937 |             "dist": {
 938 |                 "type": "zip",
 939 |                 "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/347c1d8b49c5c3ee30c7040ea6fc446790e6bddd",
 940 |                 "reference": "347c1d8b49c5c3ee30c7040ea6fc446790e6bddd",
 941 |                 "shasum": ""
 942 |             },
 943 |             "require": {
 944 |                 "php": "^7.0"
 945 |             },
 946 |             "require-dev": {
 947 |                 "phpunit/phpunit": "^6.2"
 948 |             },
 949 |             "type": "library",
 950 |             "extra": {
 951 |                 "branch-alias": {
 952 |                     "dev-master": "2.0-dev"
 953 |                 }
 954 |             },
 955 |             "autoload": {
 956 |                 "classmap": [
 957 |                     "src/"
 958 |                 ]
 959 |             },
 960 |             "notification-url": "https://packagist.org/downloads/",
 961 |             "license": [
 962 |                 "BSD-3-Clause"
 963 |             ],
 964 |             "authors": [
 965 |                 {
 966 |                     "name": "Kore Nordmann",
 967 |                     "email": "mail@kore-nordmann.de"
 968 |                 },
 969 |                 {
 970 |                     "name": "Sebastian Bergmann",
 971 |                     "email": "sebastian@phpunit.de"
 972 |                 }
 973 |             ],
 974 |             "description": "Diff implementation",
 975 |             "homepage": "https://github.com/sebastianbergmann/diff",
 976 |             "keywords": [
 977 |                 "diff"
 978 |             ],
 979 |             "time": "2017-08-03 08:09:46"
 980 |         },
 981 |         {
 982 |             "name": "sebastian/environment",
 983 |             "version": "3.1.0",
 984 |             "source": {
 985 |                 "type": "git",
 986 |                 "url": "https://github.com/sebastianbergmann/environment.git",
 987 |                 "reference": "cd0871b3975fb7fc44d11314fd1ee20925fce4f5"
 988 |             },
 989 |             "dist": {
 990 |                 "type": "zip",
 991 |                 "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/cd0871b3975fb7fc44d11314fd1ee20925fce4f5",
 992 |                 "reference": "cd0871b3975fb7fc44d11314fd1ee20925fce4f5",
 993 |                 "shasum": ""
 994 |             },
 995 |             "require": {
 996 |                 "php": "^7.0"
 997 |             },
 998 |             "require-dev": {
 999 |                 "phpunit/phpunit": "^6.1"
1000 |             },
1001 |             "type": "library",
1002 |             "extra": {
1003 |                 "branch-alias": {
1004 |                     "dev-master": "3.1.x-dev"
1005 |                 }
1006 |             },
1007 |             "autoload": {
1008 |                 "classmap": [
1009 |                     "src/"
1010 |                 ]
1011 |             },
1012 |             "notification-url": "https://packagist.org/downloads/",
1013 |             "license": [
1014 |                 "BSD-3-Clause"
1015 |             ],
1016 |             "authors": [
1017 |                 {
1018 |                     "name": "Sebastian Bergmann",
1019 |                     "email": "sebastian@phpunit.de"
1020 |                 }
1021 |             ],
1022 |             "description": "Provides functionality to handle HHVM/PHP environments",
1023 |             "homepage": "http://www.github.com/sebastianbergmann/environment",
1024 |             "keywords": [
1025 |                 "Xdebug",
1026 |                 "environment",
1027 |                 "hhvm"
1028 |             ],
1029 |             "time": "2017-07-01 08:51:00"
1030 |         },
1031 |         {
1032 |             "name": "sebastian/exporter",
1033 |             "version": "3.1.0",
1034 |             "source": {
1035 |                 "type": "git",
1036 |                 "url": "https://github.com/sebastianbergmann/exporter.git",
1037 |                 "reference": "234199f4528de6d12aaa58b612e98f7d36adb937"
1038 |             },
1039 |             "dist": {
1040 |                 "type": "zip",
1041 |                 "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/234199f4528de6d12aaa58b612e98f7d36adb937",
1042 |                 "reference": "234199f4528de6d12aaa58b612e98f7d36adb937",
1043 |                 "shasum": ""
1044 |             },
1045 |             "require": {
1046 |                 "php": "^7.0",
1047 |                 "sebastian/recursion-context": "^3.0"
1048 |             },
1049 |             "require-dev": {
1050 |                 "ext-mbstring": "*",
1051 |                 "phpunit/phpunit": "^6.0"
1052 |             },
1053 |             "type": "library",
1054 |             "extra": {
1055 |                 "branch-alias": {
1056 |                     "dev-master": "3.1.x-dev"
1057 |                 }
1058 |             },
1059 |             "autoload": {
1060 |                 "classmap": [
1061 |                     "src/"
1062 |                 ]
1063 |             },
1064 |             "notification-url": "https://packagist.org/downloads/",
1065 |             "license": [
1066 |                 "BSD-3-Clause"
1067 |             ],
1068 |             "authors": [
1069 |                 {
1070 |                     "name": "Jeff Welch",
1071 |                     "email": "whatthejeff@gmail.com"
1072 |                 },
1073 |                 {
1074 |                     "name": "Volker Dusch",
1075 |                     "email": "github@wallbash.com"
1076 |                 },
1077 |                 {
1078 |                     "name": "Bernhard Schussek",
1079 |                     "email": "bschussek@2bepublished.at"
1080 |                 },
1081 |                 {
1082 |                     "name": "Sebastian Bergmann",
1083 |                     "email": "sebastian@phpunit.de"
1084 |                 },
1085 |                 {
1086 |                     "name": "Adam Harvey",
1087 |                     "email": "aharvey@php.net"
1088 |                 }
1089 |             ],
1090 |             "description": "Provides the functionality to export PHP variables for visualization",
1091 |             "homepage": "http://www.github.com/sebastianbergmann/exporter",
1092 |             "keywords": [
1093 |                 "export",
1094 |                 "exporter"
1095 |             ],
1096 |             "time": "2017-04-03 13:19:02"
1097 |         },
1098 |         {
1099 |             "name": "sebastian/global-state",
1100 |             "version": "2.0.0",
1101 |             "source": {
1102 |                 "type": "git",
1103 |                 "url": "https://github.com/sebastianbergmann/global-state.git",
1104 |                 "reference": "e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4"
1105 |             },
1106 |             "dist": {
1107 |                 "type": "zip",
1108 |                 "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4",
1109 |                 "reference": "e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4",
1110 |                 "shasum": ""
1111 |             },
1112 |             "require": {
1113 |                 "php": "^7.0"
1114 |             },
1115 |             "require-dev": {
1116 |                 "phpunit/phpunit": "^6.0"
1117 |             },
1118 |             "suggest": {
1119 |                 "ext-uopz": "*"
1120 |             },
1121 |             "type": "library",
1122 |             "extra": {
1123 |                 "branch-alias": {
1124 |                     "dev-master": "2.0-dev"
1125 |                 }
1126 |             },
1127 |             "autoload": {
1128 |                 "classmap": [
1129 |                     "src/"
1130 |                 ]
1131 |             },
1132 |             "notification-url": "https://packagist.org/downloads/",
1133 |             "license": [
1134 |                 "BSD-3-Clause"
1135 |             ],
1136 |             "authors": [
1137 |                 {
1138 |                     "name": "Sebastian Bergmann",
1139 |                     "email": "sebastian@phpunit.de"
1140 |                 }
1141 |             ],
1142 |             "description": "Snapshotting of global state",
1143 |             "homepage": "http://www.github.com/sebastianbergmann/global-state",
1144 |             "keywords": [
1145 |                 "global state"
1146 |             ],
1147 |             "time": "2017-04-27 15:39:26"
1148 |         },
1149 |         {
1150 |             "name": "sebastian/object-enumerator",
1151 |             "version": "3.0.3",
1152 |             "source": {
1153 |                 "type": "git",
1154 |                 "url": "https://github.com/sebastianbergmann/object-enumerator.git",
1155 |                 "reference": "7cfd9e65d11ffb5af41198476395774d4c8a84c5"
1156 |             },
1157 |             "dist": {
1158 |                 "type": "zip",
1159 |                 "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/7cfd9e65d11ffb5af41198476395774d4c8a84c5",
1160 |                 "reference": "7cfd9e65d11ffb5af41198476395774d4c8a84c5",
1161 |                 "shasum": ""
1162 |             },
1163 |             "require": {
1164 |                 "php": "^7.0",
1165 |                 "sebastian/object-reflector": "^1.1.1",
1166 |                 "sebastian/recursion-context": "^3.0"
1167 |             },
1168 |             "require-dev": {
1169 |                 "phpunit/phpunit": "^6.0"
1170 |             },
1171 |             "type": "library",
1172 |             "extra": {
1173 |                 "branch-alias": {
1174 |                     "dev-master": "3.0.x-dev"
1175 |                 }
1176 |             },
1177 |             "autoload": {
1178 |                 "classmap": [
1179 |                     "src/"
1180 |                 ]
1181 |             },
1182 |             "notification-url": "https://packagist.org/downloads/",
1183 |             "license": [
1184 |                 "BSD-3-Clause"
1185 |             ],
1186 |             "authors": [
1187 |                 {
1188 |                     "name": "Sebastian Bergmann",
1189 |                     "email": "sebastian@phpunit.de"
1190 |                 }
1191 |             ],
1192 |             "description": "Traverses array structures and object graphs to enumerate all referenced objects",
1193 |             "homepage": "https://github.com/sebastianbergmann/object-enumerator/",
1194 |             "time": "2017-08-03 12:35:26"
1195 |         },
1196 |         {
1197 |             "name": "sebastian/object-reflector",
1198 |             "version": "1.1.1",
1199 |             "source": {
1200 |                 "type": "git",
1201 |                 "url": "https://github.com/sebastianbergmann/object-reflector.git",
1202 |                 "reference": "773f97c67f28de00d397be301821b06708fca0be"
1203 |             },
1204 |             "dist": {
1205 |                 "type": "zip",
1206 |                 "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/773f97c67f28de00d397be301821b06708fca0be",
1207 |                 "reference": "773f97c67f28de00d397be301821b06708fca0be",
1208 |                 "shasum": ""
1209 |             },
1210 |             "require": {
1211 |                 "php": "^7.0"
1212 |             },
1213 |             "require-dev": {
1214 |                 "phpunit/phpunit": "^6.0"
1215 |             },
1216 |             "type": "library",
1217 |             "extra": {
1218 |                 "branch-alias": {
1219 |                     "dev-master": "1.1-dev"
1220 |                 }
1221 |             },
1222 |             "autoload": {
1223 |                 "classmap": [
1224 |                     "src/"
1225 |                 ]
1226 |             },
1227 |             "notification-url": "https://packagist.org/downloads/",
1228 |             "license": [
1229 |                 "BSD-3-Clause"
1230 |             ],
1231 |             "authors": [
1232 |                 {
1233 |                     "name": "Sebastian Bergmann",
1234 |                     "email": "sebastian@phpunit.de"
1235 |                 }
1236 |             ],
1237 |             "description": "Allows reflection of object attributes, including inherited and non-public ones",
1238 |             "homepage": "https://github.com/sebastianbergmann/object-reflector/",
1239 |             "time": "2017-03-29 09:07:27"
1240 |         },
1241 |         {
1242 |             "name": "sebastian/recursion-context",
1243 |             "version": "3.0.0",
1244 |             "source": {
1245 |                 "type": "git",
1246 |                 "url": "https://github.com/sebastianbergmann/recursion-context.git",
1247 |                 "reference": "5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8"
1248 |             },
1249 |             "dist": {
1250 |                 "type": "zip",
1251 |                 "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8",
1252 |                 "reference": "5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8",
1253 |                 "shasum": ""
1254 |             },
1255 |             "require": {
1256 |                 "php": "^7.0"
1257 |             },
1258 |             "require-dev": {
1259 |                 "phpunit/phpunit": "^6.0"
1260 |             },
1261 |             "type": "library",
1262 |             "extra": {
1263 |                 "branch-alias": {
1264 |                     "dev-master": "3.0.x-dev"
1265 |                 }
1266 |             },
1267 |             "autoload": {
1268 |                 "classmap": [
1269 |                     "src/"
1270 |                 ]
1271 |             },
1272 |             "notification-url": "https://packagist.org/downloads/",
1273 |             "license": [
1274 |                 "BSD-3-Clause"
1275 |             ],
1276 |             "authors": [
1277 |                 {
1278 |                     "name": "Jeff Welch",
1279 |                     "email": "whatthejeff@gmail.com"
1280 |                 },
1281 |                 {
1282 |                     "name": "Sebastian Bergmann",
1283 |                     "email": "sebastian@phpunit.de"
1284 |                 },
1285 |                 {
1286 |                     "name": "Adam Harvey",
1287 |                     "email": "aharvey@php.net"
1288 |                 }
1289 |             ],
1290 |             "description": "Provides functionality to recursively process PHP variables",
1291 |             "homepage": "http://www.github.com/sebastianbergmann/recursion-context",
1292 |             "time": "2017-03-03 06:23:57"
1293 |         },
1294 |         {
1295 |             "name": "sebastian/resource-operations",
1296 |             "version": "1.0.0",
1297 |             "source": {
1298 |                 "type": "git",
1299 |                 "url": "https://github.com/sebastianbergmann/resource-operations.git",
1300 |                 "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52"
1301 |             },
1302 |             "dist": {
1303 |                 "type": "zip",
1304 |                 "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/ce990bb21759f94aeafd30209e8cfcdfa8bc3f52",
1305 |                 "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52",
1306 |                 "shasum": ""
1307 |             },
1308 |             "require": {
1309 |                 "php": ">=5.6.0"
1310 |             },
1311 |             "type": "library",
1312 |             "extra": {
1313 |                 "branch-alias": {
1314 |                     "dev-master": "1.0.x-dev"
1315 |                 }
1316 |             },
1317 |             "autoload": {
1318 |                 "classmap": [
1319 |                     "src/"
1320 |                 ]
1321 |             },
1322 |             "notification-url": "https://packagist.org/downloads/",
1323 |             "license": [
1324 |                 "BSD-3-Clause"
1325 |             ],
1326 |             "authors": [
1327 |                 {
1328 |                     "name": "Sebastian Bergmann",
1329 |                     "email": "sebastian@phpunit.de"
1330 |                 }
1331 |             ],
1332 |             "description": "Provides a list of PHP built-in functions that operate on resources",
1333 |             "homepage": "https://www.github.com/sebastianbergmann/resource-operations",
1334 |             "time": "2015-07-28 20:34:47"
1335 |         },
1336 |         {
1337 |             "name": "sebastian/version",
1338 |             "version": "2.0.1",
1339 |             "source": {
1340 |                 "type": "git",
1341 |                 "url": "https://github.com/sebastianbergmann/version.git",
1342 |                 "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019"
1343 |             },
1344 |             "dist": {
1345 |                 "type": "zip",
1346 |                 "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019",
1347 |                 "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019",
1348 |                 "shasum": ""
1349 |             },
1350 |             "require": {
1351 |                 "php": ">=5.6"
1352 |             },
1353 |             "type": "library",
1354 |             "extra": {
1355 |                 "branch-alias": {
1356 |                     "dev-master": "2.0.x-dev"
1357 |                 }
1358 |             },
1359 |             "autoload": {
1360 |                 "classmap": [
1361 |                     "src/"
1362 |                 ]
1363 |             },
1364 |             "notification-url": "https://packagist.org/downloads/",
1365 |             "license": [
1366 |                 "BSD-3-Clause"
1367 |             ],
1368 |             "authors": [
1369 |                 {
1370 |                     "name": "Sebastian Bergmann",
1371 |                     "email": "sebastian@phpunit.de",
1372 |                     "role": "lead"
1373 |                 }
1374 |             ],
1375 |             "description": "Library that helps with managing the version number of Git-hosted PHP projects",
1376 |             "homepage": "https://github.com/sebastianbergmann/version",
1377 |             "time": "2016-10-03 07:35:21"
1378 |         },
1379 |         {
1380 |             "name": "squizlabs/php_codesniffer",
1381 |             "version": "3.1.1",
1382 |             "source": {
1383 |                 "type": "git",
1384 |                 "url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
1385 |                 "reference": "d667e245d5dcd4d7bf80f26f2c947d476b66213e"
1386 |             },
1387 |             "dist": {
1388 |                 "type": "zip",
1389 |                 "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/d667e245d5dcd4d7bf80f26f2c947d476b66213e",
1390 |                 "reference": "d667e245d5dcd4d7bf80f26f2c947d476b66213e",
1391 |                 "shasum": ""
1392 |             },
1393 |             "require": {
1394 |                 "ext-simplexml": "*",
1395 |                 "ext-tokenizer": "*",
1396 |                 "ext-xmlwriter": "*",
1397 |                 "php": ">=5.4.0"
1398 |             },
1399 |             "require-dev": {
1400 |                 "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0"
1401 |             },
1402 |             "bin": [
1403 |                 "bin/phpcs",
1404 |                 "bin/phpcbf"
1405 |             ],
1406 |             "type": "library",
1407 |             "extra": {
1408 |                 "branch-alias": {
1409 |                     "dev-master": "3.x-dev"
1410 |                 }
1411 |             },
1412 |             "notification-url": "https://packagist.org/downloads/",
1413 |             "license": [
1414 |                 "BSD-3-Clause"
1415 |             ],
1416 |             "authors": [
1417 |                 {
1418 |                     "name": "Greg Sherwood",
1419 |                     "role": "lead"
1420 |                 }
1421 |             ],
1422 |             "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
1423 |             "homepage": "http://www.squizlabs.com/php-codesniffer",
1424 |             "keywords": [
1425 |                 "phpcs",
1426 |                 "standards"
1427 |             ],
1428 |             "time": "2017-10-16 22:40:25"
1429 |         },
1430 |         {
1431 |             "name": "theseer/tokenizer",
1432 |             "version": "1.1.0",
1433 |             "source": {
1434 |                 "type": "git",
1435 |                 "url": "https://github.com/theseer/tokenizer.git",
1436 |                 "reference": "cb2f008f3f05af2893a87208fe6a6c4985483f8b"
1437 |             },
1438 |             "dist": {
1439 |                 "type": "zip",
1440 |                 "url": "https://api.github.com/repos/theseer/tokenizer/zipball/cb2f008f3f05af2893a87208fe6a6c4985483f8b",
1441 |                 "reference": "cb2f008f3f05af2893a87208fe6a6c4985483f8b",
1442 |                 "shasum": ""
1443 |             },
1444 |             "require": {
1445 |                 "ext-dom": "*",
1446 |                 "ext-tokenizer": "*",
1447 |                 "ext-xmlwriter": "*",
1448 |                 "php": "^7.0"
1449 |             },
1450 |             "type": "library",
1451 |             "autoload": {
1452 |                 "classmap": [
1453 |                     "src/"
1454 |                 ]
1455 |             },
1456 |             "notification-url": "https://packagist.org/downloads/",
1457 |             "license": [
1458 |                 "BSD-3-Clause"
1459 |             ],
1460 |             "authors": [
1461 |                 {
1462 |                     "name": "Arne Blankerts",
1463 |                     "email": "arne@blankerts.de",
1464 |                     "role": "Developer"
1465 |                 }
1466 |             ],
1467 |             "description": "A small library for converting tokenized PHP source code into XML and potentially other formats",
1468 |             "time": "2017-04-07 12:08:54"
1469 |         },
1470 |         {
1471 |             "name": "webmozart/assert",
1472 |             "version": "1.2.0",
1473 |             "source": {
1474 |                 "type": "git",
1475 |                 "url": "https://github.com/webmozart/assert.git",
1476 |                 "reference": "2db61e59ff05fe5126d152bd0655c9ea113e550f"
1477 |             },
1478 |             "dist": {
1479 |                 "type": "zip",
1480 |                 "url": "https://api.github.com/repos/webmozart/assert/zipball/2db61e59ff05fe5126d152bd0655c9ea113e550f",
1481 |                 "reference": "2db61e59ff05fe5126d152bd0655c9ea113e550f",
1482 |                 "shasum": ""
1483 |             },
1484 |             "require": {
1485 |                 "php": "^5.3.3 || ^7.0"
1486 |             },
1487 |             "require-dev": {
1488 |                 "phpunit/phpunit": "^4.6",
1489 |                 "sebastian/version": "^1.0.1"
1490 |             },
1491 |             "type": "library",
1492 |             "extra": {
1493 |                 "branch-alias": {
1494 |                     "dev-master": "1.3-dev"
1495 |                 }
1496 |             },
1497 |             "autoload": {
1498 |                 "psr-4": {
1499 |                     "Webmozart\\Assert\\": "src/"
1500 |                 }
1501 |             },
1502 |             "notification-url": "https://packagist.org/downloads/",
1503 |             "license": [
1504 |                 "MIT"
1505 |             ],
1506 |             "authors": [
1507 |                 {
1508 |                     "name": "Bernhard Schussek",
1509 |                     "email": "bschussek@gmail.com"
1510 |                 }
1511 |             ],
1512 |             "description": "Assertions to validate method input/output with nice error messages.",
1513 |             "keywords": [
1514 |                 "assert",
1515 |                 "check",
1516 |                 "validate"
1517 |             ],
1518 |             "time": "2016-11-23 20:04:58"
1519 |         }
1520 |     ],
1521 |     "aliases": [],
1522 |     "minimum-stability": "stable",
1523 |     "stability-flags": [],
1524 |     "prefer-stable": false,
1525 |     "prefer-lowest": false,
1526 |     "platform": {
1527 |         "php": ">=7.0"
1528 |     },
1529 |     "platform-dev": []
1530 | }
1531 | 


--------------------------------------------------------------------------------
/docs/pt_BR/LEIA-ME_pt_BR.md:
--------------------------------------------------------------------------------
  1 | # PHPJasper - Versão Laravel 5.4 / 5.5
  2 | 
  3 | _Gerador de relatórios PHP integrado com Laravel_
  4 | 
  5 | [![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)
  6 | [![Latest Stable Version](https://poser.pugx.org/geekcom/phpjasper/v/stable)](https://packagist.org/packages/geekcom/phpjasper-laravel)
  7 | [![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%207.0-blue.svg?style=flat-square)](https://php.net/)
  8 | [![License](https://poser.pugx.org/geekcom/phpjasper/license)](https://packagist.org/packages/geekcom/phpjasper) 
  9 | 
 10 | ### Documentação
 11 | [![Language-en_US](https://img.shields.io/badge/en__US-100%25-green.svg)](https://github.com/PHPJasper/phpjasper-laravel/blob/master/README.md)
 12 | 
 13 | ### Sobre a biblioteca
 14 | 
 15 | PHPJasper é a solução perfeita para compilar e processar relatórios Jasper (.jrxml & .jasper) com PHP, ou seja, gerar relatórios com PHP.
 16 | 
 17 | **Notas:** 
 18 | * [Aqui](https://github.com/PHPJasper/examples) tem vários exemplos de como usar PHPJasper
 19 | 
 20 | ### Por quê preciso do PHPJasper?
 21 | 
 22 | Alguma vez você precisou de um relatório simples ou complexo em PHP para seu sistema web?
 23 | 
 24 | Eu já precisei e fui em busca de algumas soluções, a maioria delas é complexa e você precisa escrever *HTML* + *CSS* para gerar um *PDF*, isso não faz sentido, além de ser muito trabalhoso :)
 25 | 
 26 | Apresento para vocês **JasperReports** a melhor solução open source que existe para relatórios.
 27 | 
 28 | ### O que eu posso fazer com isso?
 29 | 
 30 | **Texto extraido do site JasperSoft:**
 31 | 
 32 | > A biblioteca JasperReports é o mecanismo de geração de relatórios de código aberto mais popular do mundo. É inteiramente escrito em Java e é capaz de usar dados provenientes de qualquer tipo de fonte de dados e gerar documentos perfeitos que podem ser visualizado, impresso ou exportado em uma variedade de formatos de documentos, incluindo HTML, PDF, Excel, OpenOffice e Word .
 33 | 
 34 | *Exemplos do que você pode fazer:*
 35 | 
 36 | * Faturas
 37 | * Relatórios
 38 | * Listas
 39 | 
 40 | 
 41 | ## Requisitos
 42 | 
 43 | * PHP 7.0 em diante
 44 | * Laravel 5.4 ou 5.5
 45 | * Java JDK 1.8
 46 | 
 47 | ## Opcional
 48 | 
 49 | * [Mysql JDBC Driver](http://dev.mysql.com/downloads/connector/j/) (se você pretende usar esse tipo de banco de dados)
 50 | * [PostgreSQL JDBC Driver](https://jdbc.postgresql.org/download.html) (se você pretende usar esse tipo de banco de dados)
 51 | * [Microsoft JDBC Drivers](https://www.microsoft.com/en-US/download/details.aspx?id=11774) (se você pretende usar esse tipo de banco de dados)
 52 | * [Jaspersoft Studio](http://community.jaspersoft.com/project/jaspersoft-studio) (para escrever e compilar seus relatórios)
 53 | 
 54 | ### Instalando o Java(JDK)
 55 | 
 56 | Verifique se o JDK está instalado:
 57 | 
 58 | ```
 59 | $ javac -version
 60 | javac version 1.8.0_101
 61 | ```
 62 | 
 63 | Se você receber a resposta:
 64 | 
 65 |     command not found: javac
 66 | 
 67 | Então você precisa instalar, para o (Ubuntu/Debian) rode o comando:
 68 | 
 69 |     $ sudo apt-get install default-jdk
 70 | 
 71 | Para instalar no (centOS/Fedora) faça o seguinte:
 72 | 
 73 |     # yum install java-1.8.0-openjdk.x86_64
 74 | 
 75 | Para instalar no Windows visite o link-> [JDK](http://www.oracle.com/technetwork/pt/java/javase/downloads/jdk8-downloads-2133151.html) e veja qual a versão mais apropriada para o seu Sistema Operacional.
 76 | 
 77 | Agora rode novamente o comando `javac -version` e veja se deu tudo certo.
 78 | 
 79 | ---------------------------------------------------------------------------------------------------------------------------
 80 | 
 81 | ## Instalando a biblioteca PHPJasper
 82 | 
 83 | Instale o [Composer](http://getcomposer.org), e rode o comando:
 84 | 
 85 | ```
 86 | composer require geekcom/phpjasper-laravel
 87 | ```
 88 | 
 89 | Ou crie um arquivo 'composer.json' e adicione o trecho:
 90 | 
 91 | ```json
 92 | {
 93 |     "require": {
 94 |         "geekcom/phpjasper-laravel": "^1.0"
 95 |     }
 96 | }
 97 | ```
 98 | 
 99 | Registre o provider PHPJasperServiceProvider, adicione a linha abaixo ao array:
100 | 
101 |     'providers' => [
102 |         // Other Service Providers
103 | 
104 |         PHPJasper\PHPJasperServiceProvider::class,
105 |     ],
106 | 
107 | E execute o comando:
108 | 
109 |     composer install
110 | 
111 | é isso, você tem a biblioteca instalada e pronta para uso.
112 | 
113 | ----------------------------------------------------------------------------------------------------------------------------
114 | 
115 | ## Exemplos
116 | 
117 | ### *Hello World* PHPJasper.
118 | 
119 | Vá para o diretório de exemplos na raiz do repositório (`vendor/geekcom/phpjasper/examples`).
120 | Abra o arquivo `hello_world.jrxml` com o JasperStudio ou seu editor favorito  e dê uma olhada no código.
121 | 
122 | #### Compilando
123 | 
124 | Primeiro precisamos compilar o arquivo com a extensão `.JRXML` em um arquivo binário do tipo `.JASPER`
125 | 
126 | **Nota 1:** Caso você não queira usar o *Jaspersoft Studio*. É possivel compilar o seu arquivo .jrxml da seguinte forma:
127 | 
128 | ```php
129 | 
130 | require __DIR__ . '/vendor/autoload.php';
131 | 
132 | use PHPJasper\PHPJasper;
133 | 
134 | $input = __DIR__ . '/vendor/geekcom/phpjasper/examples/hello_world.jrxml';   
135 | 
136 | $jasper = new PHPJasper;
137 | $jasper->compile($input)->execute();
138 | ```
139 | 
140 | Esse comando compila o arquivo fonte `hello_world.jrxml` em um arquivo binário `hello_world.jasper`.
141 | 
142 | #### Processando
143 | 
144 | Agora vamos processar o nosso relatório que foi compilado acima:
145 | 
146 | ```php
147 | require __DIR__ . '/vendor/autoload.php';
148 | 
149 | use PHPJasper\PHPJasper;
150 | 
151 | $input = __DIR__ . '/vendor/geekcom/phpjasper/examples/hello_world.jasper';  
152 | $output = __DIR__ . '/vendor/geekcom/phpjasper/examples';    
153 | $options = [ 
154 |     'format' => ['pdf', 'rtf'] 
155 | ];
156 | 
157 | $jasper = new PHPJasper;
158 | 
159 | $jasper->process(
160 |     $input,
161 |     $output,
162 |     $options
163 | )->execute();
164 | ```
165 | 
166 | Agora olhe a pasta **/examples** :) Ótimo trabalho? Você tem  2 arquivos, `hello_world.pdf` e `hello_world.rtf`.
167 | 
168 | #### Listando parâmetros
169 | 
170 | Como consultar o arquivo jrxml para examinar os parâmetros disponíveis no relatório:
171 | 
172 | ```php
173 | 
174 | require __DIR__ . '/vendor/autoload.php';
175 | 
176 | use PHPJasper\PHPJasper;
177 | 
178 | $input = __DIR__ . '/vendor/geekcom/phpjasper/examples/hello_world_params.jrxml';
179 | 
180 | $jasper = new PHPJasper;
181 | $output = $jasper->listParameters($input)->execute();
182 | 
183 | foreach($output as $parameter_description)
184 |     print $parameter_description . '
';
185 | ```
186 | 
187 | ### Relatórios a partir de um banco de dados
188 | 
189 | Adicione os parâmetros específicos para conexão com seu banco de dados: MYSQL, POSTGRES ou MSSQL:
190 | 
191 | ```php
192 | require __DIR__ . '/vendor/autoload.php';
193 | 
194 | use PHPJasper\PHPJasper;    
195 | 
196 | $input = '/your_input_path/your_report.jasper';   
197 | $output = '/your_output_path';
198 | $options = [
199 |     'format' => ['pdf'],
200 |     'locale' => 'pt_BR',
201 |     'params' => [],
202 |     'db_connection' => [
203 |         'driver' => 'postgres',
204 |         'username' => 'DB_USERNAME',
205 |         'password' => 'DB_PASSWORD',
206 |         'host' => 'DB_HOST',
207 |         'database' => 'DB_DATABASE',
208 |         'port' => '5432'
209 |     ]
210 | ];
211 | 
212 | $jasper = new PHPJasper;
213 | 
214 | $jasper->process(
215 |         $input,
216 |         $output,
217 |         $options
218 | )->execute();
219 | ```
220 | 
221 | **Nota 2:**
222 | 
223 | Para a lista completa de idiomas suportados veja o link [Supported Locales](http://www.oracle.com/technetwork/java/javase/java8locales-2095355.html)
224 | 
225 | ### Relatórios com banco de dados MSSQL
226 | 
227 | ```php
228 | require __DIR__ . '/vendor/autoload.php';
229 | 
230 | use PHPJasper\PHPJasper;
231 | 
232 | $input = '/your_input_path/your_report.jasper or .jrxml';   
233 | $output = '/your_output_path';
234 | $jdbc_dir = __DIR__ . '/vendor/geekcom/phpjasper/bin/jaspertarter/jdbc';
235 | $options = [
236 |     'format' => ['pdf'],
237 |     'locale' => 'pt_BR',
238 |     'params' => [],
239 |     'db_connection' => [
240 |         'driver' => 'generic',
241 |         'host' => '127.0.0.1',
242 |         'port' => '1433',
243 |         'database' => 'DataBaseName',
244 |         'username' => 'UserName',
245 |         'password' => 'password',
246 |         'jdbc_driver' => 'com.microsoft.sqlserver.jdbc.SQLServerDriver',
247 |         'jdbc_url' => 'jdbc:sqlserver://127.0.0.1:1433;databaseName=Teste',
248 |         'jdbc_dir' => $jdbc_dir
249 |     ]
250 | ];
251 | 
252 | $jasper = new PHPJasper;
253 | 
254 | $jasper->process(
255 |         $input,
256 |         $output,
257 |         $options
258 |     )->execute();
259 | ```
260 | 
261 | ### Relatórios a partir de um arquivo XML
262 | 
263 | ```php
264 | require __DIR__ . '/vendor/autoload.php';
265 | 
266 | use PHPJasper\PHPJasper;
267 | 
268 | $input = '/your_input_path/your_report.jasper';   
269 | $output = '/your_output_path';
270 | $data_file = __DIR__ . '/your_data_files_path/your_xml_file.xml';
271 | $options = [
272 |     'format' => ['pdf'],
273 |     'params' => [],
274 |     'locale' => 'pt_BR',
275 |     'db_connection' => [
276 |         'driver' => 'xml',
277 |         'data_file' => $data_file,
278 |         'xml_xpath' => '/your_xml_xpath'
279 |     ]
280 | ];
281 | 
282 | $jasper = new PHPJasper;
283 | 
284 | $jasper->process(
285 |     $input,
286 |     $output,
287 |     $options
288 | )->execute();
289 | ```
290 | 
291 | ### Relatórios a partir de um arquivo JSON
292 | 
293 | ```php
294 | require __DIR__ . '/vendor/autoload.php';
295 | 
296 | use PHPJasper\PHPJasper;
297 | 
298 | $input = '/your_input_path/your_report.jasper';   
299 | $output = '/your_output_path';
300 | 
301 | $data_file = __DIR__ . '/your_data_files_path/your_json_file.json';
302 | $options = [
303 |     'format' => ['pdf'],
304 |     'params' => [],
305 |     'locale' => 'pt_BR',
306 |     'db_connection' => [
307 |         'driver' => 'json',
308 |         'data_file' => $data_file,
309 |         'json_query' => 'your_json_query'
310 |     ]
311 | ];
312 | 
313 | $jasper = new PHPJasper;
314 | 
315 | $jasper->process(
316 |     $input,
317 |     $output,
318 |     $options
319 | )->execute();
320 | ```
321 | 
322 | ### MySQL
323 | 
324 | Incluímos o [MySQL connector](http://dev.mysql.com/downloads/connector/j/) (v5.1.39) na pasta `/src/JasperStarter/jdbc/`
325 | 
326 | ### PostgreSQL
327 | 
328 | Incluímos também o [PostgreSQL](https://jdbc.postgresql.org/) (v9.4-1203) na pasta `/src/JasperStarter/jdbc/`
329 | 
330 | ### MSSQL
331 | 
332 | [Microsoft JDBC Drivers 6.0, 4.2, 4.1, and 4.0 for SQL Server
333 | ](https://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=11774).
334 | 
335 | ## Performance
336 | 
337 | Depende da complexidade do seu relatório.
338 | 
339 | ## Agradecimentos
340 | 
341 | [Cenote GmbH](http://www.cenote.de/) pelo [JasperStarter](https://bitbucket.org/cenote/jasperstarter/) tool.
342 | 
343 | [JetBrains](https://www.jetbrains.com/) pelo [PhpStorm](https://www.jetbrains.com/phpstorm/) e seu grande apoio.
344 | 
345 | 
346 | ## [Dúvidas?](https://github.com/PHPJasper/phpjasper/issues)
347 | 
348 | Abra uma [Issue](https://github.com/PHPJasper/phpjasper/issues) ou procure por Issues antigas
349 | 
350 | 
351 | ## [Licença](https://github.com/PHPJasper/phpjasper/blob/master/LICENSE)
352 | 
353 | MIT
354 | 
355 | ## [Contribuição](https://github.com/PHPJasper/phpjasper/blob/master/CONTRIBUTING.md)
356 | 
357 | Contribua com a comunidade PHP, faça um fork !!
358 | 


--------------------------------------------------------------------------------
/examples/.gitignore:
--------------------------------------------------------------------------------
1 | hello_world.jasper
2 | hello_world.pdf


--------------------------------------------------------------------------------
/examples/CancelAck.jrxml:
--------------------------------------------------------------------------------
  1 | 
  2 | 
  3 | 	
  4 | 	
  5 | 	
  6 | 	
  7 | 	
  8 | 		
  9 | 	
 10 | 	
 11 | 		
 12 | 	
 13 | 	
 14 | 		
 15 | 	
 16 | 	
 17 | 		
 18 | 	
 19 | 	
 20 | 		
 21 | 	
 22 | 	
 23 | 		
 24 | 	
 25 | 	
 26 | 		
 27 | 	
 28 | 	
 29 | 		
 30 | 	
 31 | 	
 32 | 		
 33 | 	
 34 | 	
 35 | 		
 36 | 			
 37 | 				
 38 | 					
 39 | 					
 40 | 				
 41 | 				
 42 | 					
 43 | 				
 44 | 				
 45 | 			
 46 | 			
 47 | 				
 48 | 				
 49 | 					
 50 | 				
 51 | 				
 52 | 			
 53 | 			
 54 | 				
 55 | 				
 56 | 					
 57 | 				
 58 | 				
 59 | 			
 60 | 			
 61 | 				
 62 | 				
 63 | 					
 64 | 				
 65 | 				
 66 | 			
 67 | 			
 68 | 				
 69 | 				
 70 | 					
 71 | 				
 72 | 				
 73 | 			
 74 | 			
 75 | 				
 76 | 				
 77 | 					
 78 | 				
 79 | 				
 80 | 			
 81 | 			
 82 | 				
 83 | 				
 84 | 					
 85 | 				
 86 | 				
 87 | 			
 88 | 			
 89 | 				
 90 | 				
 91 | 					
 92 | 				
 93 | 				
 94 | 			
 95 | 			
 96 | 				
 97 | 				
 98 | 					
 99 | 				
100 | 				
101 | 			
102 | 			
103 | 				
104 | 				
105 | 					
106 | 				
107 | 				
108 | 			
109 | 		
110 | 	
111 | 	
112 | 		
113 | 			
114 | 			
115 | 			
116 | 				
117 | 					
118 | 					
119 | 				
120 | 				
121 | 					
122 | 					
123 | 					
124 | 					
125 | 				
126 | 				
127 | 					
128 | 				
129 | 				
130 | 			
131 | 			
132 | 				
133 | 					
134 | 				
135 | 				
136 | 					
137 | 					
138 | 					
139 | 					
140 | 				
141 | 				
142 | 					
143 | 				
144 | 				
145 | 			
146 | 		
147 | 	
148 | 	
149 | 		
150 | 			
151 | 				
152 | 					
153 | 					
154 | 				
155 | 				
156 | 					
157 | 					
158 | 					
159 | 					
160 | 				
161 | 				
162 | 					
163 | 				
164 | 				
165 | 			
166 | 			
167 | 				
168 | 					
169 | 					
170 | 				
171 | 				
172 | 					
173 | 					
174 | 					
175 | 					
176 | 				
177 | 				
178 | 					
179 | 				
180 | 				
181 | 			
182 | 		
183 | 	
184 | 	
185 | 		
186 | 			
187 | 				
188 | 					
189 | 					
190 | 				
191 | 				
192 | 				
193 | 			
194 | 			
195 | 				
196 | 					
197 | 				
198 | 				
199 | 				
200 | 			
201 | 			
202 | 				
203 | 				
204 | 					
205 | 				
206 | 				
207 | 			
208 | 			
209 | 				
210 | 				
211 | 					
212 | 				
213 | 				
214 | 			
215 | 		
216 | 	
217 | 
218 | 


--------------------------------------------------------------------------------
/examples/CancelAck.xml:
--------------------------------------------------------------------------------
 1 | 
 2 | 
 3 |     
 4 |         1361E3F3-B493-4F5C-9A2D-67C7CC151907201
 5 |         136F0E14-3C92-4506-991D-0DB2FB45E0A9201
 6 |         13741D6D-574A-458E-8112-4943929D3DFA201
 7 |         137A252B-4F8B-48CB-A5FE-219FE149CC1F201
 8 |         138665F0-3935-4880-B125-3C0D03218CA8201
 9 |     
10 |     cqOD3A20ku9vHI3MGI18HkSsljYcURr6fSjyk9I+MRghG9T2/EXpiqZahCSYCBr0JwFV/rCWbP6kvdk7eYGerg==
11 | 


--------------------------------------------------------------------------------
/examples/contacts.json:
--------------------------------------------------------------------------------
 1 | {
 2 |   "contacts": {
 3 |     "person": [
 4 |       {
 5 |         "name": "ETHAN",
 6 |         "street": "Street 1",
 7 |         "city": "Fairfax",
 8 |         "phone": "+1 (415) 111-1111"
 9 |       },
10 |       {
11 |         "name": "CALEB",
12 |         "street": "Street 2",
13 |         "city": "San Francisco",
14 |         "phone": "+1 (415) 222-2222"
15 |       },
16 |       {
17 |         "name": "WILLIAM",
18 |         "street": "Street 2",
19 |         "city": "Paradise City",
20 |         "phone": "+1 (415) 333-3333"
21 |       }
22 |     ]
23 |   }
24 | }


--------------------------------------------------------------------------------
/examples/hello_world.jrxml:
--------------------------------------------------------------------------------
 1 | 
 2 | 
 3 | 
 4 | 	
 5 | 	
 6 | 	
 7 | 	
 8 | 		
 9 | 	
10 | 	
11 | 		<band height="72">
12 | 			<frame>
13 | 				<reportElement mode="Opaque" x="-20" y="-20" width="595" height="92" backcolor="#006699" uuid="3501dac6-be9b-47b1-bf09-8b25fbc6c79f"/>
14 | 				<staticText>
15 | 					<reportElement x="20" y="20" width="349" height="45" forecolor="#FFFFFF" uuid="2464c9ca-82a1-48c9-87ea-b68192294c4a"/>
16 | 					<textElement>
17 | 						<font fontName="Arial" size="34" isBold="true"/>
18 | 					</textElement>
19 | 					<text><![CDATA[PHPjasper Test]]></text>
20 | 				</staticText>
21 | 			</frame>
22 | 		</band>
23 | 	
24 | 	
25 | 		
26 | 			
27 | 				
28 | 			
29 | 			
30 | 				
31 | 				
32 | 					
33 | 				
34 | 				
35 | 			
36 | 		
37 | 	
38 | 	
39 | 		
40 | 	
41 | 	
42 | 		
43 | 			
44 | 				
45 | 				
46 | 					
47 | 				
48 | 				
49 | 			
50 | 		
51 | 	
52 | 	
53 | 		
54 | 	
55 | 	
56 | 		
57 | 			
58 | 				
59 | 				
60 | 				
61 | 			
62 | 			
63 | 				
64 | 				
65 | 			
66 | 			
67 | 				
68 | 				
69 | 			
70 | 		
71 | 	
72 | 	
73 | 		
74 | 	
75 | 
76 | 


--------------------------------------------------------------------------------
/examples/hello_world_params.jrxml:
--------------------------------------------------------------------------------
  1 | 
  2 | 
  3 | 	
  4 | 	
  5 | 	
  6 | 	
  7 | 	
  8 | 	
  9 | 	
 10 | 		
 11 | 	
 12 | 	
 13 | 		
 14 | 	
 15 | 	
 16 | 		<band height="72">
 17 | 			<frame>
 18 | 				<reportElement uuid="5347bff5-dbb0-4672-b148-036cdd75c8c7" mode="Opaque" x="-20" y="-20" width="595" height="92" backcolor="#006699"/>
 19 | 				<staticText>
 20 | 					<reportElement uuid="8b0fa6d5-c0c6-4530-95bb-93c3b34d2fca" x="20" y="20" width="234" height="43" forecolor="#FFFFFF"/>
 21 | 					<textElement>
 22 | 						<font size="34" isBold="true"/>
 23 | 					</textElement>
 24 | 					<text><![CDATA[JasperStarter]]></text>
 25 | 				</staticText>
 26 | 				<staticText>
 27 | 					<reportElement uuid="84c20b7b-2750-44e1-8f6e-87cc755158c2" x="298" y="43" width="277" height="20" forecolor="#FFFFFF"/>
 28 | 					<textElement textAlignment="Right">
 29 | 						<font size="14" isBold="false"/>
 30 | 					</textElement>
 31 | 					<text><![CDATA[Report with parameters]]></text>
 32 | 				</staticText>
 33 | 			</frame>
 34 | 		</band>
 35 | 	
 36 | 	
 37 | 		
 38 | 	
 39 | 	
 40 | 		
 41 | 			
 42 | 				
 43 | 			
 44 | 		
 45 | 	
 46 | 	
 47 | 		
 48 | 			
 49 | 				
 50 | 				
 51 | 					
 52 | 				
 53 | 				
 54 | 			
 55 | 			
 56 | 				
 57 | 				
 58 | 					
 59 | 				
 60 | 				
 61 | 			
 62 | 			
 63 | 				
 64 | 				
 65 | 					
 66 | 				
 67 | 				
 68 | 			
 69 | 			
 70 | 				
 71 | 				
 72 | 					
 73 | 				
 74 | 				
 75 | 			
 76 | 			
 77 | 				
 78 | 				
 79 | 					
 80 | 				
 81 | 				
 82 | 			
 83 | 			
 84 | 				
 85 | 				
 86 | 					
 87 | 				
 88 | 				
 89 | 			
 90 | 			
 91 | 				
 92 | 				
 93 | 					
 94 | 				
 95 | 				
 96 | 			
 97 | 			
 98 | 				
 99 | 				
100 | 			
101 | 		
102 | 	
103 | 	
104 | 		
105 | 	
106 | 	
107 | 		
108 | 			
109 | 				
110 | 				
111 | 				
112 | 			
113 | 			
114 | 				
115 | 				
116 | 				
117 | 			
118 | 			
119 | 				
120 | 				
121 | 				
122 | 			
123 | 		
124 | 	
125 | 	
126 | 		
127 | 	
128 | 
129 | 


--------------------------------------------------------------------------------
/examples/json.jrxml:
--------------------------------------------------------------------------------
  1 | 
  2 | 
  3 | 
  4 | 
  5 | 	
  6 | 	
  7 | 	
  8 | 	
  9 | 	
 10 | 		
 11 | 	
 12 | 	
 13 | 		
 14 | 	
 15 | 	
 16 | 		
 17 | 	
 18 | 	
 19 | 		
 20 | 	
 21 | 	
 22 | 		
 23 | 	
 24 | 	
 25 | 		
 26 | 	
 27 | 	
 28 | 		<band height="72">
 29 | 			<frame>
 30 | 				<reportElement mode="Opaque" x="-20" y="-20" width="595" height="92" backcolor="#006699" uuid="d6b7d5aa-5c6b-4106-9569-b0014b63e753"/>
 31 | 				<staticText>
 32 | 					<reportElement x="20" y="20" width="267" height="43" forecolor="#FFFFFF" uuid="2932e85f-a2d7-40d5-9dad-0b5ea669ad15"/>
 33 | 					<textElement>
 34 | 						<font size="34" isBold="true"/>
 35 | 					</textElement>
 36 | 					<text><![CDATA[JasperStarter]]></text>
 37 | 				</staticText>
 38 | 				<staticText>
 39 | 					<reportElement x="298" y="43" width="277" height="20" forecolor="#FFFFFF" uuid="04e1a0ed-0b0f-41d4-93e9-792d4fd37d28"/>
 40 | 					<textElement textAlignment="Right">
 41 | 						<font size="14" isBold="false"/>
 42 | 					</textElement>
 43 | 					<text><![CDATA[Report with JSON Datasource]]></text>
 44 | 				</staticText>
 45 | 			</frame>
 46 | 		</band>
 47 | 	
 48 | 	
 49 | 		
 50 | 	
 51 | 	
 52 | 		
 53 | 			
 54 | 				
 55 | 			
 56 | 			
 57 | 				
 58 | 				
 59 | 					
 60 | 				
 61 | 				
 62 | 			
 63 | 			
 64 | 				
 65 | 				
 66 | 					
 67 | 				
 68 | 				
 69 | 			
 70 | 			
 71 | 				
 72 | 				
 73 | 					
 74 | 				
 75 | 				
 76 | 			
 77 | 			
 78 | 				
 79 | 				
 80 | 					
 81 | 				
 82 | 				
 83 | 			
 84 | 		
 85 | 	
 86 | 	
 87 | 		
 88 | 			
 89 | 				
 90 | 				
 91 | 			
 92 | 			
 93 | 				
 94 | 				
 95 | 			
 96 | 			
 97 | 				
 98 | 				
 99 | 			
100 | 			
101 | 				
102 | 				
103 | 			
104 | 		
105 | 	
106 | 	
107 | 		
108 | 	
109 | 	
110 | 		
111 | 			
112 | 				
113 | 				
114 | 				
115 | 			
116 | 			
117 | 				
118 | 				
119 | 			
120 | 			
121 | 				
122 | 				
123 | 			
124 | 		
125 | 	
126 | 	
127 | 		
128 | 	
129 | 
130 | 


--------------------------------------------------------------------------------
/phpunit.xml:
--------------------------------------------------------------------------------
 1 | 
 2 | 
12 | 
13 |     
14 |         
15 |             ./src
16 |         
17 |     
18 | 
19 |     
20 |         
21 |             tests
22 |         
23 |     
24 | 


--------------------------------------------------------------------------------
/src/Exception/ErrorCommandExecutable.php:
--------------------------------------------------------------------------------
 1 | executable = 'jasperstarter';
 50 |         $this->pathExecutable = __DIR__ . '/../bin/jasperstarter/bin';
 51 |         $this->windows = strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' ? true : false;
 52 |     }
 53 | 
 54 |     /**
 55 |      * @return string
 56 |      */
 57 |     private function checkServer()
 58 |     {
 59 |         return $this->command = $this->windows ? $this->executable : './' . $this->executable;
 60 |     }
 61 | 
 62 |     /**
 63 |      * @param string $input
 64 |      * @param string $output optional
 65 |      * @return $this
 66 |      * @throws Exception\InvalidInputFile
 67 |      */
 68 |     public function compile(string $input, string $output = '')
 69 |     {
 70 |         if (!is_file($input)) {
 71 |             throw new \PHPJasper\Exception\InvalidInputFile();
 72 |         }
 73 | 
 74 |         $this->command = $this->checkServer();
 75 |         $this->command .= ' compile ';
 76 |         $this->command .= '"' . realpath($input) . '"';
 77 | 
 78 |         if (!empty($output)) {
 79 |             $this->command .= ' -o ' . "\"$output\"";
 80 |         }
 81 | 
 82 |         return $this;
 83 |     }
 84 | 
 85 |     /**
 86 |      * @param string $input
 87 |      * @param string $output
 88 |      * @param array $options
 89 |      * @return $this
 90 |      * @throws Exception\InvalidInputFile
 91 |      * @throws Exception\InvalidFormat
 92 |      */
 93 |     public function process(string $input, string $output, array $options = [])
 94 |     {
 95 |         $options = $this->parseProcessOptions($options);
 96 | 
 97 |         if (!$input) {
 98 |             throw new \PHPJasper\Exception\InvalidInputFile();
 99 |         }
100 | 
101 |         $this->validateFormat($options['format']);
102 | 
103 |         $this->command = $this->checkServer();
104 | 
105 |         if ($options['locale']) {
106 |             $this->command .= " --locale {$options['locale']}";
107 |         }
108 | 
109 |         $this->command .= ' process ';
110 |         $this->command .= "\"$input\"";
111 |         $this->command .= ' -o ' . "\"$output\"";
112 | 
113 |         $this->command .= ' -f ' . join(' ', $options['format']);
114 |         if ($options['params']) {
115 |             $this->command .= ' -P ';
116 |             foreach ($options['params'] as $key => $value) {
117 |                 $this->command .= " " . $key . '="' . $value . '" ' . " ";
118 |             }
119 |         }
120 | 
121 |         if ($options['db_connection']) {
122 |             $mapDbParams = [
123 |                 'driver' => '-t',
124 |                 'username' => '-u',
125 |                 'password' => '-p',
126 |                 'host' => '-H',
127 |                 'database' => '-n',
128 |                 'port' => '--db-port',
129 |                 'jdbc_driver' => '--db-driver',
130 |                 'jdbc_url' => '--db-url',
131 |                 'jdbc_dir' => '--jdbc-dir',
132 |                 'db_sid' => '--db-sid',
133 |                 'xml_xpath' => '--xml-xpath',
134 |                 'data_file' => '--data-file',
135 |                 'json_query' => '--json-query'
136 |             ];
137 | 
138 |             foreach ($options['db_connection'] as $key => $value) {
139 |                 $this->command .= " {$mapDbParams[$key]} {$value}";
140 |             }
141 | 
142 |             if ($options['resources']) {
143 |                 $this->command .= " -r {$options['resources']}";
144 |             }
145 |             
146 |             $this->command = $this->command . ' 2>&1';
147 |         }
148 | 
149 |         return $this;
150 |     }
151 | 
152 |     /**
153 |      * @param array $options
154 |      * @return array
155 |      */
156 |     protected function parseProcessOptions(array $options)
157 |     {
158 |         $defaultOptions = [
159 |             'format' => ['pdf'],
160 |             'params' => [],
161 |             'resources' => false,
162 |             'locale' => false,
163 |             'db_connection' => []
164 |         ];
165 | 
166 |         return array_merge($defaultOptions, $options);
167 |     }
168 | 
169 |     /**
170 |      * @param $format
171 |      * @throws Exception\InvalidFormat
172 |      */
173 |     protected function validateFormat($format)
174 |     {
175 |         if (!is_array($format)) {
176 |             $format = [$format];
177 |         }
178 |         foreach ($format as $value) {
179 |             if (!in_array($value, $this->formats)) {
180 |                 throw new \PHPJasper\Exception\InvalidFormat();
181 |             }
182 |         }
183 |     }
184 | 
185 |     /**
186 |      * @param string $input
187 |      * @return $this
188 |      * @throws \Exception
189 |      */
190 |     public function listParameters(string $input)
191 |     {
192 |         if (!is_file($input)) {
193 |             throw new \PHPJasper\Exception\InvalidInputFile();
194 |         }
195 | 
196 |         $this->command = $this->checkServer();
197 |         $this->command .= ' list_parameters ';
198 |         $this->command .= '"'.realpath($input).'"';
199 | 
200 |         return $this;
201 |     }
202 | 
203 |     /**
204 |      * @param bool $user
205 |      * @return mixed
206 |      * @throws Exception\InvalidCommandExecutable
207 |      * @throws Exception\InvalidResourceDirectory
208 |      * @throws Exception\ErrorCommandExecutable
209 |      */
210 |     public function execute($user = false)
211 |     {
212 |         $this->validateExecute();
213 |         $this->addUserToCommand($user);
214 | 
215 |         $output = [];
216 |         $returnVar = 0;
217 | 
218 |         chdir($this->pathExecutable);
219 |         exec($this->command, $output, $returnVar);
220 |         if ($returnVar !== 0) {
221 |             //throw new \PHPJasper\Exception\ErrorCommandExecutable();
222 |             throw new \Exception("{$output[0]}", 1);
223 |         }
224 | 
225 |         return $output;
226 |     }
227 | 
228 |     /**
229 |      * @return string
230 |      */
231 |     public function output()
232 |     {
233 |         return $this->command;
234 |     }
235 | 
236 |     /**
237 |      * @param $user
238 |      */
239 |     protected function addUserToCommand($user)
240 |     {
241 |         if ($user && !$this->windows) {
242 |             $this->command = 'su -u ' . $user . " -c \"" . $this->command . "\"";
243 |         }
244 |     }
245 | 
246 |     /**
247 |      * @throws Exception\InvalidCommandExecutable
248 |      * @throws Exception\InvalidResourceDirectory
249 |      */
250 |     protected function validateExecute()
251 |     {
252 |         if (!$this->command) {
253 |             throw new \PHPJasper\Exception\InvalidCommandExecutable();
254 |         }
255 |         if (!is_dir($this->pathExecutable)) {
256 |             throw new \PHPJasper\Exception\InvalidResourceDirectory();
257 |         }
258 |     }
259 | }
260 | 


--------------------------------------------------------------------------------
/src/PHPJasperServiceProvider.php:
--------------------------------------------------------------------------------
 1 | app->singleton('PHPJasper', function ($app)
32 |         {
33 |             return new PHPJasper;
34 |         });
35 |     }
36 | }
37 | 


--------------------------------------------------------------------------------
/tests/PHPJasper/PHPJasperTest.php:
--------------------------------------------------------------------------------
  1 | 
 21 |  */
 22 | class PHPJasperTest extends TestCase
 23 | {
 24 |     public function setUp()
 25 |     {
 26 |         $this->PHPJasper = new PHPJasper();
 27 |     }
 28 | 
 29 |     public function tearDown()
 30 |     {
 31 |         unset($this->PHPJasper);
 32 |     }
 33 | 
 34 |     public function testConstructor()
 35 |     {
 36 |         $this->assertInstanceOf(PHPJasper::class, new PHPJasper());
 37 |     }
 38 | 
 39 |     public function testCompile()
 40 |     {
 41 |         $result = $this->PHPJasper->compile('examples/hello_world.jrxml', '{output_file}');
 42 | 
 43 |         $this->assertInstanceOf(PHPJasper::class, $result);
 44 | 
 45 |         $expected = '.*jasperstarter compile ".*hello_world.jrxml" -o "{output_file}"';
 46 | 
 47 |         $this->assertRegExp('/'.$expected.'/', $result->output());
 48 |     }
 49 | 
 50 |     public function testListParameters()
 51 |     {
 52 |         $result = $this->PHPJasper->listParameters('examples/hello_world.jrxml');
 53 | 
 54 |         $this->assertInstanceOf(PHPJasper::class, $result);
 55 | 
 56 |         $this->assertRegExp(
 57 |             '/.*jasperstarter list_parameters ".*hello_world.jrxml"/',
 58 |             $result->output()
 59 |         );
 60 |     }
 61 | 
 62 |     public function testCompileWithWrongInput()
 63 |     {
 64 |         $this->expectException(\PHPJasper\Exception\InvalidInputFile::class);
 65 | 
 66 |         $jasper = new PHPJasper();
 67 | 
 68 |         $jasper->compile('');
 69 |     }
 70 | 
 71 |     public function testCompileHelloWorld()
 72 |     {
 73 |         $jasper = new PHPJasper();
 74 | 
 75 |         $result = $jasper->compile('examples/hello_world.jrxml');
 76 | 
 77 |         $this->assertInstanceOf(PHPJasper::class, $result);
 78 | 
 79 |         $this->assertRegExp('/.*jasperstarter compile ".*hello_world.jrxml"/', $result->output());
 80 |     }
 81 | 
 82 |     public function testExecuteWithoutCompile()
 83 |     {
 84 |         $this->expectException(\PHPJasper\Exception\InvalidCommandExecutable::class);
 85 | 
 86 |         $jasper = new PHPJasper();
 87 |         $jasper->execute();
 88 |     }
 89 | 
 90 |     public function testInvalidInputFile()
 91 |     {
 92 |         $this->expectException(\PHPJasper\Exception\InvalidInputFile::class);
 93 | 
 94 |         $jasper = new PHPJasper();
 95 |         $jasper->compile('{invalid}')->execute();
 96 |     }
 97 | 
 98 |     public function testExecute()
 99 |     {
100 |         $jasper = new PHPJasper();
101 |         $actual = $jasper->compile(__DIR__ . '/test.jrxml')->execute();
102 | 
103 |         $this->assertInternalType('array', $actual);
104 |     }
105 | 
106 |     public function testListParametersWithWrongInput()
107 |     {
108 |         $this->expectException(\PHPJasper\Exception\InvalidInputFile::class);
109 | 
110 |         $jasper = new PHPJasper();
111 |         $jasper->listParameters('');
112 |     }
113 | 
114 |     public function testProcessWithWrongInput()
115 |     {
116 |         $this->expectException(\PHPJasper\Exception\InvalidInputFile::class);
117 | 
118 |         $jasper = new PHPJasper();
119 |         $jasper->process('', '', [
120 |             'format' => 'mp3'
121 |         ]);
122 |     }
123 | 
124 |     public function testProcessWithWrongFormat()
125 |     {
126 |         $this->expectException(\PHPJasper\Exception\InvalidFormat::class);
127 | 
128 |         $jasper = new PHPJasper();
129 |         $jasper->process('hello_world.jrxml', '', [
130 |             'format' => 'mp3'
131 |         ]);
132 |     }
133 | 
134 |     public function testProcess()
135 |     {
136 |         $jasper = new PHPJasper();
137 |         $this->assertInstanceOf(PHPJasper::class, $jasper->process('hello_world.jrxml', ""));
138 |     }
139 | }
140 | 


--------------------------------------------------------------------------------
/tests/PHPJasper/test.jrxml:
--------------------------------------------------------------------------------
  1 | 
  2 | 
  3 | 
  4 | 
  5 |