esono/libri-api-bundle
Libri Api access for the Buchhandlung REST api
8.0.7
2026-02-23 08:24 UTC
Requires
- php: ^8.0|^8.1
- chameleon-system/chameleon-base: 8.0.x
Requires (Dev)
- phpunit/phpunit: ~6.1
README
Other documentation
There is old documentation in Resources/doc which especially gives some short information on how to retrieve specific products.
Important configuration
// TODO
Querying information
The following code works - simple for an EAN and a complex SOLR query (for a list):
/**
* @var $product Product
*/
$product = ServiceLocator::get('esono_libri_api.product_data_service')->getProductByEan('9783365001134');
$solrQuery = '(client:1) AND NOT(libri_search_availability:90) AND ((download_flag:true) OR (bookspress_bookshop_flag:true)) AND ((number:9783743211261) OR (number:9783257071887) OR (number:9783869712475) OR (number:9783311100393) OR (number:9783446272972) OR (number:9783956143854) OR (number:9783423763356) OR (number:9783103971002) OR (number:9783453360846) OR (number:9783442492053) OR (number:9783458682011) OR (number:9783961611300) ) AND (((libri_product_flag:PRODUCT_ONLY) OR (libri_product_flag:COMBIPRODUCT_ONLY)) AND (cover_path:1))';
$operation = new PlainSearchOperation($solrQuery, []);
$searchResultFromApi = ServiceLocator::get('esono_libri_api.operation_handler.product')->executeOperation($operation);
Such a SOLR query can be found in the list (module) configurations in Genialokal.