# php-sip2 **Repository Path**: phpmvcv2/php-sip2 ## Basic Information - **Project Name**: php-sip2 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-05-01 - **Last Updated**: 2024-05-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README Communicate with a library's integrated library system (ILS) via 3M's SIP2 (Standard Interchange Protocol). ------------ Using this class a programmer will be able to communicate with a library's integrated library system (ILS) via 3M's SIP2 (Standard Interchange Protocol). This project is a work in progress, and as such there may be certain features that do not work correctly. ###Links - [3M SIP2 documentation](http://solutions.3m.com/wps/portal/3M/en_US/library/home/resources/protocols/) - Find this project useful? [Donate via PayPal to the original author](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=john%40wohlershome%2enet&item_name=SIP2%20Class&no_shipping=0&no_note=1&tax=0¤cy_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8) Introduction Using the PHP-SIP2 library is fairly straightforward. Include the class in your PHP file, create a new object, populate the settings, then request data. This example works against a server that does not require a login step. It is trivial to add if needed by your ILS. ####Details hostname = 'server.example.com'; $mysip->port = 6002; // connect to SIP server $result = $mysip->connect(); //send selfcheck status message $in = $mysip->msgSCStatus(); $result = $mysip->parseACSStatusResponse($mysip->get_message($in)); /* Use result to populate SIP2 setings * (In the real world, you should check for an actual value * before trying to use it... but this is a simple example) */ $mysip->AO = $result['variable']['AO'][0]; /* set AO to value returned */ $mysip->AN = $result['variable']['AN'][0]; /* set AN to value returned */ // Identify a patron $mysip->patron = '101010101'; $mysip->patronpwd = '010101'; // Get Charged Items Raw response $in = $mysip->msgPatronInformation('charged'); // parse the raw response into an array $result = $mysip->parsePatronInfoResponse( $mysip->get_message($in) ); // Display Array contents print_r ($result); ?>