---
name: "diff2php"
section: "1"
platform: "linux"
package: "hxtools"
version: "20231224-2+b2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/diff2php"
---

# diff2php(1)

transform a patch into a self-serving PHP file

## Name

diff2php — transform a patch into a self-serving PHP file

## Syntax

**diff2php** *file*

## Description

Create a PHP file from a patch. The PHP file will server the patch as colored HTML when viewed, or alternatively as raw text/plain for downloading.

## See also

[**hxtools**(7)](/hxtools/7.md)
