Latrell / SCWS by Latrell

简易中文分词系统在Laravel的封装包。
32
10
3
Package Data
Maintainer Username: Latrell
Maintainer Contact: i@latrell.me (Latrell Chan)
Package Create Date: 2016-05-16
Package Last Update: 2020-02-22
Language: PHP
License: MIT
Last Refreshed: 2024-04-25 15:18:55
Package Statistics
Total Downloads: 32
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 10
Total Watchers: 3
Total Forks: 10
Total Open Issues: 1

SCWS

该项目封装 简易中文分词系统 为 Laravel 拓展包。

安装

composer require latrell/scws dev-master

更新你的依赖包 composer update 或者全新安装 composer install

使用

要使用本服务提供者,你必须自己注册服务提供者到Laravel服务提供者列表中。

打开配置文件 config/app.php

找到key为 providers 的数组,在数组中添加服务提供者。

    'providers' => [
        // ...
        Latrell\Scws\ScwsServiceProvider::class,
    ]

找到key为 aliases 的数组,在数组中注册Facades。

    'aliases' => [
        // ...
        'Scws' => Latrell\Scws\Facades\Scws::class,
    ]

运行 php artisan vendor:publish 命令,发布配置文件到你的项目中。