PHPackages                             mrcoco/filetobase64 - 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. mrcoco/filetobase64

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

mrcoco/filetobase64
===================

file to base64 encode

03PHP

Since Aug 19Pushed 6y ago1 watchersCompare

[ Source](https://github.com/mrcoco/filetobase64)[ Packagist](https://packagist.org/packages/mrcoco/filetobase64)[ RSS](/packages/mrcoco-filetobase64/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

filetobase64
============

[](#filetobase64)

### Usage:

[](#usage)

install in Composer

`composer require mrcoco/filetobase64`

php code

```
require __DIR__ . '/../vendor/autoload.php';

use Mrcoco\Filetobase64;

$filetobase64 = new Filetobase64();
# $file2base64 = new File2base64(['bmp' => 'image/bmp']);

$filetobase64->toFile('filetobase64.png', 'filetobase64.txt');
# echo $file2base64->toBase64('filetobase64.png');
```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/614d5c35a8cd2aef93764a161643e3952389785c7eaca5bc17a3deb291061217?d=identicon)[mrcoco](/maintainers/mrcoco)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/mrcoco-filetobase64/health.svg)

```
[![Health](https://phpackages.com/badges/mrcoco-filetobase64/health.svg)](https://phpackages.com/packages/mrcoco-filetobase64)
```

###  Alternatives

[league/flysystem-adapter-decorator

A base implementation of a flysystem adapter decorator

17136.3k1](/packages/league-flysystem-adapter-decorator)

PHPackages © 2026

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