ltd-beget / sphinx-configuration-tokenizer
此包最新版本(v2.0.0)没有可用的许可证信息。
对 sphinx 配置进行标记化,就这么多。
v2.0.0
2023-05-15 16:05 UTC
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-09-16 22:31:59 UTC
README
对 sphinx 配置进行标记化,就这么多。
安装
composer require ltd-beget/sphinx-configuration-tokenizer
使用
<?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 =)
开发者
重新生成文档
$ ./vendor/bin/phpdox
运行测试
$ wget https://phar.phpunit.de/phpunit.phar
$ php phpunit.phar --coverage-html coverage
$ php phpunit.phar --coverage-clover coverage.xml
许可证
在 MIT 许可证下发布。有关详细信息,请参阅附带许可证文件。