Download the PHP package dskripchenko/laravel-php-docx without Composer
On this page you can find all versions of the php package dskripchenko/laravel-php-docx. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dskripchenko/laravel-php-docx
More information about dskripchenko/laravel-php-docx
Files in dskripchenko/laravel-php-docx
Package laravel-php-docx
Short Description Laravel bridge for dskripchenko/php-docx — Docx facade, Blade view to DOCX, config-driven page setup, response()->docx() macro, DOCX to HTML import and template-variable detection.
License MIT
Homepage https://github.com/dskripchenko/laravel-php-docx
Informations about the package laravel-php-docx
dskripchenko/laravel-php-docx
Laravel bridge for
dskripchenko/php-docx— the zero-dependency, MIT-licensed DOCX ⇄ HTML toolkit. Blade views straight to Word documents, DOCX import back to HTML, template-variable detection — with output validated against the ECMA-376 schemas on every push and reader fidelity tracked on an external corpus.🌐 English · 中文
Installation
The service provider and the Docx facade register automatically
(package discovery). Optionally publish the config:
Usage
Blade view → DOCX
HTML → DOCX
fromHtml() understands inline style="…" attributes;
fromHtmlWithStyles() additionally resolves <style> blocks and CSS
classes first.
DOCX → HTML (import)
Reads documents produced by Word, Google Docs, LibreOffice, PHPWord — fidelity is tracked on an external corpus in php-docx's CI.
Template variables
Fluent builder
The full builder API (tables, lists, images, page setup, watermarks) is documented in php-docx.
Configuration
config/php-docx.php:
Applied to every document produced through the facade; per-document setups via the native API win.
Related packages
- dskripchenko/php-docx — the underlying DOCX ⇄ HTML engine
- dskripchenko/php-docx-phpword — bridge to/from PHPWord's object model
- dskripchenko/laravel-php-pdf — the same bridge pattern for PDF
License
MIT.
All versions of laravel-php-docx with dependencies
dskripchenko/php-docx Version ^1.2
illuminate/http Version ^11.0 || ^12.0 || ^13.0
illuminate/support Version ^11.0 || ^12.0 || ^13.0
illuminate/view Version ^11.0 || ^12.0 || ^13.0