ltd-beget/sphinx-configuration-tokenizer

此包最新版本(v2.0.0)没有可用的许可证信息。

对 sphinx 配置进行标记化,就这么多。

v2.0.0 2023-05-15 16:05 UTC

This package is not auto-updated.

Last update: 2024-09-16 22:31:59 UTC


README

Latest Stable Version Total Downloads Scrutinizer Code Quality Code Coverage Build Status Documentation Documentation License MIT

对 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 许可证下发布。有关详细信息,请参阅附带许可证文件