src/Helpers/EWT.php
public static function base64url_decode($input)
  {
    $remainder = strlen($input) % 4;
    if ($remainder) {
        $padlen = 4 - $remainder;
        $input .= str_repeat('=', $padlen);
    }

    return base64_decode(strtr($input, '-_', '+/'));
  }
public static function base64url_decode($input)
  {
    $remainder = strlen($input) % 4;
    if ($remainder) {
        $padlen = 4 - $remainder;
        $input .= str_repeat('=', $padlen);
    }

    return base64_decode(strtr($input, '-_', '+/'));
  }
public static function base64url_decode ( $ input ) { $ remainder = strlen ( $ input ) % 4 ; if ( $ remainder ) { $ padlen = 4 - $ remainder ; $ input .= str_repeat ( '=' , $ padlen ) ; } return base64_decode ( strtr ( $ input , '-_' , '+/' ) ) ; }
URL compatible Base64 Decode

@param string $input           A base64 encoded string
@return mixed                  Decoded data
URL compatible Base64 Decode