2017 © Pedro Peláez
 

cakephp-plugin cakephp-diffbot-datasource

CakePHP DiffbotSource Plugin with DataSource

image

skalmi/cakephp-diffbot-datasource

CakePHP DiffbotSource Plugin with DataSource

  • Thursday, December 11, 2014
  • by skalmi
  • Repository
  • 3 Watchers
  • 1 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 11 Versions
  • 0 % Grown

The README.md

DiffbotSource Plugin

Build Status Coverage Status Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

CakePHP DiffbotSource is DataSource Plugin for Diffbot, (*2)

Installation

Step 1: Clone or download HttpSource

Step 2: Clone or download to Plugin/DiffbotSource

cd my_cake_app/app git://github.com/skalmi/CakePHP-DiffbotSource-Datasource.git Plugin/DiffbotSource, (*3)

or if you use git add as submodule:, (*4)

cd my_cake_app
git submodule add "git://github.com/skalmi/CakePHP-DiffbotSource-Datasource.git" "app/Plugin/DiffbotSource"

then update submodules:, (*5)

git submodule init
git submodule update

Step 3: Add your configuration to database.php and set it to the model

:: database.php ::

```php public $diffbot = array( 'datasource' => 'DiffbotSource.Http/DiffbotSource', 'host' => 'example.com', 'port' => 'some port' ); public $diffbotTest = array( 'datasource' => 'DiffbotSource.Http/DiffbotSource', 'host' => 'api.diffbot.com', 'prefix' => '', 'port' => 80, 'timeout' => 5 );, (*6)

Then make model

:: Diffbot.php ::, (*7)

```php
public $useDbConfig = 'diffbot';
public $useTable = '<desired endpoint, for ex: "article">';

Step 4: Load plugin

:: bootstrap.php ::

```php CakePlugin::load('HttpSource', array('bootstrap' => true, 'routes' => true)); CakePlugin::load('DiffbotSource', array('bootstrap' => false, 'routes' => false));, (*8)

#Tests

To run tests add and fill $diffbotTest in `database.php`

#Usage

You can use elasticsearch almost as db tables:
```php
$this->Diffbot->setSource('article');
    $params = array(
        'conditions' => array(
            'query' => array(
                "term" => array("title" => "apple")
            )
        ),
        'fields' => array('title', 'rank'),
        'order' => array('rank' => 'desc'),
        'offset' => 2
    );

$result = $this->Diffbot->find('first', $params);

Documentation

Please read HttpSource Plugin README, (*9)

The Versions

11/12 2014

dev-master

9999999-dev https://github.com/skalmi/CakePHP-DiffbotSource-Datasource

CakePHP DiffbotSource Plugin with DataSource

  Sources   Download

MIT

The Requires

 

by Aleksandr Skuridin

plugin database cakephp datasource diffbot

11/12 2014

0.0.11

0.0.11.0 https://github.com/skalmi/CakePHP-DiffbotSource-Datasource

CakePHP DiffbotSource Plugin with DataSource

  Sources   Download

MIT

The Requires

 

by Aleksandr Skuridin

plugin database cakephp datasource diffbot

09/12 2014

0.0.10

0.0.10.0 https://github.com/skalmi/CakePHP-DiffbotSource-Datasource

CakePHP DiffbotSource Plugin with DataSource

  Sources   Download

MIT

The Requires

 

by Aleksandr Skuridin

plugin database cakephp datasource diffbot

20/11 2014

0.0.9

0.0.9.0 https://github.com/skalmi/CakePHP-DiffbotSource-Datasource

CakePHP DiffbotSource Plugin with DataSource

  Sources   Download

MIT

The Requires

 

by Aleksandr Skuridin

plugin database cakephp datasource diffbot

20/11 2014

0.0.8

0.0.8.0 https://github.com/skalmi/CakePHP-DiffbotSource-Datasource

CakePHP DiffbotSource Plugin with DataSource

  Sources   Download

MIT

The Requires

 

by Aleksandr Skuridin

plugin database cakephp datasource diffbot

14/11 2014

0.0.7

0.0.7.0 https://github.com/skalmi/CakePHP-DiffbotSource-Datasource

CakePHP DiffbotSource Plugin with DataSource

  Sources   Download

MIT

The Requires

 

by Aleksandr Skuridin

plugin database cakephp datasource diffbot

13/11 2014

0.0.6

0.0.6.0 https://github.com/skalmi/CakePHP-DiffbotSource-Datasource

CakePHP DiffbotSource Plugin with DataSource

  Sources   Download

MIT

The Requires

 

by Aleksandr Skuridin

plugin database cakephp datasource diffbot

13/11 2014

0.0.5

0.0.5.0 https://github.com/skalmi/CakePHP-DiffbotSource-Datasource

CakePHP DiffbotSource Plugin with DataSource

  Sources   Download

MIT

The Requires

 

by Aleksandr Skuridin

plugin database cakephp datasource diffbot

13/11 2014

0.0.4

0.0.4.0 https://github.com/skalmi/CakePHP-DiffbotSource-Datasource

CakePHP DiffbotSource Plugin with DataSource

  Sources   Download

MIT

The Requires

 

by Aleksandr Skuridin

plugin database cakephp datasource diffbot

12/11 2014

0.0.3

0.0.3.0 https://github.com/skalmi/CakePHP-DiffbotSource-Datasource

CakePHP DiffbotSource Plugin with DataSource

  Sources   Download

MIT

The Requires

 

by Aleksandr Skuridin

plugin database cakephp datasource diffbot

12/11 2014

0.0.2

0.0.2.0 https://github.com/skalmi/CakePHP-DiffbotSource-Datasource

CakePHP DiffbotSource Plugin with DataSource

  Sources   Download

MIT

The Requires

 

by Aleksandr Skuridin

plugin database cakephp datasource diffbot