public static function base64($value) { return (string) preg_replace('#[^A-Z0-9\\/+=]#i', '', $value); }