Try this API
In SharePoint
Download the WSDL. Usually at this location: <sharepoint.url>/subsite/_vti_bin/Lists.asmx?WSDL
Download the API
Make sure to save both SoapClientAuth.php
and SharePointAPI.php
In PHP
// 0: include api in your php script.
require_once('SharePointAPI.php');
// 1: connect to SharePoint
$sp = new SharePointAPI('<username>', '<password>', '<path_to_WSDL>');
// 2: read a list
$listContents = $sp->read('<list_name>');
// 3: now you have a 2-D array to work with in PHP
foreach($listContents as $item)
{
var_dump($item);
}
With this API, you can also query, update, create, delete lists, query list metadata
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…