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.
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
其他信息
- 授权协议: MIT
- 更新时间: 2023-06-17