PHP code example of soless / yii2-tag-editor

1. Go to this page and download the library: Download soless/yii2-tag-editor 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/ */

    

soless / yii2-tag-editor example snippets


<?= $form->field($model, 'tags')->widget(TagEditor::className(), [
        'tagEditorOptions' => [
            'autocomplete' => [
                'source' => Url::toRoute(['route/to/get-tags-action'])
            ],
        ]
    ]) 

php composer.phar