PHPackages                             webmavens/laravelscandocument - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. webmavens/laravelscandocument

ActiveLibrary[File &amp; Storage](/categories/file-storage)

webmavens/laravelscandocument
=============================

This will send to textract for scanning image.

0.0.10(8mo ago)31.3k1[1 issues](https://github.com/webmavens/Laravel-scandocument/issues)MITPHPPHP ^8.0

Since May 15Pushed 5mo ago2 watchersCompare

[ Source](https://github.com/webmavens/Laravel-scandocument)[ Packagist](https://packagist.org/packages/webmavens/laravelscandocument)[ Docs](https://github.com/webmavens/laravelscandocument)[ RSS](/packages/webmavens-laravelscandocument/feed)WikiDiscussions master Synced today

READMEChangelog (6)Dependencies (13)Versions (10)Used By (0)

This will send to textract for scanning image.
==============================================

[](#this-will-send-to-textract-for-scanning-image)

This package allows you to scan document with laravel.[Amazon Simple Notification Service (Amazon SNS)](https://aws.amazon.com/sns/) is used for scan document. It is using offical [AWS SDK for PHP](https://github.com/aws/aws-sdk-php) and [Amazon SNS Message Validator for PHP](https://github.com/aws/aws-php-sns-message-validator).

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require webmavens/laravelscandocument
```

Publish migrate file.

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

```
php artisan migrate
```

AWS Setup (Automatic)
---------------------

[](#aws-setup-automatic)

This package includes a powerful command that will automatically create and configure all required AWS resources for you — including:

- S3 Bucket (for document storage)
- SNS Topic (for Textract notifications)
- IAM Role (for Textract permissions)
- IAM User (with access keys)

All credentials and ARNs will be automatically written into your .env file.

Run the setup command
---------------------

[](#run-the-setup-command)

```
php artisan aws:setup
```

You’ll be asked for your AWS Admin Access Key, Secret Key, and Region.

Once the command completes, it will output details of the created AWS resources and save the following environment variables automatically:

```
AWS_ACCESS_KEY_ID=YOUR_NEW_ACCESS_KEY
AWS_SECRET_ACCESS_KEY=YOUR_NEW_SECRET_KEY
AWS_DEFAULT_REGION=YOUR_REGION
AWS_BUCKET=YOUR_BUCKET_NAME
AWS_SNS_TOPIC_ID=YOUR_SNS_TOPIC_ARN
AWS_ARN_TOPIC_ID=YOUR_TEXTRACT_ROLE_ARN
```

Callback URL
------------

[](#callback-url)

When the command creates your SNS topic, it automatically subscribes your callback endpoint:

```
https://{YOUR_DOMAIN_NAME}/textractCallback
```

**Note :- Please do not set up raw message delivery for callback url.**

Usage
-----

[](#usage)

- Send document to scan

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

- This will upload your document to AWS Textract and process it automatically and return JOBID in response.
- You’ll receive the extracted data via your SNS callback endpoint (/textractCallback).
- You will find scan document text in **laravel\_scandocument\_data** table.

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [webmavens](https://github.com/webmavens)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance61

Regular maintenance activity

Popularity20

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~112 days

Recently: every ~222 days

Total

9

Last Release

247d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/66283568?v=4)[Web Mavens](/maintainers/webmavens)[@webmavens](https://github.com/webmavens)

---

Top Contributors

[![sonali-webmavens](https://avatars.githubusercontent.com/u/45750186?v=4)](https://github.com/sonali-webmavens "sonali-webmavens (16 commits)")[![webmavensteam](https://avatars.githubusercontent.com/u/66576112?v=4)](https://github.com/webmavensteam "webmavensteam (2 commits)")[![Amit-Webmavens](https://avatars.githubusercontent.com/u/121440303?v=4)](https://github.com/Amit-Webmavens "Amit-Webmavens (1 commits)")[![rutvikh-webmavens](https://avatars.githubusercontent.com/u/75971167?v=4)](https://github.com/rutvikh-webmavens "rutvikh-webmavens (1 commits)")[![sawan-webmavens](https://avatars.githubusercontent.com/u/456840?v=4)](https://github.com/sawan-webmavens "sawan-webmavens (1 commits)")

---

Tags

laravelwebmavenslaravelscandocument

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/webmavens-laravelscandocument/health.svg)

```
[![Health](https://phpackages.com/badges/webmavens-laravelscandocument/health.svg)](https://phpackages.com/packages/webmavens-laravelscandocument)
```

###  Alternatives

[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[mreduar/s3m

Multipart Uploads using Laravel and AWS S3

174.3k](/packages/mreduar-s3m)[tapp/filament-maillog

Filament plugin to view outgoing mail

3070.3k1](/packages/tapp-filament-maillog)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[kolay/xlsx-stream

Streaming XLSX reader and writer for PHP and Laravel. Constant memory regardless of file size, direct S3 multipart streaming, optional born-indexed random access.

437.9k](/packages/kolay-xlsx-stream)[slimani/filament-media-manager

A media manager plugin for Filament.

126.9k](/packages/slimani-filament-media-manager)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
