PHP Package: phpoffice/phpword

PHPWord is a PHP library for generating Word documents with ease and flexibility, providing a wide range of functionalities for document creation and manipulation.

Current Version: 1.4.0
Last Updated: 2025-06-05
PHP Requirement: ^7.1|^8.0
Dependencies: None

Package Description

PHPWord is a powerful PHP library that allows developers to effortlessly create, modify, and convert Word documents using PHP. With a comprehensive set of features and extensive customization options, PHPWord simplifies the process of working with Word documents in a PHP environment, making it a valuable tool for a variety of applications and projects.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 1.4.0

Download Download v1.4.0

Previous Versions

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com

require_once 'libs/phpoffice/phpword/1.4.0/loader.php';
use PhpOffice\PhpWord\PhpWord;

$obj = new PhpWord();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.