承接 coral-media/php-snowball 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

coral-media/php-snowball

最新稳定版本:v1.0.2

Composer 安装命令:

pie install coral-media/php-snowball

包简介

Snowball (libstemmer) bindings for PHP

README 文档

README

Minimal PECL-style scaffold for a Snowball (libstemmer) extension with vendored sources.

Install using PIE

From sources

pie install --with-snowball

From Packagist

pie install coral-media/php-snowball --with-snowball

Further info PIE official repository

Build (from source)

phpize
./configure --with-snowball
make -j"$(nproc)"
make install

Windows support

Check the releases page. Download the compatible asset with your PHP version and make sure you load the extension in php.ini.

Usage

Basic stemming (defaults to English + UTF_8):

<?php
echo snowball_stem('running'); // run

Explicit language + encoding:

<?php
echo snowball_stem('corriendo', SNOWBALL_LANG_ES, SNOWBALL_ENCODING_UTF_8); // corr

Batch stemming for arrays (more efficient than looping in PHP):

<?php
$words = ['running', 'jumps'];
print_r(snowball_stem_array($words)); // ['run', 'jump']

Documentation

Notes

  • Vendored libstemmer sources live under lib/libstemmer.
  • If PIE install or building from source fails with 'make' '-j10'" failed try --make-parallel-jobs 1. Same procedure with make -j if building from sources. Adjust to any convenient value.

统计信息

  • 总下载量: 6
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: C

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-02-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固