2017 © Pedro Peláez
 

library forage-client

PHP client for the forage search server

image

vierbergenlars/forage-client

PHP client for the forage search server

  • Sunday, October 6, 2013
  • by vierbergenlars
  • Repository
  • 1 Watchers
  • 1 Stars
  • 48 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 17 Versions
  • 0 % Grown

The README.md

Forage-PHP-Client

Build Status Scrutinizer Quality Score Latest Stable Version Total Downloads, (*1)

A PHP client for the Forage search server, (*2)

License: MIT, (*3)

Installation

$ composer require vierbergenlars/forage-client:~0.2@alpha, (*4)

Usage example

<?php

use vierbergenlars\Forage\Transport\Http as HttpTransport;
use vierbergenlars\Forage\Client;

$transport = new HttpTransport;
$client = new Client($transport);

$query = $client->createQueryBuilder()
               ->setSearchQuery('Funny cat')
               ->setOffset(($_GET['page']-1)*10)
               ->setLimit(10)
               ->addSearchField('title')
               ->addFacet('media_type')
               ->addFilter('animal', 'cat')
               ->addFilter('categories', array('funny', 'lol'))
               ->addWeight('title', 3)
               ->getQuery();

$results = $query->execute();

echo 'Total hits: '.$results->getTotalHits();
foreach($result as $hit) {
    /* @var $hit \vierbergenlars\Forage\SearchResult\Hit */
    echo ' - '.$hit->getDocument()['title'].' (score: '.$hit->getScore().'; id='.$hit->getId().')';
}

Full documentation is available in the wiki, or have a look at the API documentation, (*5)

The Versions

06/10 2013

dev-master

9999999-dev

PHP client for the forage search server

  Sources   Download

MIT

The Requires

 

The Development Requires

by Lars Vierbergen

05/10 2013

dev-0.1-dev

dev-0.1-dev

PHP client for the forage search server

  Sources   Download

MIT

The Requires

 

The Development Requires

by Lars Vierbergen

05/10 2013

v0.1.0-beta2

0.1.0.0-beta2

PHP client for the forage search server

  Sources   Download

MIT

The Requires

 

The Development Requires

by Lars Vierbergen

05/10 2013

v0.2.0-alpha2

0.2.0.0-alpha2

PHP client for the forage search server

  Sources   Download

MIT

The Requires

 

The Development Requires

by Lars Vierbergen

03/10 2013

v0.2.0-alpha1

0.2.0.0-alpha1

PHP client for the forage search server

  Sources   Download

MIT

The Requires

 

The Development Requires

by Lars Vierbergen

27/08 2013

v0.1.0-beta1

0.1.0.0-beta1

PHP client for the forage search server

  Sources   Download

MIT

The Requires

 

The Development Requires

by Lars Vierbergen

11/08 2013

v0.1.0-alpha10

0.1.0.0-alpha10

PHP client for the norch search server

  Sources   Download

MIT

The Requires

 

The Development Requires

by Lars Vierbergen

11/08 2013

v0.1.0-alpha9

0.1.0.0-alpha9

PHP client for the norch search server

  Sources   Download

MIT

The Requires

 

The Development Requires

by Lars Vierbergen

11/08 2013

v0.1.0-alpha8

0.1.0.0-alpha8

PHP client for the norch search server

  Sources   Download

MIT

The Requires

 

The Development Requires

by Lars Vierbergen

10/08 2013

v0.1.0-alpha7

0.1.0.0-alpha7

PHP client for the norch search server

  Sources   Download

MIT

The Requires

 

The Development Requires

by Lars Vierbergen

07/08 2013

v0.1.0-alpha6

0.1.0.0-alpha6

PHP client for the norch search server

  Sources   Download

MIT

The Requires

 

The Development Requires

by Lars Vierbergen

05/08 2013

v0.1.0-alpha5

0.1.0.0-alpha5

PHP client for the norch search server

  Sources   Download

MIT

The Requires

 

The Development Requires

by Lars Vierbergen

04/08 2013

v0.1.0-alpha4

0.1.0.0-alpha4

PHP client for the norch search server

  Sources   Download

MIT

The Requires

 

The Development Requires

by Lars Vierbergen

04/08 2013

dev-socket-transport

dev-socket-transport

PHP client for the norch search server

  Sources   Download

MIT

The Requires

 

The Development Requires

by Lars Vierbergen

29/07 2013

v0.1.0-alpha3

0.1.0.0-alpha3

PHP client for the norch search server

  Sources   Download

MIT

The Requires

 

The Development Requires

by Lars Vierbergen

28/07 2013

v0.1.0-alpha2

0.1.0.0-alpha2

PHP client for the norch search server

  Sources   Download

MIT

The Requires

  • ext-curl *

 

The Development Requires

by Lars Vierbergen

27/07 2013

v0.1.0-alpha

0.1.0.0-alpha

PHP client for the norch search server

  Sources   Download

MIT

The Requires

  • ext-curl *

 

The Development Requires

by Lars Vierbergen