docchula/vesta-client
最新稳定版本:v1.0.1
Composer 安装命令:
composer require docchula/vesta-client
包简介
Laravel Client Service for Vesta, the MDCU Directory Provider
README 文档
README
Laravel Client Service for Vesta, the MDCU Directory Provider
Installation
You can install the package via composer:
composer require docchula/vesta-client
You can publish the config file with:
php artisan vendor:publish --tag="vesta-client-config"
You should set the following ENV variables:
VESTA_SECRET- The secret key provided by VestaVESTA_ISSUER- The issuer URL provided by VestaVESTA_URL- The URL of the Vesta API (optional)
Usage
$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(); }
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 500
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-09-14