labile/text-matcher

There is no license information available for the latest version (1.0.1) of this package.

1.0.1 2021-08-14 11:17 UTC

This package is auto-updated.

Last update: 2024-11-09 15:28:59 UTC


README

GitHub license Packagist Stars Packagist Stats

Документация на русском языке

Installation

composer require labile/text-matcher

A simple string comparison library

<?php

declare(strict_types=1);

use Astaroth\TextMatcher;

$textMatcher = new TextMatcher("i love Katya", "love", TextMatcher::CONTAINS);
if ($textMatcher->compare()){
    //...
}