定制 ssitu/winnipeg 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ssitu/winnipeg

Composer 安装命令:

composer require ssitu/winnipeg

包简介

Itsy-bitsy honey pot utility.

README 文档

README

Itsy-bitsy honey pot utility.

Getting started

$ composer require ssitu/winnipeg

Will also require SSITU/Blueprints

  • FlexLogsTrait and
  • FlexLogsInterface specifically.

This is a Psr-3 "logger aware" implementation with a fallback.
If no use of other SSITU blueprints, you can download just those two files.

How to

Field id can be set for a Winnipeg instance, or on method call, or not set at all --default field id is: fluffandstuff.

use SSITU\Winnipeg\Winnipeg;

require_once '/path/to/vendor/autoload.php';

$Winnipeg = new Winnipeg();
# or
$fieldId = 'jovialTastiness';
$Winnipeg = new Winnipeg($fieldId);
# or
$Winnipeg = new Winnipeg();
$Winnipeg->setFieldId($fieldId);

# optional:
$Winnipeg->setLogger($somePsr3Logger);

$htmlField = $Winnipeg->getHoneyPotHtml();
$css = $Winnipeg->getHoneyPotCss();
$isHoneyPotEmpty = $Winnipeg->honeyPotIsEmpty();
# or
$htmlField = $Winnipeg->getHoneyPotHtml($fieldId);
$css = $Winnipeg->getHoneyPotCss($fieldId);
$isHoneyPotEmpty = $Winnipeg->honeyPotIsEmpty($fieldId);

if(!$isHoneyPotEmpty){
$data = $Winnipeg->getLocalLogs(); 
# or check your own logger, if one was set
}

Contributing

Sure! You can take a loot at CONTRIBUTING.

License

This project is under the MIT License; cf. LICENSE for details.

统计信息

  • 总下载量: 4
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-06-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固