jasonchen/utilities

utilities

dev-main 2022-03-16 04:36 UTC

This package is auto-updated.

Last update: 2024-09-16 10:40:14 UTC


README

安装

composer require jasonchen/utilities dev-main

用法

记录日志用法

$util = new Util();

$util->logs(<repo>, <message strings>, <extra path>, <root path>);

accunix API 使用

$accunix = new AccunixLineApi(<bot id>);

$accunix->setAccessToken(<access token>);

$response = $accunix->sendMessages(<user token>, <message body>);

kafka REST API 使用

$kafka = new KafkaRest(<kafka rest url>, <log path>);

$kafka->setTopicName(<topic name>);

$result = $kafka->push(<value>, <key>);