PHPackages                             dft/silverstripe-file-icons - 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. dft/silverstripe-file-icons

ActiveSilverstripe-vendormodule

dft/silverstripe-file-icons
===========================

Determine an icon class for uploaded files, based on extension

1.0.0(2y ago)072BSD-3-ClausePHP ^7.4 || ^8.0

Since May 2Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Dean-Forest-Tech/silverstripe-file-icons)[ Packagist](https://packagist.org/packages/dft/silverstripe-file-icons)[ Docs](https://github.com/Dean-Forest-Tech/silverstripe-file-icons)[ RSS](/packages/dft-silverstripe-file-icons/feed)WikiDiscussions 1 Synced 1mo ago

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

SilverStripe File Icons
=======================

[](#silverstripe-file-icons)

Attempt to generate an icon string based on the extension of a file.

By default, this returns a relevent FontAwesome icon class.

NOTE: This module does not install any icon libraries, it only allows you to more easily assign an icon to files in your themes.

Install
-------

[](#install)

Install via composer:

```
composer require "dft/silverstripe-file-icons"

```

Usage
-----

[](#usage)

Once installed, you can add use the following in your templates:

```
$File.IconClasses

```

For example, if you wanted to generate a bootstrap button with FontAwesome icon, you could use:

```

    Download {$Title}

```

Changing Icons
--------------

[](#changing-icons)

All icons are mapped via YML config (\_config/fileicons.yml), you can map custom classes by overwriting the default config provided by this module.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

739d 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

silverstripeiconsassets

### Embed Badge

![Health badge](/badges/dft-silverstripe-file-icons/health.svg)

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

###  Alternatives

[silverstripe/framework

The SilverStripe framework

7213.5M2.5k](/packages/silverstripe-framework)[dorsetdigital/silverstripe-enhanced-requirements

Enhanced requirements for Silverstripe

117.8k4](/packages/dorsetdigital-silverstripe-enhanced-requirements)

PHPackages © 2026

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