PHP code example of ltd-beget / sphinx-configuration-tokenizer

1. Go to this page and download the library: Download ltd-beget/sphinx-configuration-tokenizer 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/ */

    

ltd-beget / sphinx-configuration-tokenizer example snippets



    use LTDBeget\sphinx\Tokenizer;
    
    /sphinx.conf"); // path to your sphinx conf
    $plain_config = file_get_contents($config_path); // or some string with sphinx conf
    
    $tokenized = Tokenizer::tokenize($plain_config); // that's all, folks. All is done =)

shell
$ php phpunit.phar --coverage-html coverage
shell
$ php phpunit.phar --coverage-clover coverage.xml