1. Go to this page and download the library: Download lacv/pipo-scanner 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/ */
lacv / pipo-scanner example snippets
use Lacv\PipoScanner\PipoScannerPlugin;
public function panel(Panel $panel): Panel
{
return $panel
->plugin(PipoScannerPlugin::make());
}
use Lacv\PipoScanner\Forms\Components\ScannerField;
ScannerField::make('document_path')
->label('Document')
->columnSpanFull(),
public ?string $document_path = null;
public function setScannerDocumentPath(string $path): void
{
$this->document_path = $path;
}
use Filament\Forms\Components\ViewField;
use Filament\Forms\Components\Hidden;
Hidden::make('document_path'),
ViewField::make('scanner')
->view('pipo-scanner::components.scanner')
->columnSpanFull(),