unikent / lib-php-collections
Special Collections API for PHP.
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 14
Forks: 0
Open Issues: 0
pkg:composer/unikent/lib-php-collections
Requires
- php: >=5.3
- solarium/solarium: 3.3.0
Requires (Dev)
This package is not auto-updated.
Last update: 2025-10-11 22:31:38 UTC
README
Full API docs available here: http://unikent.github.io/lib-php-collections/
Add this to your composer require:
- "unikent/lib-php-collections": "dev-master"
Example Usage:
use \unikent\SpecialCollections\API as SCAPI;
$api = new SCAPI();
$api->set_collection(SCAPI::BCAD); // Or SCAPI::VERDI.
$search = $api->get_search();
$search->set_query('refno', 'GW0047')
$results = $search->get_results();
foreach ($results as $result) {
echo '<h3>' . $result->get_title() . '</h3>';
echo '<img src="' . $result->image_url() . '" />';
echo '<p>' . $result->get_description() . '</p>';
echo '<br />';
}