PHPackages                             ziming/laravel-docparser - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. ziming/laravel-docparser

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

ziming/laravel-docparser
========================

Laravel package for Docparser

1.2(5mo ago)37MITPHPPHP ^8.3CI passing

Since Feb 3Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/ziming/laravel-docparser)[ Packagist](https://packagist.org/packages/ziming/laravel-docparser)[ Docs](https://github.com/ziming/laravel-docparser)[ GitHub Sponsors](https://github.com/ziming)[ RSS](/packages/ziming-laravel-docparser/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (5)Dependencies (26)Versions (8)Used By (0)

Laravel package for Docparser
=============================

[](#laravel-package-for-docparser)

[![Latest Version on Packagist](https://camo.githubusercontent.com/28cab6abb6fca0aec6173e592a39261913d317a741e5ad977e0a6cda9c3053c3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a696d696e672f6c61726176656c2d646f637061727365722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ziming/laravel-docparser)[![GitHub Tests Action Status](https://camo.githubusercontent.com/0decf1c34b9fe05cab87739d8042458d8b8c471b92e4d4f636e0645c56c49218/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7a696d696e672f6c61726176656c2d646f637061727365722f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/ziming/laravel-docparser/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/c899ca0e646d1e7950f52f76f0d913325c9e1606f97502b4f25bb188e62570e8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7a696d696e672f6c61726176656c2d646f637061727365722f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/ziming/laravel-docparser/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/15aeec125ce247deea5ee7bd11e2cfffd3bd289556486043cbc7f99e446a0276/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7a696d696e672f6c61726176656c2d646f637061727365722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ziming/laravel-docparser)

Laravel Package for [Docparser](https://docparser.com/?ref=iavng). A user friendly document parser SaaS.

Support us
----------

[](#support-us)

You can support me by becoming a customer of Docparser through my referral link:

[Docparser](https://docparser.com/?ref=iavng)

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

[](#installation)

You can install the package via composer:

```
composer require ziming/laravel-docparser
```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-docparser-config"
```

This is the contents of the published config file:

```
return [
    'base_url' => env('DOCPARSER_BASE_URL', 'https://api.docparser.com/'),
    'api_key' => env('DOCPARSER_API_KEY'),
];
```

Usage
-----

[](#usage)

```
$docparser = new Ziming\LaravelDocparser::make();
echo $docparser->fetchDocumentFromUrl($parserId, $url);
```

```
// Alternatively, you can use the facade
use Ziming\LaravelDocparser\Facades\LaravelDocparser;
LaravelDocparser::fetchDocumentFromUrl($parserId, $url);
```

Look at the source code of `src/LaravelDocparser.php` for more methods (link below):

[LaravelDocparser.php](https://github.com/ziming/laravel-docparser/blob/main/src/LaravelDocparser.php)

To learn more about what each method does in more detail, please refer to the [Docparser API documentation](https://docparser.com/api/?iavng).

Other Resources to Get Started
------------------------------

[](#other-resources-to-get-started)

To learn more about Docparser, I recommend the following resources:

- [Docparser Features](https://docparser.com/features?ref=iavng)
- [Docparser Pricing](https://docparser.com/pricing?ref=iavng)
- [Docparser Blog on Extracting Data from PDF](https://docparser.com/blog/extract-data-from-pdf/?ref=iavng)
- [Docparser Blog on Zonal OCR](https://docparser.com/blog/zonal-ocr/?ref=iavng)

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

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

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

[](#security-vulnerabilities)

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

Credits
-------

[](#credits)

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

License
-------

[](#license)

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

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance82

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~102 days

Total

5

Last Release

152d ago

Major Versions

0.2 → 1.02025-02-04

### Community

Maintainers

![](https://www.gravatar.com/avatar/20bbe714df709bd31994360fbba65adce9f28fd930c5590265d4d58c452fe32e?d=identicon)[ziming.opensource](/maintainers/ziming.opensource)

---

Top Contributors

[![ziming](https://avatars.githubusercontent.com/u/679513?v=4)](https://github.com/ziming "ziming (14 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (11 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (3 commits)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (1 commits)")

---

Tags

doc-parserdocparserdocument-parsinghacktoberfestlaravelocrphplaravelziminglaravel-docparser

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/ziming-laravel-docparser/health.svg)

```
[![Health](https://phpackages.com/badges/ziming-laravel-docparser/health.svg)](https://phpackages.com/packages/ziming-laravel-docparser)
```

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

13.0k107.5M1.6k](/packages/spatie-laravel-permission)[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.2k12.6M139](/packages/dedoc-scramble)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k5.4M50](/packages/spatie-laravel-pdf)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

818355.4k3](/packages/defstudio-telegraph)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3915.5k](/packages/rawilk-profile-filament-plugin)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

46273.9k](/packages/harris21-laravel-fuse)

PHPackages © 2026

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