{"id":20672787,"url":"https://github.com/selective-php/base32","last_synced_at":"2025-04-19T19:10:20.529Z","repository":{"id":57048209,"uuid":"182729690","full_name":"selective-php/base32","owner":"selective-php","description":"Base32 encoder / decoder","archived":false,"fork":false,"pushed_at":"2023-09-09T12:48:44.000Z","size":40,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T12:04:31.047Z","etag":null,"topics":["base32","php"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/selective-php.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-22T09:35:09.000Z","updated_at":"2024-10-22T19:44:39.000Z","dependencies_parsed_at":"2022-08-23T17:50:25.078Z","dependency_job_id":null,"html_url":"https://github.com/selective-php/base32","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selective-php%2Fbase32","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selective-php%2Fbase32/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selective-php%2Fbase32/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selective-php%2Fbase32/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/selective-php","download_url":"https://codeload.github.com/selective-php/base32/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248675386,"owners_count":21143768,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["base32","php"],"created_at":"2024-11-16T20:38:48.300Z","updated_at":"2025-04-19T19:10:20.487Z","avatar_url":"https://github.com/selective-php.png","language":"PHP","readme":"# Base32\n\n[![Latest Version on Packagist](https://img.shields.io/github/release/selective-php/base32.svg)](https://packagist.org/packages/selective/base32)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](LICENSE.md)\n[![Build Status](https://github.com/selective-php/base32/workflows/build/badge.svg)](https://github.com/selective-php/base32/actions)\n[![Coverage Status](https://scrutinizer-ci.com/g/selective-php/base32/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/selective-php/base32/code-structure)\n[![Quality Score](https://scrutinizer-ci.com/g/selective-php/base32/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/selective-php/base32/?branch=master)\n[![Total Downloads](https://img.shields.io/packagist/dt/selective/base32.svg)](https://packagist.org/packages/selective/base32/stats)\n\nBase32 string encoder based on [RFC 4648](https://tools.ietf.org/html/rfc4648#section-6).\n\n## Installation\n\nVia Composer\n\n```\n$ composer require selective/base32\n```\n\n## Requirements\n\n* PHP 8.1+\n\n## Usage\n\n```php\n\u003c?php\n\nuse Selective\\Base32\\Base32;\n\n$str = 'abc 1234';\n\n$base32 = new Base32();\n\n// Encode\n// MFRGGIBRGIZTI====\n$encoded = $base32-\u003eencode($str);\n\n// Decode\n// abc 1234\necho $base32-\u003edecode($encoded); \n```\n\n### Without padding and only lowercase\n\n```php\n\u003c?php\n\n$str = 'abc 1234';\n\n// Encode\n$encoded = $base32-\u003eencode($str, false);\n\n// mfrggibrgizti\n$encoded = strtolower($enc); \n\n// Decode\necho $base32-\u003edecode($encoded);\n```\n\n## Testing\n\n``` bash\n$ composer test\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.\n\n## Credits\n* Bryan Ruiz\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselective-php%2Fbase32","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fselective-php%2Fbase32","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselective-php%2Fbase32/lists"}