hoa/kitab
Hoa\Kitab is a PHP library for authoring and compiling structured books. It provides tools to organize chapters and sections, handle references, and generate publishable documentation or ebook output within the Hoa ecosystem.
nikic/php-parser 3.* → 4.*), which is a compatibility event for anyone pinning or forking.Consider it when:
php-parser 4.* raises the effective PHP floor versus 3.* but does not by itself demonstrate PHP 8.x or current Laravel support — verify in a container before committing.Look elsewhere when:
To executives: This is a low-cost, time-boxed experiment in documentation quality, not a platform investment. Kitab tests whether the code examples in our developer docs actually work, which reduces support tickets and onboarding friction for PHP/Laravel consumers. The latest release, 0.12, is incremental — better parsing for anonymous classes plus a supporting-library upgrade — so it improves the tool's coverage of realistic examples without changing the risk profile. The caveat is still material: release cadence is low and there are no downstream dependents, so this carries maintenance and compatibility risk. Recommend a small proof of concept in CI, with no placement on a critical path and a pre-agreed exit to an in-house checker if the spike succeeds.
To engineering: Kitab is a documentation rendering and testing companion aligned with Documentation-Driven Quality. Treat it as an isolated tooling dependency: pin it, vendor or fork it, run it only in CI or a docs build job, and keep it out of application runtime. 0.12 adds anonymous-class support in the intermediate representation and moves nikic/php-parser from 3.* to 4.* — budget time to re-validate parsing of existing snippets and confirm the parser's PHP floor against our CI image, since a major parser bump landed in a minor release. First validate PHP 8.x compatibility and CI footprint. In parallel, estimate the in-house alternative — a PHPUnit-driven harness that extracts and executes documented snippets — because that is likely the more durable path for a Laravel codebase. Success criteria: documented examples execute reliably, failures are actionable, and maintenance cost is lower than the support cost of stale docs.
How can I help you explore Laravel packages today?