docchula / vesta-client
Vesta(MDCU 目录提供者)的 Laravel 客户端服务
v1.0.0
2024-04-12 14:55 UTC
Requires
- php: ^8.0
- guzzlehttp/guzzle: ^7.5
- illuminate/contracts: ^9.0|^10.0|^11.0
- illuminate/http: ^9.30|^10.0|^11.0
- lcobucci/jwt: ^5.1.0
- spatie/laravel-package-tools: ^1.14.0
Requires (Dev)
- larastan/larastan: ^2.0.1
- laravel/pint: ^1.0
- nunomaduro/collision: ^6.0|^7.9|^8.1
- orchestra/testbench: ^7.0|^8.0
- pestphp/pest: ^1.0|^2.0
- pestphp/pest-plugin-laravel: ^1.1|^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
README
Vesta(MDCU 目录提供者)的 Laravel 客户端服务
安装
您可以通过 composer 安装此包
composer require docchula/vesta-client
您可以使用以下命令发布配置文件
php artisan vendor:publish --tag="vesta-client-config"
您应该设置以下 ENV 变量
VESTA_SECRET
- Vesta 提供的密钥VESTA_ISSUER
- Vesta 提供的发行者 URLVESTA_URL
- Vesta API 的 URL(可选)
使用方法
$vestaClient = new Docchula\VestaClient(); // or use Laravel's Facade: $response = VestaClient::retrieveStudent($identifier, $userEmail, ['title', 'first_name', 'last_name', 'first_name_en', 'last_name_en', 'email', 'nickname']); if ($response->successful()) { $data = $response->json(); }
测试
composer test
更新日志
请参阅 更新日志 了解最近更改的详细信息。
鸣谢
许可协议
MIT 许可协议(MIT)。有关更多信息,请参阅 许可文件。