{"id":13562965,"url":"https://github.com/goodnesskay/LARAVEL-PDF-VIEWER","last_synced_at":"2025-04-03T19:31:58.259Z","repository":{"id":62511855,"uuid":"80041272","full_name":"goodnesskay/LARAVEL-PDF-VIEWER","owner":"goodnesskay","description":"A Laravel Package for viewing PDF files or documents on the web without leaving your Web Application ","archived":false,"fork":false,"pushed_at":"2017-07-02T04:33:49.000Z","size":487,"stargazers_count":85,"open_issues_count":12,"forks_count":53,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-03-14T15:49:42.240Z","etag":null,"topics":["laravel","laravel-5-package","package","pdf","pdf-viewer","php"],"latest_commit_sha":null,"homepage":"https://goodnesskayode.me","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/goodnesskay.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-25T18:01:42.000Z","updated_at":"2024-02-06T16:12:59.000Z","dependencies_parsed_at":"2022-11-02T13:02:22.277Z","dependency_job_id":null,"html_url":"https://github.com/goodnesskay/LARAVEL-PDF-VIEWER","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goodnesskay%2FLARAVEL-PDF-VIEWER","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goodnesskay%2FLARAVEL-PDF-VIEWER/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goodnesskay%2FLARAVEL-PDF-VIEWER/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goodnesskay%2FLARAVEL-PDF-VIEWER/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/goodnesskay","download_url":"https://codeload.github.com/goodnesskay/LARAVEL-PDF-VIEWER/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246811310,"owners_count":20837752,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["laravel","laravel-5-package","package","pdf","pdf-viewer","php"],"created_at":"2024-08-01T13:01:13.825Z","updated_at":"2025-04-03T19:31:58.233Z","avatar_url":"https://github.com/goodnesskay.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"## Laravel PDF VIEWER\n\n[![Latest Stable Version](https://poser.pugx.org/goodnesskay/laravelpdfviewer/v/stable)](https://packagist.org/packages/goodnesskay/laravelpdfviewer)\n[![License](https://poser.pugx.org/goodnesskay/laravelpdfviewer/license)](https://packagist.org/packages/goodnesskay/laravelpdfviewer)\n[![Build Status](https://scrutinizer-ci.com/g/goodnesskay/LARAVEL-PDF-VIEWER/badges/build.png?b=master)](https://scrutinizer-ci.com/g/goodnesskay/LARAVEL-PDF-VIEWER/build-status/master)\n\n\u003e 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) \n\n## Requirement\n\n- [PHP](https://php.net) 5.6+ \n- [Composer](https://getcomposer.org)\n- Pdf files\n\n## Installation\nTo install into your project, run the command below in your terminal.\n\n```\ncomposer require goodnesskay/laravelpdfviewer\n```\n\nOnce the package is done being installed, register the service provider. Open `config/app.php` and add the following to the `providers` key.\n\n ```\n Goodnesskay\\LaravelPdfViewer\\LaravelPdfViewerServiceProvider::class,\n ```\n \n ## Configure\n Run this in your terminal:\n ```\nphp artisan vendor:publish --provider=\"Goodnesskay\\LaravelPdfViewer\\LaravelPdfViewerServiceProvider\" \n```\nIt will publish a folder named `laraview` to the root folder of your project.\n\n##  How it Works\nSimple!!! After installations and configurations have been carried out successfully, add the code below to your html file\n ```\n {{ asset('/laraview/#../folder-name/the-pdf-file.pdf') }}\n\n```\nIt should look like this:\n```\n\u003ciframe src =\"{{ asset('/laraview/#../pdf/test.pdf') }}\" width=\"1000px\" height=\"600px\"\u003e\u003c/iframe\u003e\n```\nThen, you should have something like this:\n\n![Goodness Kayode Laravel-pdfviewer](https://cloud.githubusercontent.com/assets/16525886/26499445/9483e444-422a-11e7-81cf-9569b8f33669.png)\n\n\n**Note:** \n\u003e After `#../` in `{{ asset('/laraview/#../folder-name/the-pdf-file.pdf') }}`, what should follow is the folder name of the pdf files in the public \nfolder then, the pdf file name can follow.\n\n\n\n## Contribute\n\nYou can `fork` this package, `contribute` and `submit a pull request`. I will really love it.\n\n##  You want to appreciate me?\n\nYou can appreciate me by **starring** this repository and follow me on [Github](https://github.com/goodnesskay) , [twitter](https://twitter.com/goodnesskayode) and subscribe to my [Youtube](https://www.youtube.com/channel/UC3h5EkjLBS5VtpJRVRrMD-Q) Channel!\n\nI love you like mad.\n\n**Goodness Kayode | Pusher of Codes**\n\n\n## License\n\nMIT License (MIT).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoodnesskay%2FLARAVEL-PDF-VIEWER","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoodnesskay%2FLARAVEL-PDF-VIEWER","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoodnesskay%2FLARAVEL-PDF-VIEWER/lists"}