PHPackages                             hshn/base64-encoded-file - 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. hshn/base64-encoded-file

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

hshn/base64-encoded-file
========================

Provides handling base64 encoded files, and the integration of symfony/form

v6.0.0(5mo ago)411.6M—5.2%25[1 issues](https://github.com/hshn/base64-encoded-file/issues)MITPHPPHP ^8.1.0CI passing

Since Feb 6Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/hshn/base64-encoded-file)[ Packagist](https://packagist.org/packages/hshn/base64-encoded-file)[ RSS](/packages/hshn-base64-encoded-file/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (8)Versions (20)Used By (0)

base64-encoded-file
===================

[](#base64-encoded-file)

Provides handling for base64 encoded files

[![tests](https://github.com/hshn/base64-encoded-file/actions/workflows/tests.yml/badge.svg)](https://github.com/hshn/base64-encoded-file/actions/workflows/tests.yml)[![Latest Stable Version](https://camo.githubusercontent.com/4caac5ee2419263bbf1c00631582f62b3bc0ef91eb37e16607b51ff6c8ca44ea/68747470733a2f2f706f7365722e707567782e6f72672f6873686e2f6261736536342d656e636f6465642d66696c652f762f737461626c652e737667)](https://packagist.org/packages/hshn/base64-encoded-file)[![Total Downloads](https://camo.githubusercontent.com/2c54a370664e0fbbe3c26d709efd843037a506fea71c1299b7a79a7caeab9ae0/68747470733a2f2f706f7365722e707567782e6f72672f6873686e2f6261736536342d656e636f6465642d66696c652f646f776e6c6f6164732e737667)](https://packagist.org/packages/hshn/base64-encoded-file)[![Latest Unstable Version](https://camo.githubusercontent.com/075c23fe18a834fcfe0ac5dba02577106352126c2a66758e0ce67073877c9af8/68747470733a2f2f706f7365722e707567782e6f72672f6873686e2f6261736536342d656e636f6465642d66696c652f762f756e737461626c652e737667)](https://packagist.org/packages/hshn/base64-encoded-file)[![License](https://camo.githubusercontent.com/f9c1e31ef679394de798be66bc7fe1765e5694b763cc01d7c3dd12c244abb103/68747470733a2f2f706f7365722e707567782e6f72672f6873686e2f6261736536342d656e636f6465642d66696c652f6c6963656e73652e737667)](https://packagist.org/packages/hshn/base64-encoded-file)

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

[](#installation)

```
composer require hshn/base64-encoded-file
```

Usage
-----

[](#usage)

```
use Hshn\Base64EncodedFile\HttpFoundation\File\Base64EncodedFile;

$file = new Base64EncodedFile(base64_encode($data));

$file->getPathname(); // "/path/to/file"
$file instanceof Symfony\Component\HttpFoundation\File\File; // true
```

### Integration for symfony/form

[](#integration-for-symfonyform)

```
use Hshn\Base64EncodedFile\Form\Type\Base64EncodedFileType;

$form = $formBuilder
    ->add('file', Base64EncodedFileType::class)
    ->getForm();
```

### Integration in a Symfony project (manual install)

[](#integration-in-a-symfony-project-manual-install)

Use this bundle in a Symfony project requires the following libraries:

- symfony/dependency-injection
- symfony/http-kernel
- symfony/config

Then, you can load the bundle through the following configuration:

```
// bundles.php

Hshn\Base64EncodedFile\Bridge\Symfony\Bundle\Base64EncodedFileBundle::class => ['all' => true],
```

###  Health Score

63

—

FairBetter than 99% of packages

Maintenance79

Regular maintenance activity

Popularity53

Moderate usage in the ecosystem

Community21

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 73.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 ~282 days

Recently: every ~184 days

Total

15

Last Release

165d ago

Major Versions

v1.2.0 → v2.0.02019-10-03

v2.1.0 → v3.0.02020-12-24

v3.0.0 → v4.0.02022-03-30

v4.1.1 → v5.0.02023-11-30

v5.0.3 → v6.0.02025-12-05

PHP version history (5 changes)v1.0.0PHP &gt;=5.4.0

v2.0.0PHP ^7.1.0

v3.0.0PHP ^7.3.0 || ^8.0.0

v4.0.0PHP ^7.4.0 || ^8.0.0

v5.0.0PHP ^8.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/6ac9ad9cf40d96cebaf45553d5b286f611e847e4ca17a67d5f057ae2b1968def?d=identicon)[hshn](/maintainers/hshn)

---

Top Contributors

[![hshn](https://avatars.githubusercontent.com/u/1334026?v=4)](https://github.com/hshn "hshn (67 commits)")[![andersonamuller](https://avatars.githubusercontent.com/u/1681800?v=4)](https://github.com/andersonamuller "andersonamuller (8 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (3 commits)")[![vincentchalamon](https://avatars.githubusercontent.com/u/407859?v=4)](https://github.com/vincentchalamon "vincentchalamon (3 commits)")[![ErnadoO](https://avatars.githubusercontent.com/u/6375756?v=4)](https://github.com/ErnadoO "ErnadoO (2 commits)")[![odinns](https://avatars.githubusercontent.com/u/10807424?v=4)](https://github.com/odinns "odinns (1 commits)")[![owenvoke](https://avatars.githubusercontent.com/u/1899334?v=4)](https://github.com/owenvoke "owenvoke (1 commits)")[![silverbackdan](https://avatars.githubusercontent.com/u/25174262?v=4)](https://github.com/silverbackdan "silverbackdan (1 commits)")[![mickverm](https://avatars.githubusercontent.com/u/1834265?v=4)](https://github.com/mickverm "mickverm (1 commits)")[![gimler](https://avatars.githubusercontent.com/u/200904?v=4)](https://github.com/gimler "gimler (1 commits)")[![jpvdw86](https://avatars.githubusercontent.com/u/16865028?v=4)](https://github.com/jpvdw86 "jpvdw86 (1 commits)")[![abonanni](https://avatars.githubusercontent.com/u/38793840?v=4)](https://github.com/abonanni "abonanni (1 commits)")[![NoMan2000](https://avatars.githubusercontent.com/u/812215?v=4)](https://github.com/NoMan2000 "NoMan2000 (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hshn-base64-encoded-file/health.svg)

```
[![Health](https://phpackages.com/badges/hshn-base64-encoded-file/health.svg)](https://phpackages.com/packages/hshn-base64-encoded-file)
```

###  Alternatives

[w7corp/easywechat

微信SDK

10.4k761.6k60](/packages/w7corp-easywechat)[illuminate/session

The Illuminate Session package.

9937.4M753](/packages/illuminate-session)[wallabag/wallabag

open source self hostable read-it-later web application

12.6k2.2k](/packages/wallabag-wallabag)[codefog/contao-haste

haste extension for Contao Open Source CMS

42650.8k139](/packages/codefog-contao-haste)[leapt/core-bundle

Symfony LeaptCoreBundle

2529.1k4](/packages/leapt-core-bundle)[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)

PHPackages © 2026

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