dev-master
9999999-dev https://github.com/unikent/lib-php-collectionsSpecial Collections API for PHP.
The Requires
- php >=5.3
- solarium/solarium 3.3.0
The Development Requires
by Skylar Tristan Kelty
api library special collections
Wallogit.com
2017 © Pedro Peláez
Special Collections API for PHP.
Full API docs available here: http://unikent.github.io/lib-php-collections/, (*2)
Add this to your composer require: * "unikent/lib-php-collections": "dev-master", (*3)
Example Usage:, (*4)
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 '
' . $result->get_title() . '
';
echo '<img src="' . $result->image_url() . '" />';
echo '
' . $result->get_description() . ', (*5)
';
echo '<br />';
}
Special Collections API for PHP.
api library special collections