Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Fpdi Laravel Package

itbz/fpdi

Discontinued unofficial PSR-4 fork of Setasign FPDI (Free PDF Document Importer). Instantiates via \fpdi\FPDI and supports TCPDF with patched versions. Prefer the official FPDI via composer/GitHub, ideally FPDI 2.0+.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • PDF Document Merging/Importing: Enables features like combining multiple PDFs, embedding PDFs into dynamic reports, or generating composite documents (e.g., invoices with attached contracts).
  • Legacy System Modernization: Justifies migrating older PHP/PDF workflows to a PSR-4-compliant stack (though this package is now deprecated, it may still be relevant for legacy codebases).
  • Build vs. Buy: Validates a "buy" decision for PDF manipulation in PHP (though the official FPDI 2.0+ is now the recommended alternative).
  • Use Cases:
    • Generating multi-page reports with embedded static PDFs (e.g., legal disclaimers, templates).
    • Dynamic document assembly (e.g., e-commerce order confirmations with attached terms).
    • Archival workflows (e.g., appending signatures or stamps to existing PDFs).

When to Consider This Package

  • Legacy Codebases: Only relevant if already using itbz/fpdi or fpdf in a pre-2016 PHP project (post-2016, use Setasign/FPDI 2.0+).
  • TCPDF Dependency: Required if integrating with TCPDF (version ≥1.5.2-patch1).
  • PSR-4 Compliance: Needed for projects enforcing PSR-4 autoloading (though this package is now obsolete).
  • Avoid If:
    • Starting a new project (use FPDI 2.0+ or alternatives like Dompdf, TCPDF, or Laravel Snappy).
    • Requiring active maintenance or modern PHP (7.4+) support.
    • Needing advanced features (e.g., PDF/A compliance, modern encryption).

How to Pitch It (Stakeholders)

Executives: "This package enables PDF document merging/importing in PHP, reducing reliance on proprietary tools for dynamic report generation. While deprecated, it’s a lightweight solution for legacy systems needing to embed PDFs into workflows (e.g., invoices, contracts). For new projects, we should evaluate [Setasign/FPDI 2.0+] instead."

Engineering: *"Pros:

  • PSR-4 compliant (easier autoloading in modern PHP projects).
  • Lightweight (~10KB) and MIT-licensed.
  • Works with TCPDF for advanced features.

Cons:

  • Archived: No updates since 2015; use FPDI 2.0+ for new work.
  • Limited to PHP 5.3+ (consider alternatives for PHP 8+).
  • Migration Path: Replace itbz/fpdi with setasign/fpdi in composer.json and update namespaces (\fpdi\FPDI\setasign\Fpdi\Fpdi).

Recommendation: Only adopt if maintaining a legacy system. Otherwise, prioritize [FPDI 2.0+] or evaluate Laravel-specific packages like barryvdh/laravel-snappy for PDF generation."*

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky