Download the PHP package nullform/fuzzio without Composer
On this page you can find all versions of the php package nullform/fuzzio. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download nullform/fuzzio
More information about nullform/fuzzio
Files in nullform/fuzzio
Download nullform/fuzzio
More information about nullform/fuzzio
Files in nullform/fuzzio
Vendor nullform
Package fuzzio
Short Description Fuzzy search using similar_text() and levenshtein() functions. Easy to use and safe for multibyte encodings (UTF-8).
License MIT
Homepage https://github.com/nullform/fuzzio
Package fuzzio
Short Description Fuzzy search using similar_text() and levenshtein() functions. Easy to use and safe for multibyte encodings (UTF-8).
License MIT
Homepage https://github.com/nullform/fuzzio
Please rate this library. Is it a good library?
Informations about the package fuzzio
Fuzzio
The PHP package for calculate similarity and Levenshtein distance between strings. Realizes fuzzy search using similar_text() and levenshtein() functions. Easy to use and safe for multibyte encodings (UTF-8).
Requirements
- PHP >= 5.6
Installation
Usage examples
You can set the similarity threshold and the Levenshtein distance threshold for filtering results:
You can set a normalizer for more predictable calculations:
Methods
Fuzzio
- Fuzzio::__construct(string $needle, string[]|null $haystack = null, callable|null $normalizer = null)
- Fuzzio::getNeedle(): string
- Fuzzio::getNormalizedNeedle(): string
- Fuzzio::setHaystack(string[] $haystack): Fuzzio
- Fuzzio::getHaystack(): string[]
- Fuzzio::getNormalizedHaystack(): string[]
- Fuzzio::addToHaystack(string[] $strings): Fuzzio
- Fuzzio::removeFromHaystack(string[] $strings): Fuzzio
- Fuzzio::hasExactMatch(): bool
- Fuzzio::get(float|null $minSimilarity = null, int|null $maxLevenshteinDistance = null): FuzzioString[]
- Fuzzio::getClosest(): FuzzioString[]
- Fuzzio::getClosestOne(): FuzzioString
- Fuzzio::getMaxLevenshteinDistanceThreshold(): int|null
- Fuzzio::setMaxLevenshteinDistanceThreshold(int $threshold): Fuzzio
- Fuzzio::getMinSimilarityThreshold(): float|null
- Fuzzio::setMinSimilarityThreshold(float $threshold): Fuzzio
- Fuzzio::getMaxSimilarity(): float|null
- Fuzzio::getMinLevenshteinDistance(): int|null
- Fuzzio::setNormalizer(callable|null $normalizer): Fuzzio
FuzzioString
- FuzzioString::getString(): string
- FuzzioString::getNormalizedString(): string
- FuzzioString::getSimilarity(): float
- FuzzioString::getLevenshteinDistance(): int
- FuzzioString::__toString(): string
All versions of fuzzio with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.6
The package nullform/fuzzio contains the following files
Loading the files please wait ....