Download the PHP package toolreport/core without Composer
On this page you can find all versions of the php package toolreport/core. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download toolreport/core
More information about toolreport/core
Files in toolreport/core
Package core
Short Description PDF Designer for Laravel — template management, layout engine, dual PDF rendering (DomPDF + Composite TCPDF)
License MIT
Homepage https://github.com/toolreport/core
Informations about the package core
ToolReport Core
English docs below
PDF Designer for Laravel — template management, visual layout engine, and TCPDF composite PDF rendering.
Requirements
- PHP 8.3+
- Laravel 13+
- TCPDF composite engine (
tecnickcom/tc-lib-pdf)
Installation
Publish configuration and run migrations:
Or publish manually:
PDF Designer
The visual designer is a Vue 3 application included in the package. After installing the PHP package, build and configure the frontend:
Setup
Vite Configuration
Add the designer entry point and @ alias to your vite.config.ts:
Install Dependencies
Tailwind v4
Tell Tailwind to scan the designer source files. Add this line to your resources/css/app.css:
Build
Access
Navigate to http://your-app.com/pdf-designer
Customizing the View
Publish the Blade view to customize it:
This publishes resources/views/vendor/pdf-designer/pdf-designer.blade.php to your app.
Configuration
After publishing, edit config/pdf-designer.php:
Usage
Programmatic (Facade)
API Routes
Routes are auto-loaded by the service provider under the configured prefix (default: api/pdf-designer).
Templates
| Method | Endpoint | Description |
|---|---|---|
GET |
/templates |
List all templates |
POST |
/templates |
Create a template |
GET |
/templates/{id} |
Show a template |
PUT |
/templates/{id} |
Update a template |
DELETE |
/templates/{id} |
Delete a template |
POST |
/templates/{id}/duplicate |
Duplicate a template |
POST |
/templates/{id}/generate |
Generate a PDF from template |
Documents
| Method | Endpoint | Description |
|---|---|---|
GET |
/templates/{id}/documents |
List documents for a template |
GET |
/documents/{id} |
Show a document |
GET |
/documents/{id}/download |
Download a PDF document |
Compositions (Multi-page reports)
| Method | Endpoint | Description |
|---|---|---|
GET |
/compositions |
List all compositions |
POST |
/compositions |
Create a composition |
GET |
/compositions/{id} |
Show a composition |
PUT |
/compositions/{id} |
Update a composition |
DELETE |
/compositions/{id} |
Delete a composition |
POST |
/compositions/{id}/generate |
Generate a combined PDF |
Template Variables
| Method | Endpoint | Description |
|---|---|---|
GET |
/templates/{id}/template-vars |
List variables |
POST |
/templates/{id}/template-vars |
Create a variable |
PUT |
/templates/{id}/template-vars/{varId} |
Update a variable |
DELETE |
/templates/{id}/template-vars/{varId} |
Delete a variable |
Datasource Testing
| Method | Endpoint | Description |
|---|---|---|
POST |
/templates/{id}/datasources/test |
Test a datasource connection |
Health Check
| Method | Endpoint | Description |
|---|---|---|
GET |
/health |
API health check |
Expression Functions
ToolReport includes 30+ built-in functions for dynamic content: math, text, date, logic, and formatting. Use them inside labels with {{ }} syntax.
📖 Referencia completa (Español)
PDF Engine
ToolReport Core uses the PDF Engine (TCPDF composite) — component-based PDF rendering via tecnickcom/tc-lib-pdf. The visual designer uses a band-based layout with a composite node tree for precise positioning.
Testing
License
MIT