PHPackages                             spomky-labs/base64url - 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. spomky-labs/base64url

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

spomky-labs/base64url
=====================

Base 64 URL Safe Encoding/Decoding PHP Library

v2.0.4(5y ago)15439.5M—2.1%1320MITPHPPHP &gt;=7.1

Since Jan 17Pushed 5y ago4 watchersCompare

[ Source](https://github.com/Spomky-Labs/base64url)[ Packagist](https://packagist.org/packages/spomky-labs/base64url)[ Docs](https://github.com/Spomky-Labs/base64url)[ GitHub Sponsors](https://github.com/Spomky)[ Patreon](https://www.patreon.com/FlorentMorselli)[ RSS](/packages/spomky-labs-base64url/feed)WikiDiscussions v2.x Synced 1mo ago

READMEChangelog (9)Dependencies (6)Versions (15)Used By (20)

Base64 Url Safe
===============

[](#base64-url-safe)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/b7b748fa67fed3413c1338e8d859eee29d597aff7aaf2def0e3592f4586343e0/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f53706f6d6b792d4c6162732f62617365363475726c2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Spomky-Labs/base64url/?branch=master)[![Coverage Status](https://camo.githubusercontent.com/ebddc354860c5bf54febf4d6013117a44998b6259f489738d091176e464da553/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f53706f6d6b792d4c6162732f62617365363475726c2f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/Spomky-Labs/base64url?branch=master)[![Build Status](https://camo.githubusercontent.com/2365ae9d03abcbc198c44821f74fdcaa0ffb41b78e6c618af213205d82d2223f/68747470733a2f2f7472617669732d63692e6f72672f53706f6d6b792d4c6162732f62617365363475726c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Spomky-Labs/base64url)

[![SensioLabsInsight](https://camo.githubusercontent.com/0a9283ced7daa47587c4119bc298d202c51e7a7993cabf5e6cb65d2619f32c1d/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f30663866396231322d323037362d346430652d613334652d6336663039376336316231362f6269672e706e67)](https://insight.sensiolabs.com/projects/0f8f9b12-2076-4d0e-a34e-c6f097c61b16)

[![Latest Stable Version](https://camo.githubusercontent.com/3bd0603e19fab34ddf9996cf9edac6dd383448e59bff63a7dd9a50bf735b42cf/68747470733a2f2f706f7365722e707567782e6f72672f53706f6d6b792d4c6162732f62617365363475726c2f762f737461626c652e706e67)](https://packagist.org/packages/Spomky-Labs/base64url) [![Total Downloads](https://camo.githubusercontent.com/314b6e9f449da6a6c1dc444a33140d989b694f70934ac7baa0b709bd6bad779f/68747470733a2f2f706f7365722e707567782e6f72672f53706f6d6b792d4c6162732f62617365363475726c2f646f776e6c6f6164732e706e67)](https://packagist.org/packages/Spomky-Labs/base64url) [![Latest Unstable Version](https://camo.githubusercontent.com/178272cfcfdfeac8ce1da6761d7069110ae6fcecb613874c1d6b8328572abd5a/68747470733a2f2f706f7365722e707567782e6f72672f53706f6d6b792d4c6162732f62617365363475726c2f762f756e737461626c652e706e67)](https://packagist.org/packages/Spomky-Labs/base64url) [![License](https://camo.githubusercontent.com/bff185784bb95777bf1caaabe48542a86f5034ee1c8fa76b1b9fc12439f499c5/68747470733a2f2f706f7365722e707567782e6f72672f53706f6d6b792d4c6162732f62617365363475726c2f6c6963656e73652e706e67)](https://packagist.org/packages/Spomky-Labs/base64url)

This library aims to provide a fast Base64 URL Safe encoder/decoder as described by the [RFC 4648](https://tools.ietf.org/html/rfc4648).

The Release Process
===================

[](#the-release-process)

The release process [is described here](doc/Release.md).

Prerequisites
=============

[](#prerequisites)

This library needs at least `PHP 7.1`.

It has been successfully tested using `PHP 7.1`, `PHP 7.2`, `PHP 7.3`, `PHP 7.4` and `nightly`.

Installation
============

[](#installation)

The preferred way to install this library is to rely on Composer:

```
composer require "spomky-labs/base64url"
```

How to use
==========

[](#how-to-use)

Take a look at [How to use](doc/Use.md) to use this library.

Support
=======

[](#support)

I bring solutions to your problems and answer your questions.

If you really love that project and the work I have done or if you want I prioritize your issues, then you can help me out for a couple of 🍻 or more!

[![Become a Patreon](https://camo.githubusercontent.com/ef7b855018f1f680eeba6fd1ac470b9c1971ef883b2f4b9fcf41034274510e3f/68747470733a2f2f63352e70617472656f6e2e636f6d2f65787465726e616c2f6c6f676f2f6265636f6d655f615f706174726f6e5f627574746f6e2e706e67)](https://www.patreon.com/FlorentMorselli)

Contributing
============

[](#contributing)

Requests for new features, bug fixed and all other ideas to make this library useful are welcome. [Please follow these best practices](doc/Contributing.md).

Licence
=======

[](#licence)

This software is release under [MIT licence](LICENSE).

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity66

Solid adoption and visibility

Community32

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 86% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~176 days

Recently: every ~202 days

Total

13

Last Release

2023d ago

Major Versions

v0.0.3 → v1.0.02015-06-26

v1.x-dev → v2.0.02018-07-21

PHP version history (4 changes)v0.0.1PHP &gt;=5.3

v1.0.2PHP ^5.3|^7.0

v2.0.0PHP ^7.1

v2.0.2PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/ccc6c59de7d9ddc53219653bc58f1e082ef83d96632d233eedc0b7097cf80ea3?d=identicon)[Spomky](/maintainers/Spomky)

---

Top Contributors

[![Spomky](https://avatars.githubusercontent.com/u/1091072?v=4)](https://github.com/Spomky "Spomky (43 commits)")[![madflow](https://avatars.githubusercontent.com/u/183248?v=4)](https://github.com/madflow "madflow (2 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (2 commits)")[![reedy](https://avatars.githubusercontent.com/u/67615?v=4)](https://github.com/reedy "reedy (2 commits)")[![soullivaneuh](https://avatars.githubusercontent.com/u/1698357?v=4)](https://github.com/soullivaneuh "soullivaneuh (1 commits)")

---

Tags

urlbase64rfc4648safe

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/spomky-labs-base64url/health.svg)

```
[![Health](https://phpackages.com/badges/spomky-labs-base64url/health.svg)](https://phpackages.com/packages/spomky-labs-base64url)
```

###  Alternatives

[paragonie/constant_time_encoding

Constant-time Implementations of RFC 4648 Encoding (Base-64, Base-32, Base-16)

903329.7M148](/packages/paragonie-constant-time-encoding)[spatie/url

Parse, build and manipulate URL's

73914.3M97](/packages/spatie-url)[jbroadway/urlify

A fast PHP slug generator and transliteration library that converts non-ascii characters for use in URLs.

6737.4M62](/packages/jbroadway-urlify)[league/uri-components

URI components manipulation library

31932.3M67](/packages/league-uri-components)[sabre/uri

Functions for making sense out of URIs.

29335.2M40](/packages/sabre-uri)[christian-riesen/base32

Base32 encoder/decoder according to RFC 4648

13331.8M61](/packages/christian-riesen-base32)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
