web2all/safebrowsingv4-sqlstorage

Google safebrowsing SQL存储实现

1.0.0 2017-12-21 12:52 UTC

This package is not auto-updated.

Last update: 2024-09-22 16:46:25 UTC


README

本软件包为web2all/safebrowsingv4提供SQL存储后端。此存储后端是用web2all/framework构建的。

web2all/safebrowsingv4-sqlstorage已不再积极维护。

本软件包包含什么

它包含一个GoogleSafeBrowsing_Updater_IStorageGoogleSafeBrowsing_Lookup_IStorage实现,该实现将数据存储在数据库中。仅在MySQL和sqlite(参见测试)上进行了测试。

用法

使用composer安装(例如:composer create-project web2all/safebrowsingv4-sqlstorage)。

请参阅web2all/safebrowsingv4的使用说明,并用以下代码替换$storage

$storage = $web2all->Plugin->Web2All_GoogleSafeBrowsing_SQLStorage_Engine($db);

其中$db是一个指向存储哈希前缀的数据库的ADOConnection对象(参见adodb/adodb-php软件包)。

要初始化数据库,从database目录导入模式。目前只有一个mysql模式,但如果将其转换为您的数据库品牌,它可能仍然有效。

许可证

Web2All safebrowsingv4是开源软件,根据MIT许可证(https://open-source.org.cn/licenses/MIT)授权。