Download the PHP package rsmike/fa without Composer

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

PHP Font awesome

Awesome PHP Font Awesome library.

Includes PHPDoc autocomplete supported by most IDEs.

Usage

Icon only

echo FA::check(); generates <i class="fa fa-check>

Icon with wording

echo FA::check('Submit'); generates <i class="fa fa-check> Submit

Note a space between icon and wording.

Caveat: if your wording is basically a number, you should explicitly convert it to string first, e.g. FA::briefcase((string)$id). Otherwise, number value will be parsed as options parameter.

Icon with additional padding class

echo FA::check('Submit')->pad(); generates <i class="fa fa-check fa-pad>Submit

Instead of space between icon and wording, this adds a "fa-pad" padding class for the icon. This is especially useful inside links as the space character between icon and text shouldn't be underlined on hover. The class is non-standard and should be styled separately. Example:

The pad() function can be replaced by FA::FA_PAD option.

Icon with options

echo FA::check(FA::FA_BORDER | FA::FA_FLIP_H); generates <i class="fa fa-check fa-border fa-flip-horizontal>

Possible options are: FA_PULL_LEFT, FA_PULL_RIGHT, FA_SIZE_LG, FA_SIZE_2X, FA_SIZE_3X, FA_SIZE_4X, FA_SIZE_5X, FA_FIX_WIDTH, FA_INVERSE, FA_BORDER, FA_SPIN, FA_PULSE, FA_ROT90, FA_ROT180, FA_ROT270, FA_FLIP_V, FA_FLIP_H;

Icon with wording and options

echo FA::check('Submit', FA::FA_ROT90);

Options should go as a second parameter. If the first parameter is not a string, it considered to be options and the second parameter is ignored.

Icon with additional custom class

echo FA::check('Submit', FA::FA_ROT90)->class('text-danger my-class'); generates <i class="fa fa-check fa-rotate-90 text-danger my-class"></i> Submit

Class applies to the icon itself (not the wording)

Icon with Bootstrap-compatible tooltip

echo FA::exclamation_triangle()->tooltip('Data not verified'); generates <i class="fa fa-exclamation-triangle" data-toggle="tooltip" title="Data not verified"></i>

Icon with additional CSS style

echo FA::check()->css('margin-left: 20px'); generates <i class="fa fa-check" style="margin-left: 20px"></i>

Applying modifiers after construction

echo FA::check('Submit')->mod(FA::FA_ROT90); generates <i class="fa fa-check fa-rotate-90"></i> Submit

Using icon as an object

Installation

Either run

or add

to the require section of your composer.json file.

"fortawesome/font-awesome" package is a dependency and will be installed automatically.

Changelog

v1.4
v1.2
v1.1
v1.0

TODO


All versions of fa with dependencies

PHP Build Version
Package Version
Requires fortawesome/font-awesome Version ~4.7.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 rsmike/fa contains the following files

Loading the files please wait ....