pliego-laravel maintained by oxhq
oxhq/pliego-laravel
Experimental Laravel 13 bridge for application-owned Blade documents. See the Pliego repository for the support profile and CLI bridge guide.
composer require oxhq/pliego-laravel:^0.1.0-alpha.1 oxhq/pliego-php:^0.1.0-alpha.1
Both constraints are explicit during alpha so Composer accepts the transitive PHP package without changing the application's global minimum stability.
Offline assets are the reproducible default. Live URLs are opt-in with
allowHttpRoot(); a Google Fonts stylesheet needs explicit roots for both
fonts.googleapis.com and fonts.gstatic.com/s/.
use Pliego\Laravel\Experimental\Facades\Document;
$offline = Document::view('invoice')
->denyNetwork()
->asset('fonts/invoice.woff2', resource_path('fonts/invoice.woff2'))
->render();
$live = Document::view('invoice-with-google-fonts')
->allowHttpRoot('https://fonts.googleapis.com/')
->allowHttpRoot('https://fonts.gstatic.com/s/')
->render();
// Exact resource URLs and hashes:
$resources = $live->artifactsPath.'/resources.jsonl';
Keep the Google Fonts <link> unchanged in the Blade view. Catch
Pliego\Php\Experimental\Exception\RenderException for typed failures; its
input and artifact paths point to retained evidence.
Completed jobs are retained for one day and failed jobs for seven days by default. Their inputs, PDFs, extracted text, URLs, and diagnostics may contain private data. Preview or apply cleanup with:
php artisan pliego:prune --dry-run
php artisan pliego:prune
Set both PLIEGO_SUCCESS_RETENTION_SECONDS=0 and
PLIEGO_FAILURE_RETENTION_SECONDS=0, then prune, to delete completed evidence
immediately after acceptance.
Migrating a production document? Request a fixed-scope private preflight. All generic renderer and package capabilities remain public OSS.