ltd-beget / sphinx-configuration-tokenizer
tokenize sphinx configuration and that's all, folks.
Installs: 17 949
Dependents: 2
Suggesters: 0
Security: 0
Stars: 3
Watchers: 12
Forks: 5
Open Issues: 2
Requires
- php: >=7.0
- ltd-beget/stringstream: ^1.1 || ^2.0
Requires (Dev)
- phpunit/phpunit: ^8.5.33
- tideways/profiler: ^2.0.1
This package is not auto-updated.
Last update: 2024-11-11 23:23:04 UTC
README
Tokenize sphinx configuration and that's all, folks.
Installation
composer require ltd-beget/sphinx-configuration-tokenizer
Usage
<?php use LTDBeget\sphinx\Tokenizer; require(__DIR__ . '/vendor/autoload.php'); $config_path = realpath(__DIR__."/sphinx/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 =)
Developers
Regenerate documentation
$ ./vendor/bin/phpdox
Run tests
$ wget https://phar.phpunit.de/phpunit.phar
$ php phpunit.phar --coverage-html coverage
$ php phpunit.phar --coverage-clover coverage.xml
License
released under the MIT License. See the bundled LICENSE file for details.