glanes/symfony-usi-au
Composer 安装命令:
composer require glanes/symfony-usi-au
包简介
SOAP USI unique student number australia
README 文档
README
Installation
Applications that use Symfony Flex
Step 1: Download the Bundle
Open a command console, enter your project directory and execute:
composer update glanes/symfony-usi-au
Step 2: Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles
in the config/bundles.php file of your project:
// config/bundles.php return [ // ... Glanes\UsiBundle\GlanesUsiBundle::class => ['all' => true], ];
Step 3: keystore and environment.xml
Add your environment.xml and keystore-usi.xml in:
config/packages/usi/dev
config/packages/usi/prod
Step 3: Controller Example
class DefaultController extends AbstractController { private $configurator; public function __construct(ConfigurationManager $configurator) { $this->configurator = $configurator; } #[Route(path: '/verify-usi', name: 'verify')] public function verifyUsi() { $configuration = $this->configurator->getConfiguration("dev"); $organization = $configuration->getOrgKeyData($configuration->DefaultOrgCode); $usiClient = new UsiClient($configuration, $organization); $verifyUsi = $usiClient->verifyUSI("VA1803", "BNGH7C75FN", "Maryam", "Fredrick", "1997-09-16"); dd($verifyUsi); return null; } }
统计信息
- 总下载量: 12
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-09-04