PHPackages                             restruct/docsys-tools - 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. restruct/docsys-tools

ActiveLibrary

restruct/docsys-tools
=====================

Umbrella package: portable DocSys CLI tool wrappers + system tool paths (GS, convert, soffice)

1.0.0(8mo ago)0158[1 issues](https://github.com/restruct/docsys-tools/issues)MITPHP

Since Apr 25Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/restruct/docsys-tools)[ Packagist](https://packagist.org/packages/restruct/docsys-tools)[ RSS](/packages/restruct-docsys-tools/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (6)Used By (0)

restruct/docsys-tools
=====================

[](#restructdocsys-tools)

Umbrella package that bundles all DocSys CLI tool wrappers and defines system tool paths.

Sub-packages (bundled tools)
----------------------------

[](#sub-packages-bundled-tools)

PackageConstantTool`restruct/cpdf-static``CPDF_PATH`Coherent PDF v2.8.1 (macOS + Linux, x64 + ARM)`restruct/wkhtmltopdf-static``WKHTMLTOPDF_PATH`wkhtmltopdf 0.12.6 with patched Qt + Docker`restruct/xpdf-static``XPDF_BIN_DIR`xpdf tools (pdftotext, pdfinfo, pdftopng, etc.)`restruct/dot-static``GRAPHVIZ_DOT_PATH`Graphviz dot (static Linux binary + Homebrew)Each sub-package has its own bootstrap and PHP wrapper classes.

System tool paths (this package)
--------------------------------

[](#system-tool-paths-this-package)

This package's `bootstrap.php` defines paths for tools that must be installed on the system:

ConstantToolInstall`GS_PATH`Ghostscript`apt install ghostscript``CONVERT_PATH`ImageMagick/GraphicsMagick`apt install graphicsmagick-imagemagick-compat``SOFFICE_PATH`LibreOffice headless`apt install libreoffice-nogui`Usage
-----

[](#usage)

Each sub-package auto-initializes via its own bootstrap. To also define system tool paths:

```
require_once 'vendor/restruct/docsys-tools/bootstrap.php';
```

Or override via environment variables:

```
GS_PATH=/usr/bin/gs
CONVERT_PATH=/usr/bin/convert
SOFFICE_PATH=/usr/bin/soffice
```

Migration from v0.x
-------------------

[](#migration-from-v0x)

The monolithic `DocSysTools::init_paths()` / `DocSysTools::init()` API is removed. Each sub-package now handles its own binary resolution independently.

Constant changes:

- `XPDF_BIN_PATH` → `XPDF_BIN_DIR` (from restruct/xpdf-static)
- `PDFINFO_PATH` → use `Restruct\Xpdf\Xpdf::getToolPath('pdfinfo')`
- `PDFTOPNG_PATH` → use `Restruct\Xpdf\Xpdf::getToolPath('pdftopng')`
- `GRAPHVIZ_DOT_PATH` → still `GRAPHVIZ_DOT_PATH` (from restruct/dot-static)
- `DOT_PATH` → removed, use `GRAPHVIZ_DOT_PATH`

System tool installation
------------------------

[](#system-tool-installation)

See [previous README](https://github.com/restruct/docsys-tools/blob/f0db0eb/README.md) for detailed installation instructions for wkhtmltopdf, convert, gs, and soffice.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance75

Regular maintenance activity

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~127 days

Total

5

Last Release

243d ago

Major Versions

0.1.3 → 1.0.02025-09-17

### Community

Maintainers

![](https://www.gravatar.com/avatar/4d3680d6353e5f171543435b89965ba2588186ad7ec0ec97cbf572704fec2a4f?d=identicon)[micschk](/maintainers/micschk)

---

Top Contributors

[![micschk](https://avatars.githubusercontent.com/u/1005986?v=4)](https://github.com/micschk "micschk (12 commits)")[![hubertusanton](https://avatars.githubusercontent.com/u/582188?v=4)](https://github.com/hubertusanton "hubertusanton (1 commits)")

### Embed Badge

![Health badge](/badges/restruct-docsys-tools/health.svg)

```
[![Health](https://phpackages.com/badges/restruct-docsys-tools/health.svg)](https://phpackages.com/packages/restruct-docsys-tools)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
