lachee/fontawesome-5-cheatsheet

There is no license information available for the latest version (dev-master) of this package.

Font Awesome 5 Cheatsheet

dev-master 2020-09-20 03:54 UTC

This package is auto-updated.

Last update: 2025-06-20 14:20:07 UTC


README

Font Awesome 5 cheatsheet lookup in PHP. Use it to look up icons from name or from unicode.

What it do?

it does scrape cheatsheet from fontawesome vary wel

But how I do?

In order to use this tool, you need to first make sure its updated. You can do this by calling \lachee\fontawesome\Updater::update(), however its recommended to use this in your composer settings under the post update/install cmd:

    "scripts": {
       "post-update-cmd": [
           "lachee\\fontawesome\\Updater::postUpdate"
       ],
       "post-install-cmd": [
           "lachee\\fontawesome\\Updater::postUpdate"
       ]
   }

Once its all updated, then you can simply call \lachee\fontawesome\Cheatsheet::fromName('discord') from within your code. It will return an \lachee\fontawesome\Icon object that contains a name, unicode and available styles.

  • \lachee\fontawesome\Cheatsheet::fromName($name) Gets an icon from the name
  • \lachee\fontawesome\Cheatsheet::fromUNicode($name) Gets the icon from the unicode codepoint (ie f601)
  • \lachee\fontawesome\Cheatsheet::all() Gets all icons
  • \lachee\fontawesome\Updater::update() Updates the icon lists

Is it legal?

¯_(ツ)_/¯

What about composer?

composer require lachee/fontawesome-5-cheatsheet You may need to tell explicitly to use the @dev

What about Font Awesome 6

I dont care, this will probably break when they discontinue FA 5