2017 © Pedro Peláez
 

library yii2-wikipedia

Yii component to connect with Wikipedia

image

thewulf7/yii2-wikipedia

Yii component to connect with Wikipedia

  • Saturday, March 12, 2016
  • by thewulf7
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Yii-Wikipedia

Installation

Begin by installing this package through Composer., (*1)

{
    "require": {
        "thewulf7/wikipedia": "dev-master"
    }
}
    'components' => [
        ...
        'wikipedia' => [
            'class' => 'thewulf7\Wikipedia\Connection'
        ]
        ...
    ]

Usage

Retrieve page extract, (*2)

$wiki = \Yii::$app->get('wikipedia');

return $wiki->createCommand()->search('Rome')->getSentences(5);

Same with QueryBuilder, (*3)

$query = new \thewulf7\Wikipedia\Query();

$query
    ->titles('Rome');

return $query
    ->createCommand()
    ->getSentences(5);

The Versions

12/03 2016

dev-master

9999999-dev

Yii component to connect with Wikipedia

  Sources   Download

The Requires

 

The Development Requires

by Johnny Utkin

12/03 2016

v1.0

1.0.0.0

Yii component to connect with Wikipedia

  Sources   Download

The Requires

 

The Development Requires

by Johnny Utkin