PHP code example of webmavens / laravelscandocument

1. Go to this page and download the library: Download webmavens/laravelscandocument library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

webmavens / laravelscandocument example snippets


https://{YOUR_DOMAIN_NAME}/textractCallback

AWS_DEFAULT_REGION = 'YOUR_AWS_DEFAULT_REGION',
AWS_ACCESS_KEY_ID = 'YOUR_AWS_ACCESS_KEY_ID',
AWS_SECRET_ACCESS_KEY = 'YOUR_AWS_SECRET_ACCESS_KEY',
AWS_BUCKET = 'YOUR_AWS_BUCKET',
AWS_ARN_TOPIC_ID = 'YOUR_AWS_ARN_TOPIC_ID',
AWS_SNS_TOPIC_ID = 'YOUR_AWS_SNS_TOPIC_ID',

php artisan vendor:publish --tag="laravelscandocument-migrations"

$laravelScandocument = new Webmavens\LaravelScandocument();
// $path = File path
// $jobtag = Type of document
$response = $laravelScandocument->sendDocToScan($path,$jobtag); //$jobtag is optional.It should be string.