cfd-innovationoss / mya-public
MYA(管理您的API)是一个开源解决方案,使用PHP技术,提供一套允许API管理功能的类方法。
v1.0
2020-02-13 14:08 UTC
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2024-09-24 09:28:38 UTC
README
MYA(管理您的API)是一个开源解决方案,使用PHP提供了一组允许API管理功能的类方法。
该类可以轻松集成到用PHP编写的WS项目中。
MYA包
开源许可
如何安装
MYA可在Packagist上找到。要安装,请使用Composer:`
composer require cfd-innovationoss/mya-public `
。
或者您也可以使用git clone在您的根项目中安装它:https://gitlab.com/cfd-innovationoss/mya-public.git。
如何使用
在您的webservice中添加以下行
include 'mya.php';
$myRequest = new mya;
$myRequest->collect("csv");
collect()方法接受两个参数,日志格式(json或csv)以及可选的日志文件名。例如:collect("json", "new_api")