Download the PHP package jakhotiya/symspell-php without Composer

On this page you can find all versions of the php package jakhotiya/symspell-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package symspell-php

SymSpell PHP

PHP Version

Spelling correction & Fuzzy search: 1 million times faster through Symmetric Delete spelling correction algorithm

A complete PHP port of the SymSpell library - the world's fastest spelling correction & fuzzy search library.

Features

Ultra-Fast Spelling Correction - 1 million times faster than traditional algorithms
Word Segmentation - Split concatenated words ("thequickbrownfox""the quick brown fox")
Compound Correction - Multi-word spelling correction with context awareness
Multi-Language Support - Includes dictionaries for 8+ languages
CLI Interface - Command-line tool with pipes and redirects support
Complete API - All original SymSpell functionality ported to PHP

Quick Start

Installation

Basic Usage

Core Algorithms

1. Single Word Correction

Fast spelling correction for individual words using the Symmetric Delete algorithm:

2. Word Segmentation

Triangular Matrix Algorithm - O(n) runtime complexity for splitting concatenated words:

3. Compound Correction

Multi-word spelling correction with compound splitting/merging:

Demo Applications

The package includes four demo applications showcasing different features:

1. Basic Demo (Single Word Correction)

Interactive spell checker - type words and get suggestions.

2. Word Segmentation Demo

Split concatenated words:

3. Compound Correction Demo

Multi-word spelling correction with context awareness.

4. Command Line Interface

CLI Parameters:

Dictionaries

📚 Dictionary Customization Guide - Learn how to add words, create custom dictionaries, and build domain-specific vocabularies.

The package includes comprehensive dictionaries:

English Dictionaries (Included)

Multi-Language Dictionaries (Included)

Dictionary Format

Plain UTF-8 text files with format: word frequency

Performance

Speed Benchmarks

Memory Usage

API Reference

Core Classes

SymSpell

Main spell correction class.

Constructor:

Methods:

SuggestItem

Represents a spelling suggestion.

SegmentationItem

Represents word segmentation result.

Verbosity Enum

Controls number of suggestions returned.

Algorithm Details

Symmetric Delete Algorithm

SymSpell uses a revolutionary approach:

Result: 1,000,000x speed improvement over traditional methods.

Triangular Matrix Word Segmentation

Edit Distance

Supports multiple algorithms:

Testing

Run the test suite:

Test Coverage:

Requirements

License

MIT License - see LICENSE file.

Credits

Applications

Perfect for:


⚡ Experience the world's fastest spelling correction in PHP!


All versions of symspell-php with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
ext-mbstring Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package jakhotiya/symspell-php contains the following files

Loading the files please wait ....