-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,51 @@ | ||
# laravel-tabula | ||
laravel-tabula is a tool for liberating data tables trapped inside PDF files for the Laravel framework. This package was inspired by Python’s tabula-py package. | ||
|
||
### How to install | ||
|
||
|
||
``` | ||
<pre><code>composer require initred/laravel-tabula</code></pre> | ||
``` | ||
|
||
### Configuration Settings (Needed Java) | ||
|
||
[Windows] | ||
|
||
http:https://www.oracle.com/technetwork/java/javase/downloads/index.html. | ||
|
||
[Mac os] | ||
|
||
``` | ||
brew update | ||
``` | ||
``` | ||
brew cask install java | ||
``` | ||
|
||
[Debian] | ||
|
||
``` | ||
sudo apt install default-jre | ||
``` | ||
|
||
[Fedora] | ||
|
||
``` | ||
sudo dnf install java-latest-openjdk | ||
``` | ||
|
||
### How to use on Laravel (Example) | ||
|
||
``` | ||
$tabula = new Tabula('/usr/bin/'); | ||
$tabula->parse( | ||
'json', | ||
storage_path('app/public/pdf'), | ||
storage_path('app/public/json') | ||
); | ||
``` | ||
|
||
### License | ||
|
||
laravel-tabula is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT). |