PHPackages                             toastnz/iconfield - 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. toastnz/iconfield

ActiveSilverstripe-vendormodule[Utility &amp; Helpers](/categories/utility)

toastnz/iconfield
=================

Icon field for SilverStripe

1.0.2(7y ago)0683BSD-3-ClausePHP

Since Feb 22Pushed 5y agoCompare

[ Source](https://github.com/toastnz/IconField)[ Packagist](https://packagist.org/packages/toastnz/iconfield)[ Docs](http://jamesbarnsley.co.nz)[ RSS](/packages/toastnz-iconfield/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (4)Used By (0)

Description
===========

[](#description)

Simplifies the use of icons in a way content authors can set icons without interfering with the asset library. Instead, the web developer provides the icon set which the end-user can use but not manipulate.

[![IconField](https://raw.githubusercontent.com/jaedb/IconField/master/screenshot.jpg)](https://raw.githubusercontent.com/jaedb/IconField/master/screenshot.jpg)

Requirements
============

[](#requirements)

- SilverStripe 4

Usage
=====

[](#usage)

- Import the required classes:

```
use Jaedb\IconField\Icon;
use Jaedb\IconField\IconField;

```

- Set your `$db` field to type `Icon` (eg `'PageIcon' => Icon::class`)
- `IconField::create($name, $title, $iconFolder)`
- `$name` is the database field as defined in your class
- `$title` is the label for this field
- `$iconFolder` (optional) defines the directory where your icons can be found. Defaults to `/site/icons`.
- To change your default icon directory, see `_config/config.yml`.
- Use your icon in templates as you would any other property (eg `$PageIcon`). If your icon is an SVG, the SVG image data will be injected into the template. To prevent this, you can call `$PageIcon.IMG` instead to enforce use of `` tags.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 76.9% 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 ~55 days

Total

3

Last Release

2887d ago

### Community

Maintainers

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

---

Top Contributors

[![jaedb](https://avatars.githubusercontent.com/u/1711444?v=4)](https://github.com/jaedb "jaedb (10 commits)")[![intotheweb101](https://avatars.githubusercontent.com/u/6877909?v=4)](https://github.com/intotheweb101 "intotheweb101 (3 commits)")

---

Tags

silverstripe

### Embed Badge

![Health badge](/badges/toastnz-iconfield/health.svg)

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

PHPackages © 2026

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