mediawiki-api

时间:2021-04-09 01:34:22
【文件属性】:
文件名称:mediawiki-api
文件大小:18KB
文件格式:ZIP
更新时间:2021-04-09 01:34:22
PHP MediaWiki API 一个基本PHP MediaWiki API,用于获取页面和文件 获取页面内容或URL: $ api = new Api ( 'https://de.wikipedia.org' ); $ page = $ api -> getPage ( 'Geschichte der Kölner Straßenbahn' ); $ content = $ page -> getContent (); $ url = $ page -> getUrl (); 获取图片用户和页面网址: $ api = new Api ( 'https://de.wikipedia.org' ); $ image = $ api -> getImage ( 'File:KVB4076_Severinsbruecke.jpg' ); $ pageUrl = $ image -> getPa
【文件预览】:
mediawiki-api-master
----src()
--------Query()
--------QueryBase.php(2KB)
--------Exception()
--------Api.php(881B)
----LICENSE(34KB)
----README.md(754B)
----composer.json(554B)

网友评论