--- title: 全部插件 description: CaptchaLa 面向 CMS、论坛、电商、工单、在线学习和身份认证平台的全部官方插件,以及各插件的获取方式与安装步骤。 --- # 全部插件 以下平台均有 CaptchaLa 官方插件。每个插件都会把验证组件加到平台自带的表单上,并在你的服务器上使用 [`dash.captcha.la`](https://dash.captcha.la) 中的 **App Key** 和 **App Secret** 校验 token。安装后打开插件设置,填入这两个密钥,再选择需要保护的表单即可。 “获取”列为 **GitHub** 的插件需要从代码仓库安装。安装步骤中提到 `build.sh` 时,请在仓库中运行它(需要 Composer 2.2 或更高版本),它会把可安装的 ZIP(已内置 PHP SDK)输出到 `release/`。完整步骤见各仓库的 README。 ## CMS 与 Wiki | 平台 | 获取 | 安装 | | --- | --- | --- | | WordPress(WooCommerce、Contact Form 7、Gravity Forms 等) | [WordPress.org](https://wordpress.org/plugins/captchala/) | 在 WordPress 后台进入 **Plugins → Add New**,搜索 “CaptchaLa”,安装并启用。详见 [WordPress](./wordpress)。 | | Drupal | [GitHub](https://github.com/Captcha-La/captchala-drupal) | 把仓库复制到 `modules/contrib/captchala`,在站点根目录运行 `composer require captchala/captchala-php drupal/captcha`,然后运行 `drush en captchala captcha`。详见 [Drupal](./drupal)。 | | Joomla | [GitHub](https://github.com/Captcha-La/captchala-joomla) | 用 `build.sh` 构建 ZIP,在 **System → Install → Extensions** 中上传,然后启用 CaptchaLa 验证码插件。详见 [Joomla](./joomla)。 | | TYPO3 | [GitHub](https://github.com/Captcha-La/captchala-typo3) | Composer 模式:`composer require captchala/typo3`。经典模式:用 `build.sh` 构建 ZIP,在 **Admin Tools → Extensions** 中上传。详见 [TYPO3](./typo3)。 | | MediaWiki | [GitHub](https://github.com/Captcha-La/captchala-mediawiki) | 克隆到 `extensions/Captchala`,在该目录运行 `composer install --no-dev`,然后在 `LocalSettings.php` 中加入 `wfLoadExtension( 'Captchala' );`(需配合 ConfirmEdit)。详见 [MediaWiki](./mediawiki)。 | | Typecho | [GitHub](https://github.com/Captcha-La/captchala-typecho) | 用 `build.sh` 构建 ZIP,解压到 `usr/plugins/Captchala/`,然后在 **Console → Plugins** 中启用。详见 [Typecho](./typecho)。 | ## 论坛与社区 | 平台 | 获取 | 安装 | | --- | --- | --- | | Flarum | [Packagist](https://packagist.org/packages/captchala/flarum) | 运行 `composer require captchala/flarum`,然后在后台扩展列表中启用 CaptchaLa。详见 [Flarum](./flarum)。 | | Discourse | [GitHub](https://github.com/Captcha-La/discourse-captchala) | 在 `containers/app.yml` 的 `after_code` 钩子中加入 `git clone https://github.com/Captcha-La/discourse-captchala`,然后运行 `./launcher rebuild app`。详见 [Discourse](./discourse)。 | | NodeBB | [npm](https://www.npmjs.com/package/nodebb-plugin-captchala) | 运行 `npm install nodebb-plugin-captchala`,再运行 `./nodebb activate nodebb-plugin-captchala` 和 `./nodebb build`,然后重启。详见 [NodeBB](./nodebb)。 | | phpBB | [GitHub](https://github.com/Captcha-La/captchala-phpbb) | 用 `build.sh` 构建 ZIP,解压到 `ext/`(最终位于 `ext/captchala/captcha/`),在 **ACP → Customise → Manage extensions** 中启用,然后将其选为反垃圾机器人措施。详见 [phpBB](./phpbb)。 | | MyBB | [GitHub](https://github.com/Captcha-La/captchala-mybb) | 用 `build.sh` 构建 ZIP,解压到 MyBB 根目录,然后在 **ACP → Configuration → Plugins** 中点击 **Install & Activate**。详见 [MyBB](./mybb)。 | ## 电商 | 平台 | 获取 | 安装 | | --- | --- | --- | | WooCommerce | 包含在 [WordPress 插件](./wordpress)中 | 安装 WordPress 插件即可,结账、登录和注册保护都在其设置中。 | | Magento 2 | [GitHub](https://github.com/Captcha-La/captchala-magento-2) | 把 `CaptchaLa/` 复制到 `app/code/`,运行 `composer require captchala/captchala-php`,然后运行 `bin/magento module:enable CaptchaLa_Captcha` 和 `bin/magento setup:upgrade`(其余配置命令见 README)。详见 [Magento 2](./magento-2)。 | | OpenCart | [GitHub](https://github.com/Captcha-La/captchala-opencart) | 用 `build.sh` 构建 `captchala.ocmod.zip`,在 **Extensions → Installer** 中上传,然后在 **Extensions → Captchas** 中安装 CaptchaLa。详见 [OpenCart](./opencart)。 | ## 工单、计费与在线学习 | 平台 | 获取 | 安装 | | --- | --- | --- | | WHMCS | [GitHub](https://github.com/Captcha-La/captchala-whmcs) | 下载仓库,把 `modules/addons/captchala/` 复制到 WHMCS 根目录,然后在 **Setup → Addon Modules** 中启用。详见 [WHMCS](./whmcs)。 | | osTicket | [GitHub](https://github.com/Captcha-La/osticket-captchala) | 用 `build.sh` 构建 ZIP,解压到 `include/plugins/captchala/`,然后在 **Admin Panel → Manage → Plugins** 中安装并添加一个实例。详见 [osTicket](./osticket)。 | | Moodle | [GitHub](https://github.com/Captcha-La/captchala-moodle) | 下载仓库 ZIP(可直接安装),在 **Site administration → Plugins → Install plugins** 中上传。详见 [Moodle](./moodle)。 | ## 身份认证 | 平台 | 获取 | 安装 | | --- | --- | --- | | Keycloak | [GitHub](https://github.com/Captcha-La/captchala-keycloak)([发布版 JAR](https://github.com/Captcha-La/captchala-keycloak/releases)) | 把 JAR 复制到 `providers/`,运行 `kc.sh build` 并重启,然后在认证流程中添加 CaptchaLa 执行步骤。详见 [Keycloak](./keycloak)。 | ## 其他平台? 任何网站都可以直接使用 [Web SDK](../web-sdk) 配合[服务端 SDK](../sdk/server-php) 接入。如需新的插件,请[联系我们](https://captcha.la/zh-CN/contact)。