Skip to content

Commit 764bebd

Browse files
committed
updated README.md
1 parent 56ec294 commit 764bebd

File tree

1 file changed

+0
-61
lines changed

1 file changed

+0
-61
lines changed

README.md

Lines changed: 0 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -263,67 +263,6 @@ $jasper->process(
263263
)->execute();
264264
```
265265

266-
###[optional] How to use JasperPHP with Laravel 5.*
267-
**This library yet not supported in Laravel 5.4**
268-
269-
* Install [Composer](http://getcomposer.org) if you don't have it.
270-
```
271-
composer require geekcom/phpjasper
272-
```
273-
Or in your 'composer.json' file add:
274-
275-
```javascript
276-
{
277-
"require": {
278-
"geekcom/phpjasper": "1.*"
279-
}
280-
}
281-
```
282-
283-
* Just run:
284-
285-
**composer update**
286-
287-
* Add to your config/app.php providers array:
288-
289-
**JasperPHP\JasperPHPServiceProvider::class,**
290-
291-
* Create a folder **/report** on **/public directory**
292-
293-
* Copy the file **hello_world.jrxml** in **/vendor/geekcom/phpjasper/examples** from directory: **/public/report**
294-
295-
* Copy and paste the code below to your **route.php** file
296-
297-
**Note 3:** In laravel 5.3 your routes files it's located on directory /routes
298-
299-
```php
300-
use JasperPHP\JasperPHP;
301-
302-
Route::get('/reports', function () {
303-
304-
$report = new JasperPHP;
305-
306-
$report->process(
307-
public_path() . '/report/hello_world.jrxml', //input
308-
public_path() . '/report/'.time().'_hello_world', //output
309-
[
310-
'format' => ['pdf', 'rtf', 'xml'],
311-
'locale' => 'en',
312-
'params' => [],
313-
'db_connection' => []
314-
];
315-
)->execute();
316-
});
317-
```
318-
319-
* Run **php artisan serve**
320-
321-
* Access **localhost:8000/reports**
322-
323-
* Check the directory **/public/report**. You now have 3 files, `hello_world.pdf`, `hello_world.rtf` and `hello_world.xml`.
324-
325-
In this example we generate reports pdf, rtf and xml.
326-
327266
###MySQL
328267

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

0 commit comments

Comments
 (0)