cap60552/php-sip2

PHP类库,通过3M的SIP2协议方便与集成图书馆系统(ILS)服务器通信。

v1.0.0 2015-11-03 04:42 UTC

This package is not auto-updated.

Last update: 2024-09-18 17:37:46 UTC


README

PHP类库,通过3M的SIP2协议方便与集成图书馆系统(ILS)服务器通信。

Composer安装

要安装此包,请运行以下命令

composer require cap60552/php-sip2

通用安装

将sip2.class.php文件复制到您的php_include路径中的一个位置。

通用用法

// create object
$mysip = new sip2;

// Set host name
$mysip->hostname = 'server.example.com';
$mysip->port = 6002;

// Identify a patron
$mysip->patron = '101010101';
$mysip->patronpwd = '010101';

// connect to SIP server 
$result = $mysip->connect();

// Get Charged Items Raw response
$in = $mysip->msgPatronInformation('charged');

// parse the raw response into an array
$result = $mysip->parsePatronInfoResponse( $mysip->get_message($in) );

贡献

请随时贡献!