hoa/visitor
Hoa\Visitor is a lightweight PHP library for implementing the Visitor design pattern. It provides visitor and visitable interfaces plus base classes, making it easy to add operations to object structures without modifying their classes.
hoa/visitor is a small, framework-agnostic implementation of the visitor pattern. In a Laravel/PHP codebase it fits only as a low-level domain utility for traversing object trees, ASTs, rule graphs, or export/report structures. It is not a Laravel package: no service provider, config, facade, or Laravel-specific integration. For most Laravel applications, an app-owned Visitor/accept() contract is sufficient and avoids an external dependency.Hoa\Visitor interfaces increases future replacement cost. Functional risk is lower because the pattern is simple, but operational risk is material.Hoa\Visitor types into controllers, models, or domain contracts.nikic/php-parser; for generic object graphs, an in-house visitor is usually cheaper than carrying an archived dependency.How can I help you explore Laravel packages today?