locksmith/sdk-php
Composer 安装命令:
composer require locksmith/sdk-php
包简介
PHP client for the Locksmith public auth API
README 文档
README
Official PHP 8.2+ client for the Locksmith public auth API.
Install
composer require locksmith/sdk-php
Requirements
- PHP 8.2+ with
ext-json - API key prefix
lsm_live_orlsm_sbx_.
Quick start
<?php use Locksmith\LocksmithClient; $client = new LocksmithClient(getenv('LOCKSMITH_API_KEY')); $data = $client->signIn('user@example.com', 'secure-password'); echo $data['user']['email'], "\n"; $user = $client->getUser($data['accessToken']);
Methods return the inner data object from Locksmith’s JSON envelope.
Local JWT verification
$payload = $client->verifyTokenLocal($accessToken, $publicKeyPem);
License
MIT
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-04-30