Download the PHP package wxkxklmyt/pscws4 without Composer

On this page you can find all versions of the php package wxkxklmyt/pscws4. 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 pscws4

基于PSCWS4词库的PHP中文分词工具

词库官方网址:http://www.xunsearch.com/scws/
这是用纯 PHP 代码实现的 C 版 Libscws 的全部功能,即第四版的 PSCWS
PSCWS4 使用文档:http://www.xunsearch.com/scws/docs.php#pscws4


安装

composer require wxkxklmyt/pscws4

使用

/**
 * SCWS中文分词
 *
 * @param string $text 分词字符串
 * @param number $number 权重高的词数量(默认5个)
 * @param string $type 返回类型,默认字符串
 * @param string $delimiter 分隔符
 * @return string|array 字符串|数组
 */
$scws = new Scws();
$scws -> scws('能做到柔和、善解、忍辱,才有办法与人结好缘。——证严法师《静思语》');

运行结果

静思 善解 法师 柔和 做到

其它说明

  1. 默认返回结果为字符串,返回字符串支持自定义分隔符,默认为空格
  2. 支持返回结果为数组
  3. 支持返回词数量自定义,默认为5个

官网(我的梦):https://www.4ui.cn/


版权申明:这里只是把PSCWS4封装成composer包,词库版权属于原作者


All versions of pscws4 with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
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 wxkxklmyt/pscws4 contains the following files

Loading the files please wait ....