PHP code example of mdixon18 / fontawesome

1. Go to this page and download the library: Download mdixon18/fontawesome 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/ */

    

mdixon18 / fontawesome example snippets


  use Mdixon18\Fontawesome\Fontawesome;

  Fontawesome::make('Icon')

  Fontawesome::make('Icon')->addButtonText('Click Me!')

  Fontawesome::make('Icon')->defaultIcon('far', 'check-circle')

  Fontawesome::make('Icon')->addButtonText('Click Me!')->defaultIcon('far', 'check-circle')->persistDefaultIcon()

  Fontawesome::make('Icon')->only([
    'facebook',
    'twitch',
    'twitter',
  ])

  Fontawesome::make('Icon')->pro()