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(6mo ago)31.3k1[1 issues](https://github.com/webmavens/Laravel-scandocument/issues)MITPHPPHP ^8.0

Since May 15Pushed 3mo 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 1mo ago

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

38

—

LowBetter than 85% of packages

Maintenance67

Regular maintenance activity

Popularity19

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

201d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6e073f589fa8589f8ad99461399e6ca6de1accfb94030fb0526707e17faa8ff5?d=identicon)[webmavens](/maintainers/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

[aws/aws-sdk-php-laravel

A simple Laravel 9/10/11/12/13 service provider for including the AWS SDK for PHP.

1.7k35.6M75](/packages/aws-aws-sdk-php-laravel)[spatie/livewire-filepond

Upload files using Filepond in Livewire components

306452.7k3](/packages/spatie-livewire-filepond)[elegantly/laravel-invoices

Store invoices safely in your Laravel application

23131.8k](/packages/elegantly-laravel-invoices)[mreduar/s3m

Multipart Uploads using Laravel and AWS S3

173.6k](/packages/mreduar-s3m)[mwguerra/filemanager

A full-featured file manager package for Laravel and Filament v5 with dual operating modes, drag-and-drop uploads, S3/MinIO support, and comprehensive security features.

718.5k1](/packages/mwguerra-filemanager)[codebar-ag/laravel-flysystem-cloudinary

Cloudinary Flysystem v1 integration with Laravel

1224.9k2](/packages/codebar-ag-laravel-flysystem-cloudinary)

PHPackages © 2026

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