etoilefilante/wikipediaravel

Laravel Wikipedia API driver

1.1 2020-03-12 10:08 UTC

This package is not auto-updated.

Last update: 2024-06-14 06:23:44 UTC


README

A simple Wikipedia API Driver

Build Status Coverage Status

Installation

composer require etoilefilante/wikipediaravel

Configuration

You can configure the type of data sent back by wikipedia. By default, we'll send you json. If you change your mind, just edit your configuration in your .env

WIKIPEDIARAVEL_FORMAT =

Possible values are : jsonn, jsonfm (pretty-print in HTML), php, phpfm, rawfm, xml, xmlfm.

As for language, default is french. To switch to english, add WIKIPEDIARAVEL_LANG = en in your .env file.

Use

Available functions

getPage($pageName)
getSubCategories($category, $depth = 1)