Skip to content

xjtuana/cas-proxy-client-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cas Proxy Client - PHP Version

PHP Client for xczh/cas-proxy

Version 对应版本

  • xjtuana/cas-proxy-client-php v1.0 compatible with xczh/cas-proxy v1.1

Usage 使用方法

composer require xjtuana/cas-proxy-client ~1.0
  • 示例代码
use Xjtuana\Cas\ProxyClient\ClientV1;
use Xjtuana\Cas\ProxyClient\CasProxyClientException;

$client = new ClientV1([
    'protocol' => 'https',
    'hostname' => 'ana.xjtu.edu.cn',
    'prefix' => '/casproxy',
]);

try {
    $user = $client->login();
} catch(CasProxyClientException $e) {
    echo $e->getMessage();
}

echo $user;

Related Packages 相关包

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages