PHP code example of dissnik / moonshine-pdf-viewer

1. Go to this page and download the library: Download dissnik/moonshine-pdf-viewer library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

dissnik / moonshine-pdf-viewer example snippets


use DissNik\MoonShinePdfViewer\Components\PdfViewer;

PdfViewer::make(
    url: 'https://example.com/file.pdf'
);
bash
php artisan vendor:publish --tag=moonshine-pdf-viewer-assets --force
bash
php artisan vendor:publish --tag=moonshine-pdf-viewer-lang
bash
php artisan vendor:publish --tag=moonshine-pdf-viewer-views