stephenhill/base58
Base58 encoding and decoding for PHP with support for the Bitcoin and Flickr alphabets, arbitrary-precision math via GMP or BCMath, and a Laravel service provider for quick integration into your application.
0, O, I, and l, which measurably reduces support-ticket-grade transcription errors versus hex or Base64.Adopt when:
ext-gmp or ext-bcmath is available in your runtime. Verify this against production and CI before committing — shared hosting and some container baselines ship without GMP, and the library's whole correctness story rests on one of those extensions.Base58ServiceProvider binding, a Base58 facade, config for the alphabet, and a test suite with published Bitcoin test vectors plus round-trip/property tests. The package is framework-agnostic with no Laravel integration, so that wrapper is your cost, not theirs.Look elsewhere when:
sqids/hashids — Laravel-friendly, no big-int dependency, designed for this, and you avoid implying cryptographic meaning that Base58 does not provide. Base58 is encoding, not obfuscation or security; sequential integers Base58-encoded are trivially enumerable.tuupola/base58 or a full Bitcoin library (bitwasp/bitcoin) already covers your needs alongside checksum and key handling — one dependency that does the whole job beats two that each do half.To executives (one paragraph): We need to emit identifiers that customers can read over the phone and type without errors, and that interoperate with external systems that mandate the Base58 alphabet. We are not inventing cryptography — Base58 is a well-specified, decades-old encoding used by Bitcoin, IPFS, and Solana. The implementation is a small, MIT-licensed, dependency-free PHP library we can audit in an afternoon. Cost is effectively zero; the risk is a single-maintainer project with a small community, which we mitigate by pinning the version, vendoring the code, and writing our own tests against published spec vectors so we can replace it in a day if needed. No new infrastructure, no licensing cost, no vendor lock-in.
To engineering (the actual ask):
ext-gmp/ext-bcmath availability in Docker, CI, and production; add a health check.composer.json to an exact version and commit a vendored copy; add a comment explaining the exit plan.Bottom line for the roadmap: green-light as a small, contained utility dependency behind our own abstraction — not as an architectural commitment.
How can I help you explore Laravel packages today?