sidspears/string-search
Composer 安装命令:
composer require sidspears/string-search
包简介
Find substring in file
README 文档
README
composer require sidspears/string-search
Testing
Install PHPUnit
composer require --dev phpunit/phpunit ^7
Run tests
./vendor/bin/phpunit --bootstrap vendor/autoload.php vendor/sidspears/string-search/tests/
Usage example
<?php
require_once('vendor/autoload.php');
use SidSpears\StringSearcher\StringSearcher;
$stringSearcher = new StringSearcher('config.yaml');
$result = $stringSearcher->findStringAndPosition('file.txt', 'textToFind');
print_r($result);
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-11-15