unikent / lib-php-collections
There is no license information available for the latest version (dev-master) of this package.
Special Collections API for PHP.
dev-master
2015-02-06 13:59 UTC
Requires
- php: >=5.3
- solarium/solarium: 3.3.0
Requires (Dev)
This package is not auto-updated.
Last update: 2024-11-09 17:37:57 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 />';
}