Simple PHP library that allows to use JasperServer with PHP using SOAP webservices provided by JasperServer
PHP
Switch branches/tags
Nothing to show
Pull request Compare This branch is 6 commits behind adlermedrado:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
README

README

A simple library that allows PHP projects to communicate with JasperServer using SOAP.
Just plug it into your project and you will easily can generate your jasper reports stored into an JasperServer

If you need, ping me.

TODO List:

- Improve exception handler for PHP functions errors, warnings and so on;
- Create an autoloader 
- Write some documentation (PHPDoc also)
- Write Unit Tests

Usage example (look the complete sample code at index.php):

try {
	$jasper = new Adl\Integration\RequestJasper();
	/*
	To send output to browser
	*/
	header('Content-type: application/pdf');
	echo $jasper->run('/reports/samples/AllAccounts');
	
	/*
	To Save content to a file in the disk
	The path where the file will be saved is registered into config/data.ini
	*/
	//$jasper->run('/reports/samples/AllAccounts','PDF', null, true);

} catch (\Exception $e) {
	echo $e->getMessage();
	die;
}

--------------------------------------------------
License info below:

Copyright (C) 2011 Adler Brediks Medrado

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.