I want to do few things with SharePoint Online 365 and php.

I have a php form with three textbox and when click on submit button by entering data, it should save to custom list which exists in office online 365 SharePoint site.

is it possible to do like this with office Online 365 SharePoint and php compatibility.

With asp.net we can add dll of microsoft.client.runtime, do this dll supports in php also.

Please have a look over this link: Is this helpful?


Any help would be appreciated.

1 Answer 1


phpSPO - the PHP Library that allows to perform CRUD operations on SharePoint list data, using an REST/OData based API for SharePoint Online.

The current version supports SharePoint Online using claims based authentication.


How to perform authentication in SharePoint Online (SPO):

try {
    $client = new SPOClient($url);
    echo 'You have authenticated successfully\n';
catch (Exception $e) {
    echo 'Connection failed: ',  $e->getMessage(), "\n";

How to create SharePoint list item (task):

require_once 'SPOClient.php';

$username = '[email protected]';
$password = 'password';
$url = "https://tenant.sharepoint.com/";


function createTask($url,$username,$password){
    $client = new SPOClient($url);
    $listTitle = 'Tasks';
    $list = $client->getList($listTitle);
    $itemProperties = array('Title' => 'Order Approval', 'Body' => 'Order approval task');
    $item = $list->addItem($itemProperties);

You could find more details by follow this post

Disclaimer: I'm the author of the library

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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