2017 © Pedro PelĂĄez
 

library europeana

A client implementation of the Europeana API

image

colada/europeana

A client implementation of the Europeana API

  • Wednesday, October 18, 2017
  • by netsensei
  • Repository
  • 3 Watchers
  • 6 Stars
  • 19 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Europeana API library

Latest Version Software License Build Status Total Downloads, (*1)

A PHP client library for the Europeana Portal

This PHP library provides a highly abstract client implementation of the Europeana REST API. It allows your PHP application to query and retrieve the Europeana datasets which are published via the main Europeana Portal in a highly abstracted, developer friendly fashion., (*2)

What is Europeana?

Europeana is an internet portal that acts as an interface to books, paintings, films, museum objects and archival records that have been digitised throughout Europe. More then 2.000 institutions across Europe have contributed. These range from large names such as the Rijksmuseum, the British Library or the Louvre to regional archives and local museums., (*3)

Install

Via Composer, (*4)

``` bash $ composer require colada/europeana, (*5)


## Usage ### API Key You will need an API key before you can connect to the API endpoint. You can register an account an obtain a key at the [Europeana Labs](http://labs.europeana.eu/api/registration/) website. ### Basic example Perform a basic search query:

$apiKey = "myRegisteredKey"; $payload = new Colada\Europeana\Payload\SearchPayload(); $payload->addQuery("Mona Lisa");, (*6)

try { $client = new Guzzle\Client() $apiClient = new Colada\Europeana\Transport\ApiClient($apiKey, $client);, (*7)

$payloadResponse = $apiClient->send($payload);

$items = $payloadResponse->getItems();
foreach ($items as $item) {
    $item->getTitle();
    $item->getType();
}

} catch (new Colada\Europeana\Exception\EuropeanaException $e) { // Process the exception }, (*8)


## Features - API calls are modelled as a Payload -> Transport -> Response class representation. - The response is deserialized using the [JMS Serializer](http://jmsyst.com/libs/serializer) library into first class citizen PHP objects. - Highly abstracted, loose coupled components for easy reuse in your own applications. ## Documentation Currently these API calls are entirely of partially implemented: Action | API call | Status --------------------- | ----------------------------------- | -------- Search | search.json | Incomplete | Record | record.json | Incomplete | Dataset | dataset/[datasetId].json | Complete Provider | provider/[providerId].json | Complete Suggestions | suggestions.json | Complete Dataset (by provider) | provider/[providerId]/datasets.json | Complete If you have any particular questions regarding the operation of the API, please refer to the [Europeana API Google Group](https://groups.google.com/forum/#!forum/europeanaapi). ## Testing ``` bash $ phpunit

Contributing

Please see CONTRIBUTING for details., (*9)

Security

If you discover any security related, please email matthias@colada.be instead of using the issue tracker., (*10)

Credits

This package is heavily inspired upon the Slack API library by Cas Leentfaar. Parts of the Slack API code where reused and adapted under the MIT License terms., (*11)

License

The MIT License (MIT). Please see License File for more information., (*12)

The Versions

18/10 2017

dev-master

9999999-dev http://netsensei.github.io/europeana/

A client implementation of the Europeana API

  Sources   Download

MIT

The Requires

 

The Development Requires

client culture europeana europeana api heritage

18/10 2017

1.0.1

1.0.1.0 http://netsensei.github.io/europeana/

A client implementation of the Europeana API

  Sources   Download

MIT

The Requires

 

The Development Requires

client culture europeana europeana api heritage

18/10 2017

1.0.0

1.0.0.0 http://netsensei.github.io/europeana/

A client implementation of the Europeana API

  Sources   Download

MIT

The Requires

 

The Development Requires

client culture europeana europeana api heritage