{"repo":"endless-creativity/elephant-php","free":true,"listed":false,"github":"https://github.com/endless-creativity/elephant-php","clone":"git clone https://github.com/endless-creativity/elephant-php.git","description":"Convert .docx to Markdown or semantic HTML — no external dependencies.","language":"PHP","stars":13,"topics":["docx","docx-parser","llm","markdown","rag"],"license":null,"category":"ai-agents","readme_excerpt":"elephant-php Convert .docx files to Markdown or semantic HTML, in pure PHP. No external binaries (LibreOffice, Pandoc), no heavyweight library (PHPWord), no shell-out — just the standard PHP extensions. elephant-php reads the structure of a document — headings, lists, tables, footnotes, images — instead of trying to reproduce Word's visual formatting. It is a PHP port of mammoth.js and adopts its core philosophy and style-mapping DSL. Features - Pure PHP , no LibreOffice / Pandoc / shell-out — only the standard dom , libxml , mbstring , xmlreader , zip extensions. - HTML and Markdown output from the same intermediate model. - Headings (h1–h6), paragraphs, runs with bold / italic / strike / superscript / subscript, hyperlinks, nested lists (mixed ul / ol ), tables ( colspan + rowspan from gridSpan and vMerge ), images (embedded as data URIs by default, customisable handler), footnotes and endnotes (with backlinks), comments, content controls ( w:sdt ), symbol fonts (Wingdings / Webdings / Symbol via dingbat-to-unicode), legacy hyperlink complex fields ( w:fldChar ), checkbox form fields (SDT wordml:checkbox and FORMCHECKBOX ) rendered as in HTML and [x] / [ ] in Markdown. - Mammoth-compatible style-mapping DSL: p[style-name='Heading 1'] = h1:fresh , b = strong , r.Code = code , comment-reference = sup , highlight[color='yellow'] = mark , br[type='page'] = hr , table.Grid = table.fancy , = ! for ignore. Supports :fresh , :separator('text') and backslash escape sequences ( \\n , ","default_branch":null,"files":null,"tree":[],"storefront":"/r/endless-creativity","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/endless-creativity/elephant-php/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}