glanes/symfony-usi-au 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-09-04