ircmaxell/filterus
Filterus is a lightweight PHP library for filtering and validating data with composable, object-oriented filters. It handles strings, numbers, arrays, emails, URLs, regex, ranges, and defaults, with clear error reporting for safer input handling.
Validator/Form Requests or raw filter_var(). Filterus is relevant as a reference design for a small, chainable filter abstraction (string/int/array/regex/email filters).Consider it when:
Look elsewhere when:
Validator, Form Requests, and filter_var(); they are maintained, documented, and PHP 8+ compatible.webmozart/assert, or Laravel's validator, which have active security review.To executives: This is a small, zero-dependency filtering library with a clean API and a decent star count, but it is effectively unmaintained and predates modern PHP. It is not a strategic dependency — the recommendation is to avoid adding it to new products and to use it, if at all, only as design inspiration or a short-term stopgap in legacy systems. Cost of adoption is low; cost of long-term ownership (forking, patching, security review) is the real risk.
To engineering: The functional, composable filter design is genuinely useful and worth borrowing for an internal validation utility. However, the package targets PHP 5.x, lacks active maintenance, and has no guarantees around PHP 8 compatibility or security patches. If adopted, vendor/pin it, wrap it behind an internal FilterInterface, and isolate call sites so it can be swapped for Laravel's validator or filter_var() without touching product code.
Recommendation: Do not adopt as a new dependency. Evaluate the source as reference material for a small internal filter layer; standardize new work on Laravel's native validation stack.
How can I help you explore Laravel packages today?