Skip to content

Еще одно неплохое простое тестовое

Notifications You must be signed in to change notification settings

maraloon/string-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

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);

About

Еще одно неплохое простое тестовое

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages