PHPackages                             i-lateral/silverstripe-file-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. [File &amp; Storage](/categories/file-storage)
4. /
5. i-lateral/silverstripe-file-base64

ActiveSilverstripe-vendormodule[File &amp; Storage](/categories/file-storage)

i-lateral/silverstripe-file-base64
==================================

Simple module to add base64 string data methods to SilverStripe files and images

1.0.0(4y ago)07911BSD-3-ClausePHP

Since Jan 13Pushed 4y ago2 watchersCompare

[ Source](https://github.com/i-lateral/silverstripe-file-base64)[ Packagist](https://packagist.org/packages/i-lateral/silverstripe-file-base64)[ Docs](http://github.com/i-lateral/silverstripe-file-base64)[ RSS](/packages/i-lateral-silverstripe-file-base64/feed)WikiDiscussions 1 Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

SilverStripe File Base64
========================

[](#silverstripe-file-base64)

Simple SilverStripe module to generate a Base64 encoded string of File or Image data that can be used in image tags, etc.

Install
-------

[](#install)

Install via composer:

```
composer require i-lateral/silverstripe-file-base64

```

Usage
-----

[](#usage)

This module automatically adds two methods to files and images that allow accessing the data string:

**NOTE**: Currently the following methods will only return a data string of the base image NOT a modified image (for example using Image methods like `Fill` or `Fit`)

### Base64

[](#base64)

Returns the base 64 encoded string of the file/image data. For example, in a template you can call:

```
$Image.Base64

```

### Base64DataURL

[](#base64dataurl)

Returns a Data URL that can be used in image tags, links etc. To use it in templates you can call:

```

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 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 ~0 days

Total

2

Last Release

1579d ago

### Community

Maintainers

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

---

Top Contributors

[![mlewis-everley](https://avatars.githubusercontent.com/u/687143?v=4)](https://github.com/mlewis-everley "mlewis-everley (4 commits)")

---

Tags

base64silverstripefilesimages

### Embed Badge

![Health badge](/badges/i-lateral-silverstripe-file-base64/health.svg)

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

###  Alternatives

[unclecheese/dropzone

An HTML5 upload field for the CMS and frontend forms.

46130.7k6](/packages/unclecheese-dropzone)[unclecheese/silverstripe-kickassets

Provides an alternative file management interface for SilverStripe CMS with drag-and-drop, multi-selection, and several other desktop-like UI conventions.

4728.3k1](/packages/unclecheese-silverstripe-kickassets)[unclecheese/kickassets

Provides an alternative file management interface for SilverStripe CMS with drag-and-drop, multi-selection, and several other desktop-like UI conventions.

484.0k](/packages/unclecheese-kickassets)

PHPackages © 2026

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