承接 jimwins/akismet-api 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

jimwins/akismet-api

最新稳定版本:v0.0.4-alpha

Composer 安装命令:

composer require jimwins/akismet-api

包简介

Library for accessing the Akismet API without any framework dependencies.

README 文档

README

This is a simple PHP library for accessing the Akismet API without any framework dependencies. Spam checking does require a PSR-7 ServerRequest but one can easily be faked using GuzzleHttp.

Source Build Status Total Downloads Latest Stable Version

Installation

This is installable and autoloadable via Composer as jimwins/akismet-api. If you aren't familiar with the Composer Dependency Manager for PHP, you should read this first.

$ composer require jimwins/akismet-api --prefer-dist

Sample Usage

<?php
$api = new \Akismet\API("{Your Akismet API Key}", "{{ your site/blog URL }}");

if (!$api->verifyKey()) {
  die("That API key could not be verified.");
}

$api->commentCheck($values, $request);

$api->submitSpam($values);

$api->submitHam($values);

$api->keySites();

$api->usageLimit();

Unit Testing

$ vendor/bin/phpunit

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-06-17