library php-sip2
PHP class library to facilitate communication with Integrated Library System (ILS) servers via 3M's SIP2.
cap60552/php-sip2
PHP class library to facilitate communication with Integrated Library System (ILS) servers via 3M's SIP2.
- Tuesday, November 3, 2015
- by cap60552
- Repository
- 1 Watchers
- 5 Stars
- 25,981 Installations
- PHP
- 1 Dependents
- 0 Suggesters
- 4 Forks
- 3 Open issues
- 2 Versions
- 15 % Grown
SIP2 communication library for PHP
PHP class library to facilitate communication with Integrated Library System (ILS) servers via 3M's SIP2., (*1)
Composer Installation
To install this package, run this command:, (*2)
composer require cap60552/php-sip2
General Installation
Copy the sip2.class.php file to a location in your php_include path., (*3)
General Usage
// 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) );
Contribution
Feel free to contribute!, (*4)