spomky-labs/base64url
Fast RFC 4648 Base64 URL-safe encoder/decoder for PHP. Lightweight library to encode/decode URL-safe Base64 strings with high performance, compatible with PHP 7.1+. Ideal for JWT, web tokens, and URL parameters.
+/= characters break URLs).+ with -, / with _, and trims = padding).Str::base64Encode()).firebase/php-jwt).Executives: "This lightweight library solves a critical gap for URL-safe token generation in our APIs, reducing friction with third-party integrations (e.g., OAuth2, JWT). It’s MIT-licensed, battle-tested (154 stars), and avoids technical debt from custom implementations. Minimal risk, high ROI for compliance and scalability."
Engineering: "spomky-labs/base64url provides a drop-in solution for RFC 4648-compliant Base64 encoding/decoding—critical for APIs handling tokens or binary data in URLs. It’s a single Composer dependency with no external dependencies, and its last release (2020) aligns with our stable-feature policy. Recommend evaluating against Laravel’s native tools if available, but this is a safe bet for legacy systems or niche use cases."
How can I help you explore Laravel packages today?