crazybooot/base64-validation
Laravel validation rules for Base64-encoded data. Validate Base64 strings, files, and images with MIME type, size, min/max, and image dimension constraints—ideal for JSON APIs and inline file uploads.
base64_decode/regex checks.For executives: For Laravel products that accept base64-encoded uploads, this MIT package provides ready-made validation rules that can reduce custom code and speed delivery of common image/file upload features. It is low-cost and tactically useful, but it is not a platform-level security or media-processing solution. Recommend a limited pilot in one or two endpoints, with strict payload-size and MIME limits enforced outside the package.
For engineering: Adopt it only behind project-owned validation wrappers, with tests for malformed base64, oversized payloads, allowed/blocked MIME types, and decode failures. Validate before decoding or storing content, enforce gateway-level request limits, and keep a fallback custom-rule path because community adoption is modest. Approve the dependency if it saves more maintenance than it creates and does not expand the security blast radius.
How can I help you explore Laravel packages today?