Download the PHP package sturt/salary without Composer
On this page you can find all versions of the php package sturt/salary. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package salary
Short Description Parse salary slip in images, get the salary amount
License MIT
Informations about the package salary
Tesseract OCR for PHP
Extract Salary real number from image format salary Slip
Installation
Scraper requires PHP 7.1 or 7.2. This particular version supports Laravel 5.5 or 5.6 only.
To get the latest version, simply require the project using Composer:
Via Composer
Once installed, if you are not using automatic package discovery, then you need to register the sturt\salary\SalaryServiceProvider::class,
service provider in your config/app.php
.
Configuration
Scraper supports optional configuration.
To get started, you'll need to publish all vendor assets:
This will create a config/sa.php
file in your app that you can modify to set your configuration. Also, make sure you check for changes to the original config file in this package between releases.
Configuration
Open sa.php from Config
Usage
Output
Success
File not found
Note for Windows users
There are many ways to install Tesseract OCR on your system, but if you just want something quick to get up and running, I recommend installing the Capture2Text package with Chocolatey.
choco install capture2text --version 3.9
:warning: Recent versions of Capture2Text stopped shipping the tesseract
binary.
Note for macOS users
With MacPorts you can install support for individual languages, like so:
$ sudo port install tesseract-<langcode>
But that is not possible with Homebrew. It comes only with English support by default, so if you intend to use it for other language, the quickest solution is to install them all:
$ brew install tesseract --with-all-languages
License
tesseract-ocr-for-php is released under the MIT License.