Download the PHP package zbrettonye/geetest without Composer

On this page you can find all versions of the php package zbrettonye/geetest. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package geetest

极验验证码 v3.0 Laravel

采用了Germeyd的package,在此基础上添加后台获取Geetest ID 和 KEY 方法,可不从env获取。

安装

  1. 安装包文件

配置

Laravel5.5+ 可跳过此步骤

  1. config/app.php 注册 ServiceProvider:

  2. config/app.php 添加 Alias

  3. 创建配置文件、视图级资源文件:

  4. .env 文件增加配置项 GEETEST_IDGEETEST_KEY 或 通过添加 Component CaptchaVerify 来获取 ID 和 KEY

配置项

配置项 说明 选项 默认值
width 按钮宽度 单位可以是 px, %, em, rem, pt 300px
lang 语言,极验验证码免费版不支持多国语言 zh-cn, en, zh-tw, ja, ko, th zh-cn
server-get-config 从服务器获取GeetestKEY True False
product 验证码展示方式 popup, float popup
geetest_id 极验验证码ID
geetest_key 极验验证码KEY
client_fail_alert 客户端失败提示语 请完成验证码
server_fail_alert 服务端失败提示语 验证码校验失败

使用

  1. 前端使用 安装扩展后,在页面需要使用极验验证码的地方增加如下代码

  2. 服务端校验 在服务端使用 geetest 验证规则进行二次验证,示例代码:

  3. 配置项:server-get-config - 服务器获取GeetestKey 通过调用 Components CaptchaVerify 的 geetestCaptchaGetConfig 方法来获取 Geetest 配置,方便实现由后台配置的KEY 和 ID

参考项目

  1. Germey/LaravelGeetest

  2. GeeTeam/gt3-php-sdk

License

The MIT License (MIT). Please see License File for more information.


All versions of geetest with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
ext-json Version *
illuminate/routing Version >=6
illuminate/support Version >=6
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package zbrettonye/geetest contains the following files

Loading the files please wait ....