Download the PHP package yoosuf/docit without Composer

On this page you can find all versions of the php package yoosuf/docit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package docit

Docit for Laravel

Production-ready document generation for Laravel from DOCX and fillable PDF templates.

Docit helps teams ship contracts, invoices, certificates, and operational documents with a reliable API-first workflow.

Why teams adopt Docit

Core capabilities

Installation

Quick start (5 minutes)

Store templates in your configured templates directory and call your document endpoint.

Commands and CLI workflow

Docit package itself does not register custom Artisan commands. It relies on Laravel's standard setup commands plus your host application's CLI commands.

Package setup commands

How they work:

Host app CLI commands (example from this repo)

If your host app includes command wrappers, you can run generation from terminal using the same service pipeline as the API.

What these commands do:

Full command reference and internal flow:

Use case: Generate contracts, agreements, and certificates without HTML templates

Docit is designed for teams that want document output from real office templates (DOCX/PDF), not Blade or HTML-to-PDF rendering.

Workflow

  1. Your legal or operations team prepares templates in Word or fillable PDF:
    • employment_contract_v1.docx
    • service_agreement_v1.docx
    • completion_certificate_v1.docx
  2. Save templates in DOCUMENT_TEMPLATES_DIR.
  3. Send business data as JSON to the document API.
  4. Docit merges placeholders and returns a generated document file.

Contract generation example

Agreement generation example

Certificate generation example

Why this approach scales

Common use cases

Docit can power most operational document workflows where data lives in Laravel and output must be DOCX or PDF.

Scenario playbook

Payroll and HR scenarios

Legal and operations scenarios

High-volume scenarios

Document-to-PDF conversion scenarios in PHP

Docit supports conversion paths commonly needed in Laravel backends.

Input template Output requested Backend path
DOCX DOCX Placeholder merge using PhpWord TemplateProcessor
DOCX PDF Merge in DOCX, then convert via LibreOffice headless mode
DOC DOCX Convert legacy DOC to DOCX via LibreOffice
DOC PDF Convert DOC to DOCX/PDF via LibreOffice pipeline
Fillable PDF PDF Fill AcroForm fields with pdftk

Recommended conversion strategy

  1. Keep a canonical editable template in DOCX for business/legal updates.
  2. Generate PDF for distribution and long-term archival.
  3. Use async mode for large runs to avoid request timeouts.
  4. Use versioned template naming (*_v1, *_v2) for safe rollouts.

Conversion caveats to plan for

PDF form filling details

For fillable PDF templates (AcroForms), Docit maps JSON payload keys to PDF field names and renders a final PDF.

How field mapping works

  1. Build a fillable PDF template with stable field names.
  2. Use the same field names as JSON keys in data.
  3. Submit create request with template_format set to pdf.
  4. Docit fills fields using pdftk and stores output metadata.

Field types commonly supported

PDF form best practices

Example: payslip PDF payload

Performance: why Docit is fast in real workloads

Docit is optimized for operational throughput where you may generate hundreds or thousands of files per run.

Practical speed expectations

Actual performance depends on template complexity, server CPU, storage speed, and installed binary versions.

Benchmark report: Docit vs Browsershot

Docit is generally a better fit than Browsershot for contract, certificate, and payslip pipelines where throughput and operational reliability matter more than browser-accurate web rendering.

High-level findings:

Read the full benchmark report and methodology:

Documentation

Why this is ideal vs HTML-to-PDF generation

HTML-to-PDF is useful for web-like layouts, but template-driven document generation is often better for legal and operational documents.

1) Better ownership model

2) Higher output consistency

3) Lower maintenance cost

4) Stronger compliance and audit workflows

5) Safer at scale

6) More natural fit for form-centric workflows

Marketing snapshot

Docit is the production document engine for Laravel teams that need speed, reliability, and business-friendly template ownership.

One-line pitch

Docit turns Laravel into a reliable document factory for DOCX and PDF workflows without HTML template debt.

Configuration

Primary config file:

Important environment variables:

Positioning statement

If your team is generating operational documents inside Laravel and needs reliability, traceability, and queue-safe retries, Docit is purpose-built for that workflow.

Contributing

Issues and pull requests are welcome.

License

MIT


All versions of docit with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/database Version ^10.0|^11.0|^12.0
illuminate/http Version ^10.0|^11.0|^12.0
illuminate/queue Version ^10.0|^11.0|^12.0
illuminate/routing Version ^10.0|^11.0|^12.0
mikehaertl/php-pdftk Version ^0.14.4
phpoffice/phpword Version ^1.4
symfony/process Version ^6.4|^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package yoosuf/docit contains the following files

Loading the files please wait ...