Giter Site home page Giter Site logo

gt-php-sdk's Issues

PHP SDK 写的不是很好

看了下核心类,私有方法和公有方法,按面向对象程序设计,应该用 private 和 public 关键字
目前很多项目都用 php composer 做依赖管理,是不是考虑发布到 composer 上?

我使用 Geetest 作为我们项目的验证码服务,感谢提供这么好的 idea

composer更新不到3.2.0,赶紧提供啊

Problem 1
    - The requested package gee-team/gt-php-sdk v3.2.x exists as gee-team/gt-php-sdk[15.04.29, 15.05.22.1, 15.05.26.1, 15.06.09, 15.06.12.1, 15.06.17.1, 15.06.29.1, 15.06.29.2, 15.07.28.1, 15.12.04, 15.7.16.1, 15.7.21.1, 15.7.6.1, 15.9.15.1, 3.0.0, dev-dev, dev-master, v3.1.0, v3.1.1] but these are rejected by your constraint.

參考官方php的sdk後 寫了一個簡單的範例

http://c.1339.cf/tgcxjmd.7z
https://mega.co.nz/#F!PEdWjIAS!YvucGMA5WsWqjEEWA_IyUQ

實際架起來就是
http://zh150804.host22.com/geetest/

說明檔案用途

class.geetestlib.php
github的class 對應的geetest版本是2(有點舊) 目前geetest的版本是3

class.geetestlib_config.php
填入自己的geetest id跟KEY 去geetest註冊就拿得到

index.htm
使用者看到的頁面是這樣 需要把原始碼中的網址 改成自己的ID

verify.php
index.htm送出後POST 由verify.php驗證 通過會顯示YES

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.