Skip to content

ivar66/easy-hitokoto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Easy Hitokoto

支持服务器端快捷返回一条诗词,动漫等语句

环境需求

  • PHP >= 5.6

安装

$ composer require ivar/easy-hitokoto

使用

获取一言的数据

<?php

use Ivar\EasyHitokoto\EasyHitokoto;

$arrReq = [
    'c'         => 'i', //不传为随机返回一条数据
    'charset'   => 'utf-8'
    // 参数参考文档api即可,https://developer.hitokoto.cn/sentence
];
$obj = new EasyHitokoto();
$arrayOk = $obj->getHitOkOto($arrReq);

License

MIT

About

一言语句的sdk

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages