We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51a9c51 commit efa97e0Copy full SHA for efa97e0
src/BinaryString.php
@@ -23,6 +23,12 @@ public function toBase64(): string
23
return base64_encode($this->value);
24
}
25
26
+ /**
27
+ * Returns a Base32-encoded string representation of the binary value.
28
+ *
29
+ * @param string $alphabet The alphabet to use for Base32 encoding.
30
+ * @return string The Base32-encoded string.
31
+ */
32
public function toBase32(string $alphabet = Base32::DEFAULT_ALPHABET): string
33
{
34
return Base32::toBase32($this->value, $alphabet);
0 commit comments