PHPackages                             firesphere/wysiwyg-font-awesome - 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. firesphere/wysiwyg-font-awesome

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

firesphere/wysiwyg-font-awesome
===============================

Add Font Awesome icons to the content with shortcodes

2.0(8y ago)32.0k1BSD-3-ClausePHP

Since Jun 18Pushed 8y agoCompare

[ Source](https://github.com/Firesphere/silverstripe-wysiwyg-font-awesome)[ Packagist](https://packagist.org/packages/firesphere/wysiwyg-font-awesome)[ RSS](/packages/firesphere-wysiwyg-font-awesome/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (2)Versions (4)Used By (0)

SilverStripe Shortcode Handling of FontAwesome
==============================================

[](#silverstripe-shortcode-handling-of-fontawesome)

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

[](#installation)

`composer require firesphere/wysiwyg-font-awesome`

Usage
-----

[](#usage)

Add the FontAwesome CSS to your frontend. Otherwise, fonts won't be loaded.

In your WYSIWYG, add `[fa icon="icon-name" {optional: spin="" rotate="90" size="1|2|3|4" flip="horizontal|vertical"}]`

Note, the values between the curly braces are not required, they are however in the case of `spin`, required to have an empty argument. One of the shortcomings of the current ShortcodeParser in Framework.

In your content, each `[fa icon="my-icon"]` will be rendered as ``

Add custom modifiers
--------------------

[](#add-custom-modifiers)

In your config.yml:

```
FontAwesomeParser:
  modifiers:
    mymodifier:
      code: 'modifyme'
      arguments: true|false
```

If the modifier takes arguments, set it to true, otherwise, it's false (still needs an empty argument though).

Actual license
--------------

[](#actual-license)

This module is published under BSD 3-clause license, although these are not in the actual classes, the license does apply:

Copyright (c) 2017-NOW(), Simon "Sphere" Erkelens

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

```
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

```

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

(I shouldn't scream, should I? This is copy-paste from BSD-2 license...)

Cow?
----

[](#cow)

Of course!

```

               /( ,,,,, )\
              _\,;;;;;;;,/_
           .-"; ;;;;;;;;; ;"-.
           '.__/`_ / \ _`\__.'
              | (')| |(') |
              | .--' '--. |
              |/ o     o \|
              |           |
             / \ _..=.._ / \
            /:. '._____.'   \
           ;::'    / \      .;
           |     _|_ _|_   ::|
         .-|     '==o=='    '|-.
        /  |  . /       \    |  \
        |  | ::|         |   | .|
        |  (  ')         (.  )::|
        |: |   |;  U U  ;|:: | `|
        |' |   | \ U U / |'  |  |
        ##V|   |_/`"""`\_|   |V##
           ##V##         ##V##

```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity65

Established project with proven stability

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

3

Last Release

3251d ago

Major Versions

1.0 → 4.0.x-dev2017-06-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/8497c885d84e4bf94b8e6136292aa602124a50bbbb4a14ab00e1423f232e7663?d=identicon)[Firesphere](/maintainers/Firesphere)

---

Tags

font-awesomefontawesomehacktoberfestshortcodesilvertripetinymcewysiwygsilverstripeFontAwesomeshortcode

### Embed Badge

![Health badge](/badges/firesphere-wysiwyg-font-awesome/health.svg)

```
[![Health](https://phpackages.com/badges/firesphere-wysiwyg-font-awesome/health.svg)](https://phpackages.com/packages/firesphere-wysiwyg-font-awesome)
```

###  Alternatives

[sheadawson/silverstripe-shortcodable

Provides a GUI for CMS users to insert Shortcodes into the HTMLEditorField + an API for developers to define Shortcodable DataObjects and Views

5018.1k5](/packages/sheadawson-silverstripe-shortcodable)

PHPackages © 2026

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