PHPackages                             mkgrow/content-control - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. mkgrow/content-control

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

mkgrow/content-control
======================

PHPWord extension for Content Controls (Structured Document Tags) conforming to ISO/IEC 29500-1:2016 §17.5.2. Enables document-level content protection and metadata tagging in Word .docx files.

v0.7.1(3mo ago)0184MITPHPPHP &gt;=8.2CI passing

Since Jan 29Pushed 3mo agoCompare

[ Source](https://github.com/mateusbandeira182/ContentControl)[ Packagist](https://packagist.org/packages/mkgrow/content-control)[ RSS](/packages/mkgrow-content-control/feed)WikiDiscussions main Synced today

READMEChangelog (10)Dependencies (10)Versions (14)Used By (0)

ContentControl
==============

[](#contentcontrol)

[![Build Status](https://github.com/mateusbandeira182/ContentControl/workflows/CI/badge.svg)](https://github.com/mateusbandeira182/ContentControl/actions)[![Code Coverage](https://camo.githubusercontent.com/455f0c95bac6727ee0e2d64c071d25d4b79ba4d8849f8fd02a988b8c5bb8de70/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f7665726167652d38322e322532352d677265656e2e737667)](coverage/html/index.html)[![Tests](https://camo.githubusercontent.com/df06924985bd9b21a4a20a958a85e87367c2ab285560bc2d8af2eba8b8939d18/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f74657374732d3535392532307061737365642d627269676874677265656e2e737667)](https://github.com/mateusbandeira182/ContentControl/actions)[![PHPStan Level](https://camo.githubusercontent.com/1bc07920f0d36e55c17e1d38b1caa132cc605f51a82b388c962870b9a747b898/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6c6576656c253230392d627269676874677265656e2e737667)](phpstan.neon)[![License: MIT](https://camo.githubusercontent.com/08cef40a9105b6526ca22088bc514fbfdbc9aac1ddbf8d4e6c750e3a88a44dca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e737667)](LICENSE)[![PHP Version](https://camo.githubusercontent.com/d840cef9807c8f76051ad687841d67f4d830c84e0d83236968e53124ef6742d5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344382e322d3838393242462e737667)](https://php.net)[![Version](https://camo.githubusercontent.com/acfa491b0acb865a795ba1bbb76a1fd7ca58b1130dbffa910a2931c0c0c6c7ae/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d302e372e312d626c75652e737667)](CHANGELOG.md)

Portuguese version: [readme.pt-BR.md](readme.pt-BR.md)

**ContentControl** is a PHP library that extends [PHPOffice/PHPWord](https://github.com/PHPOffice/PHPWord) to add Word Content Controls (Structured Document Tags/SDTs) to .docx files. It enables document-level content protection and metadata tagging conforming to **ISO/IEC 29500-1:2016 §17.5.2**.

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Quick Start](#quick-start)
- [Features](#features)
- [Documentation](#documentation)
    - [Architecture Overview](#architecture-overview)
    - [Core Components](#core-components)
    - [Configuration](#configuration)
    - [Error Handling](#error-handling)
    - [Logging and Debugging](#logging-and-debugging)
- [Testing](#testing)
- [Changelog and Contributing](#changelog-and-contributing)
- [Security](#security)
- [Credits](#credits)
- [License](#license)

Installation
------------

[](#installation)

Install via Composer:

```
composer require mkgrow/content-control
```

**Requirements:**

- PHP &gt;= 8.2
- ext-dom
- ext-mbstring
- ext-zip
- phpoffice/phpword ^1.4
- ramsey/uuid ^4.7

Quick Start
-----------

[](#quick-start)

### Creating a New Document with Content Controls

[](#creating-a-new-document-with-content-controls)

```
