wjh/tuling

laravel 图灵机器人

Downloads

4

Stars

0

Version

v0.1.2

Tuling robot for Laravel 5

[![Build Status][ico-travis]][link-travis]

关于

Tuling robot是对图灵机器人的封装

安装方法

在你的composer.json中引用 wjh/tuling,然后更新依赖关系:

$ composer require wjh/tuling

config/app.php服务提供者数组中添加Wjh\Tuling\ServiceProvider

Wjh\Tuling\ServiceProvider::class,

使用方法

$handle = new Wjh\Tuling\Handle();
$handle->handle();

配置文件

默认的配置文件在config/tuling.php,复制该文件到你的文件夹中并修改,发布配置文件通过以下命令:

php artisan vendor:publish --provider="Wjh\Tuling\ServiceProvider"

app_url和app_key可以到图灵官网上申请

return [
    'app_url' => env('tuling_app_url'),
    'app_key' => env('tuling_app_key'),
];
wjh825998772

Author

wjh825998772