GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - selective-php/base32: Base32 encoder / decoder

BranchesTags
Open more actions menu

Latest commit

 

History

46 Commits
46 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
src
src
 
 
tests
tests
 
 
.cs.php
.cs.php
 
 
.editorconfig
.editorconfig
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
CONDUCT.md
CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
composer.json
composer.json
 
 
phpstan.neon
phpstan.neon
 
 
phpunit.xml
phpunit.xml
 
 

Repository files navigation

Base32

Latest Version on Packagist Software License Build Status Total Downloads

Base32 string encoder based on RFC 4648.

Installation

Via Composer

$ composer require selective/base32

Requirements

  • PHP 8.2 - 8.5

Usage

<?php

use Selective\Base32\Base32;

$str = 'abc 1234';

$base32 = new Base32();

// Encode
// MFRGGIBRGIZTI====
$encoded = $base32->encode($str);

// Decode
// abc 1234
echo $base32->decode($encoded); 

Without padding and only lowercase

<?php

$str = 'abc 1234';

// Encode
$encoded = $base32->encode($str, false);

// mfrggibrgizti
$encoded = strtolower($enc); 

// Decode
echo $base32->decode($encoded);

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Credits

  • Bryan Ruiz

License

The MIT License (MIT). Please see License File for more information.

About

Base32 encoder / decoder

Topics

base32php

Resources

Readme
MIT license

Contributing

Contributing
Activity
Custom properties

Stars

7 stars

Watchers

1 watching

Forks

2 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.