PackageTrack
Sign in Get early access

tuupola/base62

Base62 encoder and decoder for arbitrary data

2.1.1 4.7M downloads/mo #2614 most downloaded on Packagist tuupola/base62

What this package is like to depend on

Last release 8 months ago

08 Dec 2025

Ships unpredictably

gaps range from 1 weeks to 5.2 years

Nearly every release is documented

notes for 13 of 13 stable releases

Nothing withdrawn

no release was ever pulled

10 years old

14 releases · first in 2016

1 release in the last 12 months

see the full history below

Release timeline

14 releases · May 2016 to Dec 2025
2017 2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 14
  1. 2.1.1 08 Dec 2025
    Release notes

    Fixed

    • Replace integer cast with int for PHP 8.5 (#33).
    Open source →
  2. 2.1.0 09 Sep 2020
    Release notes

    Added

    • Allow installing with PHP 8 (#20).
    Open source →
  3. 2.0.0 30 Dec 2018
    Release notes

    Document differences to 1.x

    Open source →
    Release notes

    Changed

    • PHP 7.1 is now minimum requirement
    • All methods have return types
    • All methods are typehinted
    • All type juggling is removed
    Open source →
  4. 1.0.1 27 Dec 2018
    Release notes

    Remove the undocumented second parameter from static proxy methods

    Open source →
    Release notes

    Removed

    • The unused and undocumented second parameter from static proxy methods. Parameter was accidentally forgotten into the code. This could be considered a BC break. However since there have been practically no installs for 1.0.0 yet I doubt this will break anyones code.
    Open source →
  5. 1.0.0 20 Dec 2018
    Release notes

    Changed

    • Tests are now run with all character sets (#14).
    Open source →
  6. 1.0.0-rc1 07 Dec 2018 pre-release

    Nothing published for this version

  7. 0.11.1 11 Sep 2018
    Release notes

    Fixed

    • GMP driver output was not matching others when binary data had leading 0x00 (#13).
    Open source →
  8. 0.11.0 05 Sep 2018
    Release notes

    Fixed

    • Leading 0x00 was stripped from binary data (#4, #12)
    Open source →
  9. 0.10.0 28 Mar 2018
    Release notes

    Merge branch 'character-set'

    Open source →
    Release notes

    Changed

    • The decode() and decodeInteger() methods now throw InvalidArgumentException if the input string contains invalid characters (#6).
    • Constructor now throws InvalidArgumentException if given character set is invalid (#7).
    Open source →
  10. 0.9.0 09 Oct 2017
    Release notes

    Added

    • Implicit decodeInteger() and encodeInteger() methods.

    Fixed

    • PHP encoder was returning returning wrong output when encoding integers and the float representation of the integer was wider than 53 bits. If your application uses big integers and PHP encoder only might be BC issues with 0.8.0. GMP and BCMath encoders were not affected.
    Open source →
  11. 0.8.0 12 Mar 2017
    Release notes

    This release is not compatible with 0.7.0. Object syntax is now default. A quick way to upgrade is to add the following to your code:

    use Tuupola\Base62Proxy as Base62;
    

    Added

    • Possibility to use custom character sets.
    • Static proxy for those who want to use static syntax
      use Tuupola\Base62Proxy as Base62;
      
      Base62::decode("foo");
      
    Open source →
  12. 0.7.0 09 Oct 2016
    Release notes

    Added

    • Allow using object syntax, for example $base62->decode("foo").
    • Optional BCMath encoder. Mostly a curiosity since it is slower than pure PHP encoder.
    Open source →
  13. 0.6.0 06 May 2016
    Release notes

    Fixed

    • Encode integers as integers. Before they were cast as strings before encoding.
    Open source →
  14. 0.5.0 05 May 2016
    Release notes

    Initial realese.

    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive