PHPackages                             kryuu-common/base64-url - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. kryuu-common/base64-url

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

kryuu-common/base64-url
=======================

This is a simple library for encoding and decoding Base64Url, the basis of this is that the Base64 is not URL safe due to the characters `+`, `/` and `=`, so this encode replaces these characters with `=` to ``, `+` to `-` and `/` to `\_` for the purpose of using it in the URL

06PHP

Since Aug 5Pushed 7y ago1 watchersCompare

[ Source](https://github.com/KatsuoRyuu/php-Base64Url)[ Packagist](https://packagist.org/packages/kryuu-common/base64-url)[ RSS](/packages/kryuu-common-base64-url/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Base64 URL encoder/decoder
==========================

[](#base64-url-encoderdecoder)

This is a simple library for encoding and decoding Base64Url, the basis of this is that the Base64 is not URL safe due to the characters `+`, `/` and `=`, so this encode replaces these characters with `=` to ` `(nothing), `+` to `-` and `/` to `_` for the purpose of using it in the URL.

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

[](#installation)

```
composer require kryuu-common/base64-url
```

Usage
-----

[](#usage)

### encode

[](#encode)

```
