Skip to content

Releases: FortAwesome/wordpress-fontawesome-lib

Release 0.1.1

Choose a tag to compare

@mlwilkerson mlwilkerson released this 04 Mar 22:48
  • BUGFIX: remove obsolete \Base in a module namespace path
  • update package artifacts to exclude more assets from the dist composer package

Initial Release 0.1.0

Choose a tag to compare

@mlwilkerson mlwilkerson released this 04 Mar 22:12
a6cc435

Initial Features

  1. Auth_Token_Provider

A module that handles getting and refreshing an access token from the Font Awesome GraphQL API, when given an API token.

An instance is used as an argument when querying the API.

  1. Crypto

A module that provides encryption and decryption of strings using the openssl PHP extension on a WordPress.

It can be used for encrypting and decrypting API or access tokens that library clients might use with the Auth_Token_Provider.

Also provides an is_compatible() that can be invoked on a WordPress site to determine whether the required extension, cipher, and functions are available.

  1. Family_Style

Encapsulates some Font Awesome business logic and idiosyncrasies about the mapping of Family Styles to asset path names, shorthands and UI labels.

  1. Family_Style_Collection

A convenience class for holding a set of Family_Style instances and looking them up by short_prefix_id.

Useful when working with the set of family styles present in a kit.

  1. Kit_Download

Encapsulates the workflow of retrieving a kit zip archive from the Font Awesome GraphQL API, an unpacking it for self-hosting.

  1. Query_Resolver

Provides an interface for querying the Font Awesome GraphQL API, along with some response handling convenience functions.

  1. Svg_Icon

Encapsulates the stringification of a Font Awesome Standard SVG, from an object representation as found in icon-families.json or similar structure.