PHP code example of redking / fontawesome-picker-bundle

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

    

redking / fontawesome-picker-bundle example snippets



use Redking\FontAwesomePickerBundle\Form\Type\FontAwesomeType

// ...
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder->add('icon', FontAwesomeType::class, array(
            'picker_options' => [], // You can pass here the options of the widget
        ));
    }
 php

// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Redking\FontAwesomePickerBundle\RedkingFontAwesomePickerBundle(),

    );
}