2017 © Pedro PelĂĄez
 

library elucidate-php

Elucidate Annotation Server API for PHP

image

dlcs/elucidate-php

Elucidate Annotation Server API for PHP

  • Monday, November 27, 2017
  • by stephenwf
  • Repository
  • 3 Watchers
  • 2 Stars
  • 6,429 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 2 Open issues
  • 17 Versions
  • 5 % Grown

The README.md

Elucidate PHP

Build Status, (*1)

Installation

composer require dlcs/elucidate-php

You will also need to install GuzzleHttp >= v6, (*2)

 Usage


// Create an HTTP driver. $guzzle = new Elucidate\Adapter\GuzzleHttpAdapter( new GuzzleHttp\Client(['base_uri' => 'http://my.eluciadte.server']) ); // Create the Elucidate client. $elucidate = new Elucidate\Client($guzzle); // Create a container for storing annotations. $container = $elucidate->createContainer('My first container'); // Create an annotation. $annotation = new Elucidate\Model\Annotation(null, [ 'type' => 'TextualBody', 'value' => 'I like this page!' ], 'http://www.example.com/index.html'); // Add metaData $annotation->withMetaData([ 'creator' => 'stephen@_.com' ]); // Assign it to a container. $annotation->withContainer($container); // Create it in the server. $elucidate->createAnnotation($annotation); // Search for the annotation. $json = $elucidate->search(new Elucidate\Search\SearchByTarget(['id'], 'http://www.example.com/index.html')); // Get search result wrapper $searchResult = SearchResult::fromJson($json); // get annotations (generator) $annotations = $searchResult->getResults(); // Annotation objects // get next page ID $searchResult->getNextPage(); // Search for next page $page2 = $elucidate->search($searchResult->getNextSearchQuery()); // etc.. $searchResultPage2 = SearchResult::fromJson($page2);

The Versions

12/09 2017

v2.1.2

2.1.2.0

Elucidate Annotation Server API for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

12/09 2017

dev-feature/total-results

dev-feature/total-results

Elucidate Annotation Server API for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

01/08 2017

2.1.1

2.1.1.0

Elucidate Annotation Server API for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

31/07 2017

2.1.0

2.1.0.0

Elucidate Annotation Server API for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

26/07 2017

dev-feature/elucidate-generator-search

dev-feature/elucidate-generator-search

Elucidate Annotation Server API for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

08/05 2017

v2.0.0

2.0.0.0

Elucidate Annotation Server API for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

05/05 2017

1.0.2

1.0.2.0

Elucidate Annotation Server API for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

04/04 2017

1.0.1

1.0.1.0

Elucidate Annotation Server API for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

03/04 2017

1.0.0

1.0.0.0

Elucidate Annotation Server API for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires