sooyoos/extractor
A Laravel/PHP package that provides a simple, extensible extractor for pulling structured data from input using configurable rules. It keeps extraction logic reusable and organized, with a clean API that fits naturally into Laravel applications and is easy to extend for custom sources.
Consider it when:
__(), trans(), @lang) and statically greppable.Look elsewhere when:
For executives: This is a small, free, MIT-licensed developer utility that scans PHP source code and lists every string we would need to translate. It is not shipped to customers and adds no runtime risk, so the downside is bounded — worst case we spend a few engineering days and discard it. Its strategic value is measurement: it replaces estimates about localization cost with an actual count, which is what we need before committing budget to a translation vendor or a launch date in new markets. Caveat worth stating plainly: the project has effectively no community (zero stars, zero dependents) and no support. I recommend a timeboxed evaluation, adoption only behind a pinned version with a named internal owner, and no roadmap dependency on upstream maintenance.
For engineering: It's a dev-time, CI-friendly extractor for Laravel translation calls — low integration cost, no production footprint, easy to remove. The trade-off is maintenance: we'd be adopting unowned code, so the deal is a timeboxed spike, a fork-or-vendor decision if it proves useful, and a test suite around its output so an upstream disappearance is a non-event. If the spike shows gaps in Blade/JS coverage or plural handling, we stop and evaluate TMS-native extractors instead — that is a valid, cheap outcome.
How can I help you explore Laravel packages today?