Overview
Based on php laravel framework and composer managing the dependency.
Demo development environment
Item |
Description |
OS |
Ubuntu 16.04.6 LTS |
composer version |
1.10.7 |
php version |
7.2.24 |
laravel version |
5.5.8 |
redis version |
3.0.6 |
Resources
Installation
Download DEMO
git clone https://github.com/GeeTeam/gt3-server-php-laravel-bypass.git
|
Get public key(ID) and private key(KEY) from GeeTest Dashboard.Then configure the key pair in the following configuration file:
app/Http/Controllers/geetest_config.php
|
Run demo
cd gt3-server-php-laravel-sdk sudo cp .env.example .env sudo composer install sudo php artisan serve --host=0.0.0.0 --port=8889
|
- Visit
http://localhost:8889
to view the demo.
- Check logs with the comman
tail -f storage/logs/laravel.log
Key file reference
Name |
Description |
Directory |
GeetestController.php |
Handle service initialization and secondary verification process |
app/Http/Controllers/ |
geetest_config.php |
Configure id and key |
app/Http/Controllers/ |
GeetestLib.php |
Contains the core logic |
app/Http/Controllers/Sdk/ |
GeetestLibResult.php |
Encapsulated class providing access to the data |
app/Http/Controllers/Sdk/ |
index.html |
Index page of the demo |
public/ |
web.php |
Configure the router,homepage、initialization and secondary verification |
routes/ |
VerifyCsrfToken.php |
Middleware,csrf security check |
app/Http/Middleware/ |
laravel.log |
Log file for the key events |
storage/logs/ |
.env |
Framework configuration fle |
|
composer.json |
Dependency management file |
|
Reference
GeeTest Status Monitoring API
Client/SDK Server Communication API Reference
SDK/GeeTest Server Communication API Reference