PHP code example of lucasruroken / laravel-font-awesome

1. Go to this page and download the library: Download lucasruroken/laravel-font-awesome library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

lucasruroken / laravel-font-awesome example snippets


$fa = new FontAwesome();
$fa->icon('icon', ['class' => 'extra-class'])

FontAwesome::icon('icon', ['class' => 'extra-class'])

$fa->icon('times', ['title' => 'Delete this!'])

$fa->setTag('span');
$fa->icon('edit');

'providers' => array(
	...
	'LucasRuroken\FontAwesome\FontAwesomeServiceProvider',
	...
);

'aliases' => array(
	...
	'FontAwesome' => 'LucasRuroken\FontAwesome\Facade',
	...
);