Download the PHP package zahfouf/php-libreoffice without Composer
On this page you can find all versions of the php package zahfouf/php-libreoffice. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download zahfouf/php-libreoffice
More information about zahfouf/php-libreoffice
Files in zahfouf/php-libreoffice
Download zahfouf/php-libreoffice
More information about zahfouf/php-libreoffice
Files in zahfouf/php-libreoffice
Vendor zahfouf
Package php-libreoffice
Short Description Framework-agnostic LibreOffice headless document conversion library for PHP.
License MIT
Package php-libreoffice
Short Description Framework-agnostic LibreOffice headless document conversion library for PHP.
License MIT
Please rate this library. Is it a good library?
Informations about the package php-libreoffice
PHP LibreOffice wrapper for converting Word to PDF
Simple PHP package to convert Word files (.doc, .docx) to PDF using LibreOffice (soffice) in headless mode.
Installation
CLI Commands
After installation, the CLI binary is available at:
lo:install
Installs LibreOffice automatically on Ubuntu/Debian.
Notes:
- Windows: automatic installation is not supported (the command prints the official download URL).
- Non-Debian/Ubuntu Linux: install LibreOffice using your distribution package manager.
lo:probe
Checks that the LibreOffice binary works and saves default values:
- binary path (
binary) - temporary directory (
temp_dir)
These values are stored in src/Config/global_options.php.
lo:convert
Converts a Word document to PDF.
Useful options:
--binary: path tosoffice--timeout: timeout in seconds--temp-dir: temporary directory--profile: strategy (none|per_job|per_worker|shared_mutex)--worker-id: worker id (forper_worker)--keep-temp: keep temporary files on failure
Usage example (code)
Test
All versions of php-libreoffice with dependencies
PHP Build Version
Package Version
The package zahfouf/php-libreoffice contains the following files
Loading the files please wait ...