0

This question already has an answer here:

I'm struck with PHP SharePoint integration. Is there any simple PHP method to read list from SharePoint?

marked as duplicate by Benny Skogberg Jan 13 '17 at 7:29

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

0

Try this api: https://github.com/thybag/PHP-SharePoint-Lists-API

I have tried and it works perfectly. you can also find how to's of the api on same link.

<?php
include "Thybag\SharePointAPI.php";
include "Thybag\Auth\SharePointOnlineAuth.php";
include "Thybag\Auth\SoapClientAuth.php";
include "Thybag\Auth\StreamWrapperHttpAuth.php";
include "Thybag\Service\ListService.php";
include "Thybag\Service\QueryObjectService.php";
use Thybag\SharePointAPI;
$sp = new SharePointAPI('<user@domain.onmicrosoft.com>','<password>','<path_to_WSDL>,'SPONLINE'); //SPONLINE if your point is online else add true instead
$data = $sp->read('Documents');
var_dump($data);

This will return you the array of all lists stored on sharepoint. Then based on your need you can get the file name by calling array from the above array list.

Not the answer you're looking for? Browse other questions tagged or ask your own question.