Download the PHP package simialbi/yii2-fontawesome without Composer

On this page you can find all versions of the php package simialbi/yii2-fontawesome. 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 yii2-fontawesome

Yii 2 Font Awesome Asset Bundle

This fork of @rmrevin's great extension provides a server side rendering implementation of Font Awesome icons for Yii framework 2.0 applications and helpers to use the icons.

For license information check the LICENSE-file.

License Latest Stable Version Latest Unstable Version Total Downloads Build Status

Support

Installation

The preferred way to install this extension is through composer.

Either run

or add

to the require section of your composer.json file.

How it looks rendered

By using this extension, you prevent loading the huge js files of fontawesome and still have all the power features like masking, power transforms, animations and so on. This library moved the logic and metadata to the server to keep the rendering and asset output as small as possible.

An example of what the rendered output looks like on a simple page is as follows:

As you can see, an additional advantage of server side rendering is if you use the same icon multiple times (even with different style and transformation settings), it's just rendered once and referenced multiple times.

Usage with FontAwesome pro-version

If you have a pro-version of FontAwesome, download your bundle, extract it and place the icon-families.json file located in metadata directorty to a newly created directory fontawesome-pro in the root directory of this repository. Afterward call the generate-classes.php file in the bin directory:

Usage with FontAwesome free-version

Just call the generate-classes.php file in the bin directory:

⚠️ Differences to original repository

  1. You don't have to register the asset bundle yourself
  2. Animations are styles are applied via methods instead of classes
  3. Stack class is deprecated
  4. There is a Layer class replacing the stack (https://docs.fontawesome.com/web/style/layer)
  5. There are no duotone or sharp classes anymore (handled via method ->duotone() and/or ->sharp())
  6. There are no ul and li methods anymore (too easy to do yourself)

Usage examples


All versions of yii2-fontawesome with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
bower-asset/fontawesome Version ^6.0.0
yiisoft/yii2 Version ^2.0.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 simialbi/yii2-fontawesome contains the following files

Loading the files please wait ....