PHP library to easily use the MediaWiki API (and Wikibase - Wikidata)
See the example scripts on how to use the library.
- PHP 5 - http://php.net/downloads.php
- cURL support (PHP extension) - http://php.net/manual/book.curl.php
Option A - cloning Git repository:
- run a terminal
- navigate to the directory where phpapibot should be installed to
- clone the Git repository:
- $ git clone https://github.com/masterssystems/phpapibot.git
- find everything in a subdirectory phpapibot/
Option B - downloading ZIP file:
- download https://github.com/masterssystems/phpapibot/archive/master.zip
- unzip anywhere you like
Option A - cloned Git repository:
- run a terminal
- navigate to the directory where phpapibot has been installed to
- $ git pull
Option B - ZIP download
- re-download https://github.com/masterssystems/phpapibot/archive/master.zip
- unpack and overwrite old version
- run a terminal
- navigate to the directory where the script is located
- run the script:
- $ php filename.php parameters