2dotstwice / uitdatabank-search-api-solarium
dev-master / 0.x-dev
2017-03-11 08:44 UTC
Requires
- php: ~5.6 || >=7.0
- cultuurnet/cdb: ^2.1
- solarium/solarium: ~3.8
Requires (Dev)
- phing/phing: ~2.11
- phpunit/phpunit: ~5.7
- satooshi/php-coveralls: ~2.0
- squizlabs/php_codesniffer: ~2.3
This package is auto-updated.
Last update: 2024-11-29 05:26:34 UTC
README
Proof of concept for using CultuurNet UiTdatabank Search API v2 through the Solarium Solr client library for PHP.
Usage examples
The examples directory contains some relatively small command line apps demonstrating how
you can use this library. To try one of them, cd into its directory, run composer install
and then run app.php
.
Authentication
Solarium only provides support for basic HTTP authentication out of the box. Search API v2 however uses OAuth 1. You can accomplish the necessary OAuth authentication on a lower level though, in the actual HTTP client library that is used by Solarium.
In our usage examples we use Guzzle with the Guzzle OAuth Subscriber.