Download the PHP package aerni/font-awesome without Composer

On this page you can find all versions of the php package aerni/font-awesome. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package font-awesome

Statamic Packagist version Packagist Total Downloads

Font Awesome

This Statamic addon features an icon fieldtype to browse and select Font Awesome 6.x icons. It also comes with a Tag to output selected icons in your template.

Installation

Install the addon using Composer:

You may publish the config of the package:

Configuration

You may choose between using a Kit or hosting Font Awesome yourself.

Kit Driver

If you want to use a Kit, make sure you set the driver option in the config to kit:

Next, add your API Token and Kit Token to your .env file:

Local Driver

If you would rather host Font Awesome yourself, you may use the local driver:

Next, download Font Awesome (For The Web) and place the metadata and css directories in the locations defined in the config:

Metadata

The files in the metadata directory are required to get the information about the icons. I recommend placing the metadata in the resources directory, as these files don't need to be publicly accessible.

CSS

The css config option defines the public path to the stylesheet that will be loaded in the Control Panel. The stylesheet must be placed in the public directory. The CSS will only be loaded in the Control Panel. You still need to add the stylesheet to your frontend layout yourself.

Usage

Fieldtype

Add the Font Awesome Fieldtype to a Blueprint or Fieldset. The Fieldtype provides a config option that allows you to make only certain icon styles available for selection.

Tag

If you're using the kit driver, add the following Tag to your layout's <head> to render the Font Awesome script.

Render an icon by using the handle of a Font Awesome field as the wildcard method.

You may also use the shorter tag alias instead.

Credits

Developed by Michael Aerni


All versions of font-awesome with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
statamic/cms Version ^5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package aerni/font-awesome contains the following files

Loading the files please wait ....