PHPackages                             timjmasters/php-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. timjmasters/php-base64url

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

timjmasters/php-base64url
=========================

A base64url encoder for encoding data as specified in rfc4648 section 5 https://www.rfc-editor.org/rfc/rfc4648#section-5

1.0.1(5y ago)011.3k↓50%1GPL-3.0-or-laterPHPPHP ^7.2|^8.0

Since Feb 4Pushed 5y ago1 watchersCompare

[ Source](https://github.com/timjmasters/php-base64url)[ Packagist](https://packagist.org/packages/timjmasters/php-base64url)[ RSS](/packages/timjmasters-php-base64url/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (4)Used By (1)

[![Travis (.com)](https://camo.githubusercontent.com/650f4261ff90a5415990718729853d9c23ead5158bf898ff435330cda93608b8/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f636f6d2f74696d6a6d6173746572732f7068702d62617365363475726c3f7374796c653d666f722d7468652d6261646765)](https://travis-ci.com/timjmasters/php-base64url)[![License](https://camo.githubusercontent.com/27d2ee5ff2ea2df550c3c9093e7a13894a7fedfe2f1013fadc544d9953c94743/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f74696d6a6d6173746572732f7068702d62617365363475726c3f636f6c6f723d626c7565267374796c653d666f722d7468652d6261646765)](https://www.gnu.org/licenses/gpl-3.0.en.html)[![Code coverage](https://camo.githubusercontent.com/5ee47da80ce28079741194a63d04a9e81f32b2646aa958a30842c77e5c6bf390/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6769746875622f74696d6a6d6173746572732f7068702d62617365363475726c3f7374796c653d666f722d7468652d6261646765)](https://coveralls.io/github/timjmasters/php-base64url)

php-base64url
=============

[](#php-base64url)

Some Tools for encoding data as URL safe Base64 strings

Usage
-----

[](#usage)

### Installation

[](#installation)

Install using composer: `composer require timjmasters/php-base64url`

If using composer autoloader don't forget to `composer dump-autoload`

Use it in your code:

```
// Don't forget your use statements!
use TimJMasters\Base64URL\Base64URL;

$encoded = Base64URL::encode("foo");
// $encoded = "Zm9v"

$decoded = Base64URL::decode("YmFy");
// $decoded = "bar"
```

That's it! I hope it's useful

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 53.6% 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 ~0 days

Total

2

Last Release

1928d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/78522499?v=4)[Timothy John Masters](/maintainers/timjmasters)[@timjmasters](https://github.com/timjmasters)

---

Top Contributors

[![timjmasters](https://avatars.githubusercontent.com/u/78522499?v=4)](https://github.com/timjmasters "timjmasters (15 commits)")[![TimMasters](https://avatars.githubusercontent.com/u/5336939?v=4)](https://github.com/TimMasters "TimMasters (13 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/timjmasters-php-base64url/health.svg)

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

###  Alternatives

[guillaumeferron/post-content

A post content builder field for Laravel Nova.

224.0k](/packages/guillaumeferron-post-content)

PHPackages © 2026

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