nunomaduro/yorn
Yorn is a small, focused Laravel package from Nuno Maduro (Pest, Larastan). Install it with Composer and it slots neatly into an existing app, with a clean API, no heavy configuration, and the framework-native feel his packages are known for.
import/export to PHP via a custom runtime layer so files can declare explicit module contracts instead of relying on namespace + PSR-4 conventions. For a Laravel estate the honest fit is narrow: it does not replace Composer autoloading, service providers, the container, package discovery, config, routes, or migrations, and it does not give you a Laravel-native module system. The realistic TPM framing is architecture-decision input, not a build dependency: it is a concrete, working demo of what stricter module boundaries could feel like, useful when arguing for (or against) investment in architecture tests, static-analysis boundary rules, or a modular monolith refactor.composer require and go — a working demo requires compiling/building a nonstandard PHP runtime or loader in a container, then proving the rest of the toolchain survives. The feasibility question a TPM must force is not "does the demo run?" but "what breaks around it?" Validate Composer, Laravel's autoloader, PHPUnit, PHPStan/Psalm, Pint, IDE navigation, Docker/CI images, opcache/preloading, and deployment artifacts before drawing any conclusion.__FILE__/__DIR__ may point at transformed output, static analysis goes blind, and builds risk becoming non-deterministic. Mitigating factors: MIT license is permissive and the maintainer (Nuno Maduro) is highly credible, so the directional signal is worth more than the package itself.description.md describes a Symfony Console CLI framework ("define commands, arguments and options without boilerplate"), which directly contradicts the package's stated purpose (import/export modules). A TPM should read this as a doc-maturity and maintenance-attention signal — if the front-page description does not describe the product, assume the README, version support matrix, and upgrade notes are also unreliable, and treat tests/ and source as the only source of truth.How can I help you explore Laravel packages today?