Username Policy Validator
Validates usernames for length, allowed characters, reserved names, and impersonation risks.
Open FunctionReusable pure PHP functions for everyday application and LAMP stack work.
Validates usernames for length, allowed characters, reserved names, and impersonation risks.
Open FunctionCreates safe storage filenames from uploads while preserving useful extension metadata.
Open FunctionNormalizes search input for database search without breaking quoted phrases or Unicode.
Open FunctionParses comma-separated tags into unique, clean, length-limited tag values.
Open FunctionConverts checkbox, radio, and hidden boolean values into explicit true/false integers.
Open FunctionParses lists of IDs and rejects invalid, duplicate, or out-of-range values.
Open FunctionValidates locale strings such as en-US against an approved list.
Open FunctionValidates timezone identifiers and returns a safe DateTimeZone name.
Open FunctionValidates page number, page size, sort field, and sort direction.
Open FunctionReads nested array data using dot-path notation with safe fallback handling.
Open FunctionWrites nested array values by dot path without overwriting unrelated branches.
Open FunctionCompares nested arrays and reports added, removed, and changed paths.
Open Function