Skip to content

lengieng/wikipedia-viewer-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wikipedia Viewer Using PHP

Description

This example shows how to get the Wikipedia content via the MediaWiki action API using PHP. The output data in JSONP format contains several information such as page id, page title and extract which are parsed and used to form a list which user can click to open the corresponding Wikipedia page. It also makes use of Special:Random to randomly bring user to a random page.

Similar idea but using jQuery can be found at https://github.com/lengieng/wikipedia-viewer-jquery

Prerequisite

This example requires the following libraries:

  1. jQuery
  2. Bootstrap 3.3.6 css and js
  3. PHP >= 5.6.*

License & Authors

Author: Lengieng Ing ([email protected])

This software is distributed under the MIT license. Please see the attached file called LICENSE.txt.

About

Wikipedia viewer using Bootstrap, jQuery and PHP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published