PHP code example of nowo-tech / icon-selector-bundle

1. Go to this page and download the library: Download nowo-tech/icon-selector-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/ */

    

nowo-tech / icon-selector-bundle example snippets




return [
  // ...
  Nowo\IconSelectorBundle\NowoIconSelectorBundle::class => ['all' => true],
];

use Nowo\IconSelectorBundle\Form\IconSelectorType;

$builder->add('icon', IconSelectorType::class, [
  'mode' => 'direct', // or 'search'
  'label' => 'Choose an icon',
]);

$builder->add('icon', IconSelectorType::class, [
  'mode'        => 'tom_select',
  'translation_domain'  => 'messages', // use your app domain
  'placeholder'     => 'my.placeholder.key',
  'search_placeholder'  => 'my.search.placeholder',
]);