Download the PHP package bca/fontawesomeiterator without Composer

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

FontAwesome Iterator

Iterate through the icons in FontAwesome or get them as an array.

Build Status

Wait. So what is this?

Simply put, this class was created to let you iterate over FontAwesome's icons for the purpose of building user interfaces in which one must be able to choose their own icons. That said, if you have another creative use for this, go for it!

This class extends PHP's built-in ArrayIterator class, returning an Icon class for each icon in your local copy of FontAwesome.

Requirements

  1. PHP 5.2+
  2. FontAwesome (Defaults created for 4.0+, but can be configured for any version.)

Installation

Via Composer

Just add the following to the require section your composer.json file:

Then execute composer install to pull down the latest release.

Package details can be found at https://packagist.org/packages/bca/fontawesomeiterator.

Via Github

You may download a specific version from https://github.com/brodkinca/BCA-PHP-FontAwesomeIterator/releases or visit the main repository at https://github.com/brodkinca/BCA-PHP-FontAwesomeIterator to download unreleased code or pull down a copy via git.

Basic Usage

1. Create an Instance of the Iterator

2. Do Something Useful

foreach loop

while loop

Advanced Usage

If you are using an older version of FontAwesome that still uses the icon- css prefix or a custom build of FontAweosme with a non-standard prefix it is necessary to define the prefix when instantiating the class.

Old Skool icon Prefix

Reqired for FontAwesome v3 and under.

Custom Prefix

NOTE: The prefix should be defined without any additional hyphenation. (i.e. prefix) NOT prefix-.

Example Implementation

Create a Select List of Icons by Name

With the correct CSS it would also be possible to display the FontAwesome icon in the select list.

Icon Class

Each value returned by Iterator will be an instance of the Icon class.

Each Icon will have the current properties available:

Properties may be accessed by calling them directly upon the Icon class (i.e. $icon->name).

Versioning

This library will be maintained under the Semantic Versioning guidelines.

Releases will be numbered with the following format:

And constructed with the following guidelines:

Composer users who would like more granular control over upgrades should restrict their installation to patch updates only using this require key:

For more information on SemVer, please visit http://semver.org/.


All versions of fontawesomeiterator with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.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 bca/fontawesomeiterator contains the following files

Loading the files please wait ....