PHPackages                             amaccis/php-stemmer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. amaccis/php-stemmer

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

amaccis/php-stemmer
===================

A PHP interface to the Snowball stemming algorithms

3.1.0(1mo ago)1531.1k↑14.7%MITPHPPHP ^8.2.0

Since Mar 7Pushed 1mo agoCompare

[ Source](https://github.com/amaccis/php-stemmer)[ Packagist](https://packagist.org/packages/amaccis/php-stemmer)[ RSS](/packages/amaccis-php-stemmer/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (4)Dependencies (4)Versions (10)Used By (0)

php-stemmer
===========

[](#php-stemmer)

[![PHP Version](https://camo.githubusercontent.com/962aced9b09d89716dbebf186ff899754a096ff1068b6b7988675c2d9fab9331/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545382e322d626c75652e737667)](https://img.shields.io/badge/php-%5E8.2-blue.svg)[![CI](https://github.com/amaccis/php-stemmer/workflows/CI/badge.svg)](https://github.com/amaccis/php-stemmer/workflows/CI/badge.svg)

What is PHP Stemmer?
--------------------

[](#what-is-php-stemmer)

PHP Stemmer is a PHP interface to the stemming algorithms from the [Snowball project](https://snowballstem.org/), largely inspired by Richard Boulton's [PyStemmer](https://github.com/snowballstem/pystemmer). It uses FFI (ext-ffi) and expects to find the file libstemmer.so (a version of [Libstemmer](https://snowballstem.org/dist/libstemmer_c.tgz) compiled as shared library) in LD\_LIBRARY\_PATH.
In order to set up this kind of environment you can take a look at [docker-php-libstemmer](https://github.com/amaccis/docker-php-libstemmer) Dockerfile or you can use the corresponding docker image: [amaccis/php-libstemmer](https://hub.docker.com/r/amaccis/php-libstemmer)

Installation
------------

[](#installation)

PHP Stemmer is available on [Packagist](http://packagist.org/packages/amaccis/php-stemmer), you can install it using [Composer](http://getcomposer.org).

```
composer require amaccis/php-stemmer
```

Usage
-----

[](#usage)

```
