PHPackages                             klongchu/laravelpdfviewer - 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. klongchu/laravelpdfviewer

ActiveLibrary

klongchu/laravelpdfviewer
=========================

A Laravel Package for viewing PDF files or documents on Web App

1.0.0(2y ago)09MITJava

Since Oct 9Pushed 2y agoCompare

[ Source](https://github.com/klongchu/laravel-pdf-viewer)[ Packagist](https://packagist.org/packages/klongchu/laravelpdfviewer)[ RSS](/packages/klongchu-laravelpdfviewer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Laravel PDF VIEWER
------------------

[](#laravel-pdf-viewer)

[![Latest Stable Version](https://camo.githubusercontent.com/b3cd7b76dc0b70f9ea64991ce3fe58a483070b7a1b5cbf72d5c4784b34329de4/68747470733a2f2f706f7365722e707567782e6f72672f64617663706173313233342f6c61726176656c2d7064662d7669657765722f762f737461626c65)](https://packagist.org/packages/davcpas1234/laravelpdfviewer)[![License](https://camo.githubusercontent.com/d8fbef37c76096296f0cd799c780b4392716ebd239d505b769942ff867a31bf6/68747470733a2f2f706f7365722e707567782e6f72672f64617663706173313233342f6c61726176656c2d7064662d7669657765722f6c6963656e7365)](https://packagist.org/packages/davcpas1234/laravelpdfviewer)[![Build Status](https://camo.githubusercontent.com/5882d9f38f0b7f8110b6f4918e0d9f2ab99b637c90d0a34e434767f25f59e6db/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f64617663706173313233342f6c61726176656c2d7064662d7669657765722f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/goodnesskay/LARAVEL-PDF-VIEWER/build-status/master)

> This package is meant to help with viewing portable document file(PDF) on the web seamlessly when developing with Laravel. The package makes use of [ViewerJS](http://viewerjs.org)

Requirement
-----------

[](#requirement)

- [PHP](https://php.net) 5.6+
- [Composer](https://getcomposer.org)
- Pdf files

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

[](#installation)

To install into your project, run the command below in your terminal.

```
composer require klongchu/laravelpdfviewer

```

Once the package is done being installed, register the service provider. Open `config/app.php` and add the following to the `providers` key.

```
Klongchu\LaravelPdfViewer\LaravelPdfViewerServiceProvider::class,

```

Configure
---------

[](#configure)

Run this in your terminal:

```
php artisan vendor:publish --provider="Klongchu\LaravelPdfViewer\LaravelPdfViewerServiceProvider"

```

It will publish a folder named `laraview` to the root folder of your project.

How it Works
------------

[](#how-it-works)

Simple!!! After installations and configurations have been carried out successfully, add the code below to your html file

```
{{ asset('/laraview/#../folder-name/the-pdf-file.pdf') }}

```

It should look like this:

```

```

Then, you should have something like this:

[![Goodness Kayode Laravel-pdfviewer](https://cloud.githubusercontent.com/assets/16525886/26499445/9483e444-422a-11e7-81cf-9569b8f33669.png)](https://cloud.githubusercontent.com/assets/16525886/26499445/9483e444-422a-11e7-81cf-9569b8f33669.png)

**Note:**

> After `#../` in `{{ asset('/laraview/#../folder-name/the-pdf-file.pdf') }}`, what should follow is the folder name of the pdf files in the public folder then, the pdf file name can follow.

Contribute
----------

[](#contribute)

You can `fork` this package, `contribute` and `submit a pull request`. I will really love it.

License
-------

[](#license)

MIT License (MIT).

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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

Unknown

Total

1

Last Release

947d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6489801?v=4)[Klongchu Dev BUDHOSP](/maintainers/klongchu)[@klongchu](https://github.com/klongchu)

---

Top Contributors

[![davcpas1234](https://avatars.githubusercontent.com/u/3764587?v=4)](https://github.com/davcpas1234 "davcpas1234 (9 commits)")[![goodnesskay](https://avatars.githubusercontent.com/u/16525886?v=4)](https://github.com/goodnesskay "goodnesskay (8 commits)")[![klongchu](https://avatars.githubusercontent.com/u/6489801?v=4)](https://github.com/klongchu "klongchu (1 commits)")

---

Tags

laravelpdf viewerlaravel-viewerJSViewerJS

### Embed Badge

![Health badge](/badges/klongchu-laravelpdfviewer/health.svg)

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

###  Alternatives

[goodnesskay/laravelpdfviewer

A Laravel Package for viewing PDF files or documents on Web App

9050.5k](/packages/goodnesskay-laravelpdfviewer)[davcpas1234/laravelpdfviewer

A Laravel Package for viewing PDF files or documents on Web App

2413.9k](/packages/davcpas1234-laravelpdfviewer)[rtconner/laravel-likeable

Trait for Laravel Eloquent models to allow easy implementation of a 'like' or 'favorite' or 'remember' feature.

394388.0k5](/packages/rtconner-laravel-likeable)[hemp/presenter

Easy Model Presenters in Laravel

247592.6k1](/packages/hemp-presenter)[slowlyo/owl-admin

基于 laravel、amis 开发的后台框架~

61214.2k26](/packages/slowlyo-owl-admin)

PHPackages © 2026

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