PHP code example of tvaliasek / tnt-czech-stemmer
1. Go to this page and download the library: Download tvaliasek/tnt-czech-stemmer 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/ */
tvaliasek / tnt-czech-stemmer example snippets
php
use TeamTNT\TNTSearch\TNTSearch;
$tnt = new TNTSearch;
$tnt->loadConfig([
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'dbname',
'username' => 'user',
'password' => 'pass',
'storage' => '/var/www/tntsearch/examples/',
'stemmer' => \Tvaliasek\Search\TNTCzechStemmer::class
]);