laragear/rut
Laragear/RUT brings Chilean RUT handling to Laravel: validate, format, and generate Rol Único Tributario values with a clean rule, cast, and helper-based API. Lightweight, framework-friendly, and ready for forms, models, and validation pipelines.
K check digit, leading zeros, lowercase input, format drift from users and spreadsheets — is where in-house implementations accumulate bug reports. For a small, well-scoped, maintained package, adopt rather than build; reserve engineering time for the parts of the Chilean flow that are actually differentiating.Consider adopting when:
Look elsewhere when:
On v5.3.0 specifically: this is a minor release with one small functional addition (static RUT helpers) plus StyleCI and CI-configuration housekeeping. There are no indicated breaking changes, so teams already on 5.2.x can upgrade within the same major with low risk. The practical decision is simply whether to adopt the new static helpers in seeders and tests — a nice-to-have, not a reason to re-evaluate the dependency.
For executives: We need to accept Chilean tax IDs (RUTs) in our flows. Rather than build and maintain that validation ourselves, we can adopt a small, focused open-source Laravel package that handles validation, formatting, and test-data generation. It is a low-risk, narrow dependency: it does one thing, it is actively maintained, and the latest release (v5.3.0) is a routine minor update with no breaking changes. It supports the Chile-facing parts of the roadmap — onboarding, checkout, invoicing — and reduces the support burden of malformed-ID issues. Important caveat for planning: it confirms a RUT is well-formed, not that the business is real; any requirement for official verification is a separate scope with its own vendor and cost.
For engineering: Laragear/Rut gives us RUT validation and normalization in the Laravel idioms we already use — validation rules, form requests, casting — plus generation for factories and seeders. v5.3.0 adds static helpers so we can validate/generate without instantiating the service, which is handy in seeders, Artisan commands, and tests; the rest of the release is StyleCI and CI configuration churn. Upgrade from 5.2.x is a drop-in within the same major. Suggested guardrails: pin the version, wrap the package behind a thin internal adapter (a single validation rule plus a normalizer) so a future swap or a shift to a multi-country library doesn't ripple through the codebase, and keep the "format-valid vs. registry-verified" distinction explicit in code comments and product copy so no one ships a compliance claim the package can't back.
How can I help you explore Laravel packages today?