skywit/scws

简易中文分词系统在Laravel的封装包。

2.0.2 2021-01-18 08:55 UTC

This package is not auto-updated.

Last update: 2024-04-09 23:35:20 UTC


README

该项目封装 简易中文分词系统 为 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 命令,发布配置文件到你的项目中。