We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
是的,API 有一大堆 PHP 包装器:
http://www.mediawiki .org/wiki/API:Client_code#PHP
Yes, there are a whole bunch of PHP wrappers for the API:
http://www.mediawiki.org/wiki/API:Client_code#PHP
维基百科有一个非常全面的 API,之前在 stackoverflow 上已经介绍过了:如何使用维基百科 api(如果存在)?
至于专门用于利用 CodeIgniter API 的类/库的问题,据我所知没有。
然而话虽如此,任何类型的库都很少需要利用 API,因为您可以使用内置函数,例如
http_build_url
发出 API 请求,并且请求可以以您想要的任何格式返回:There is an extremely comprehensive API for Wikipedia, and it has been covered before on stackoverflow: How to use wikipedia api if it exists?
As for the question about a class/library specifically to leverage the API for CodeIgniter, there is none to my knowledge.
However with that said there is very little need for any sort of libraries to leverage the API as you can use built in functions such as
http_build_url
to make API requests and the request can be returned in any format you desire: