wsw/sift-science
最新稳定版本:1.0.9
Composer 安装命令:
composer require wsw/sift-science
包简介
PHP client Sift Science
README 文档
README
SDK Sift Science
Installation
Via Composer:
composer require wsw/sift-science
Usage
Create new account
<?php use InvalidArgumentException; use WSW\Email\Email; use WSW\SiftScience\Credentials; use WSW\SiftScience\Exceptions\SiftScienceRequestException; use WSW\SiftScience\Services\CreateAccountService; try { $credentials = new Credentials('apiToken'); $service = new CreateAccountService($credentials); $account = $service->createAccountBuilder(); $account ->setUserId('billy_jones_301') ->setSessionId('gigtleqddo84l8cm15qe4il') ->setUserEmail(new Email('bill@gmail.com')) ->setName('Bill Jones') ->setPhone('1-415-555-6040'); $service->create($account); } catch (SiftScienceRequestException $e) { echo $e->getMessage(); } catch (InvalidArgumentException $e) { echo $e->getMessage(); }
Testing
$ composer test Security
If you discover any security related issues, please email ronaldo@whera.com.br instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 22.77k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04