machy8/macdom
Macdom is a Laravel package for building and manipulating HTML elements in PHP. It provides a fluent, macroable API for creating nested markup, attributes, and dynamic content, helping keep Blade templates cleaner and easier to maintain.
Consider it when:
Look elsewhere when:
For executives (one paragraph): Macdom is a lightweight, permissively licensed HTML preprocessor that lets designers build page components using plain HTML tags instead of learning a templating language. The upside is faster design-to-code turnaround and zero runtime footprint in the shipped output. The downside is material: the project has had no release since 2017, has a negligible community, and carries no compatibility or security guarantees. My recommendation is not to adopt it as a new dependency in any product we intend to support. Its value to us is as a reference pattern for HTML-first authoring, or as a vendored component in a bounded, low-risk context where we explicitly accept ownership of the code. Adopting it broadly would trade a small short-term velocity gain for a long-term maintenance liability.
For engineering (summary): Small, self-contained PHP preprocessor implementing custom HTML tags, macros, and includes — no runtime dependency in output. BSD-3-Clause permits forking and internal redistribution. Key risks: no releases since 2017, no confirmed PHP 8 support, minimal test/CI signal, single-maintainer bus factor, and no community review of edge cases. If we proceed, scope it to non-critical surfaces, vendor the source into our repo, pin and document the fork, and add our own test coverage around the specific tags we use. Otherwise, standardize on Blade/Twig and use Macdom only as design inspiration.
How can I help you explore Laravel packages today?