Download the PHP package kravcik/latte-font-awesome-icon without Composer

On this page you can find all versions of the php package kravcik/latte-font-awesome-icon. 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 latte-font-awesome-icon

LatteFontAwesomeIcon

New font awesome icons - latte generator. Replace older https://github.com/kravcik/nette-macro-fontawesome.

Register Extension

You can also set default values, it is quite simple:

Extension parameters

  1. defaultStyle - choose FA style (fas|far|fal|fab etc.), default is fal
  2. defaultFixedWidth - auto adding fa-fw to icons, defaults is true
  3. defaultElement - HTML element to generate icon, default is span

Macro parameters

Parameters can be named or ordered by numeral indexes (see examples)

  1. color - color for current icon, generate text-primary for bootstrap colors, for others go color-xxx
  2. size - size for current icon, for numeric generate fa-2x, for strings fa-lg
  3. fw - fixed width fa-fw for current icon
  4. element - custom HTML element for current icon
  5. style - style for current icon (fas|far|fal|fab etc.)
  6. class - custom class add for current HTML element

Examples

Examples depends on default values, so we using default setting (fal, fw, span).

{icon star} -> <span class="fal fa-star fa-fw"></i>

{icon star, primary} -> <span class="fal fa-star text-primary fa-fw"></span>

{icon star, red} -> <span class="fal fa-star color-red fa-fw"></span>

{icon star, null, lg} -> <span class="fal fa-star fa-lg fa-fw"></span>

{icon star, yellow, 2} -> <span class="fal fa-star color-yellow fa-2x fa-fw"></span>

{icon star, blue, size: 2, style: far} -> <span class="fal fa-star color-blue fa-2x"></span>

{icon star, class: foo, color: green} -> <span class="fal fa-star color-green foo"></span>

Package PHP Latte Font Awesome Bootstrap
v1 >=8.1 >=3 >5 5

All versions of latte-font-awesome-icon with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
latte/latte Version ^3
nette/utils Version ^4
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 kravcik/latte-font-awesome-icon contains the following files

Loading the files please wait ....