https://github.com/bediniupi/alma-webhook-class-php
A class to use Alma Ex Libris webhooks in php scripts
https://github.com/bediniupi/alma-webhook-class-php
alma php webhooks webhooks-catcher
Last synced: 26 days ago
JSON representation
A class to use Alma Ex Libris webhooks in php scripts
- Host: GitHub
- URL: https://github.com/bediniupi/alma-webhook-class-php
- Owner: bediniupi
- License: mit
- Created: 2020-06-15T13:12:18.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-01T12:27:32.000Z (10 months ago)
- Last Synced: 2025-03-23T06:41:25.545Z (about 1 month ago)
- Topics: alma, php, webhooks, webhooks-catcher
- Language: PHP
- Size: 11.7 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Alma-Webhook-Class-PHP
A class to use Alma Ex Libris webhooks in php scripts* You can use both JSON and XML output
* Challenge and Signature verification
* Logging system## Usage
Example code
```
result) {
//your code (use $webh->res_obj to collect data; if you prefer arrays, use $dataray = (array)$webh->res_obj, $webh->result contains result as a string);
$action = $webh->res_obj->action; // event type in Alma
$webh->addLog("this is happening"); // add info to log
}
file_put_contents("filelog.txt", $webh->log, FILE_APPEND); // save log to a file
?>
```
## Prerequisites
* PHP, Web Server HTTPS
* Alma Ex Libris## Authors
* **Nazzareno Bedini - University of Pisa**## References
* \[1\] [Alma webhooks](https://knowledge.exlibrisgroup.com/Alma/Product_Documentation/010Alma_Online_Help_(English)/090Integrations_with_External_Systems/030Resource_Management/300Webhooks).