PHPackages                             elfsundae/urlsafe-base64 - 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. elfsundae/urlsafe-base64

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

elfsundae/urlsafe-base64
========================

URL safe base64 encoding for PHP

1.1.1(8y ago)9263.5k↑10.4%2MITPHP

Since Oct 9Pushed 8y ago2 watchersCompare

[ Source](https://github.com/ElfSundae/urlsafe-base64)[ Packagist](https://packagist.org/packages/elfsundae/urlsafe-base64)[ Docs](https://github.com/ElfSundae/urlsafe-base64)[ RSS](/packages/elfsundae-urlsafe-base64/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (4)Used By (2)

URL safe base64 encoding for PHP
================================

[](#url-safe-base64-encoding-for-php)

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

[](#installation)

```
composer require elfsundae/urlsafe-base64
```

Usage
-----

[](#usage)

```
urlsafe_base64_encode($data)

urlsafe_base64_decode($data, $strict = false)
```

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity39

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~31 days

Total

3

Last Release

3080d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0c708b9bd4fcd09378112b235c310162a01d656b85946f1357562b6820c75ee6?d=identicon)[ElfSundae](/maintainers/ElfSundae)

---

Top Contributors

[![ElfSundae](https://avatars.githubusercontent.com/u/526008?v=4)](https://github.com/ElfSundae "ElfSundae (4 commits)")

---

Tags

base64urlsafe

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/elfsundae-urlsafe-base64/health.svg)

```
[![Health](https://phpackages.com/badges/elfsundae-urlsafe-base64/health.svg)](https://phpackages.com/packages/elfsundae-urlsafe-base64)
```

###  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)[spomky-labs/base64url

Base 64 URL Safe Encoding/Decoding PHP Library

15439.5M49](/packages/spomky-labs-base64url)[elfsundae/laravel-hashid

A simple, elegant way to obfuscate your data by generating reversible, non-sequential, URL-safe identifiers.

415246.3k2](/packages/elfsundae-laravel-hashid)[delight-im/base64

Simple and convenient Base64 encoding and decoding for PHP

15158.1k6](/packages/delight-im-base64)[xobotyi/basen

Text and integers encoding utilities for PHP with no extensions dependencies. Base32, Base58, Base64 and much more!

1219.6k](/packages/xobotyi-basen)

PHPackages © 2026

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