PHPackages                             tiny-blocks/encoder - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. tiny-blocks/encoder

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

tiny-blocks/encoder
===================

Encoder and decoder for arbitrary data.

4.0.1(6d ago)589.0k↓55.7%1MITPHPPHP ^8.5CI passing

Since Jun 7Pushed 6d ago1 watchersCompare

[ Source](https://github.com/tiny-blocks/encoder)[ Packagist](https://packagist.org/packages/tiny-blocks/encoder)[ Docs](https://github.com/tiny-blocks/encoder)[ RSS](/packages/tiny-blocks-encoder/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (10)Dependencies (14)Versions (14)Used By (1)

Encoder
=======

[](#encoder)

[![License](https://camo.githubusercontent.com/f8df3091bbe1149f398a5369b2c39e896766f9f6efba3477c63e9b4aa940ef14/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e)](https://github.com/tiny-blocks/encoder/blob/main/LICENSE)

- [Overview](#overview)
- [Installation](#installation)
- [How to use](#how-to-use)
    - [Using Base62](#using-base62)
- [License](#license)
- [Contributing](#contributing)

Overview
--------

[](#overview)

Encoder and decoder for arbitrary data.

Installation
------------

[](#installation)

```
composer require tiny-blocks/encoder
```

How to use
----------

[](#how-to-use)

The library provides concrete implementations of the `Encoder` interface, enabling encoding and decoding of data into specific formats like Base62.

### Using Base62

[](#using-base62)

To encode a value into Base62 format:

```
