Download the PHP package vgrem/php-spo without Composer
On this page you can find all versions of the php package vgrem/php-spo. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vgrem/php-spo
More information about vgrem/php-spo
Files in vgrem/php-spo
Informations about the package php-spo
## About Microsoft 365 Library for PHP. A REST/OData based client library for Microsoft 365.
Usage
- Installation
- Working with SharePoint API
- Working with Teams API
- Working with Outlook API
- Working with OneDrive API
Status
Installation
You can use Composer or simply Download the Release
Composer
The preferred method is via composer. Follow the installation instructions if you do not already have composer installed.
Once composer installed, execute the following command in your project root to install this library:
or via composer.json
file:
Finally, be sure to include the autoloader:
Requirements
PHP version: PHP 7.1 or later
Working with SharePoint API
The list of supported SharePoint versions:
- SharePoint Online and OneDrive for Business
- SharePoint On-Premises (2013-2019)
Authentication
The following auth flows supported:
1. app principal with client credentials:
Documentation:
2. app principal with client certificate:
Documentation:
3. user credentials auth:
4. NTLM auth (for SharePoint On-Premises):
Examples
The following examples demonstrates how to perform basic CRUD operations against SharePoint list item resources:
Example 1. How to read SharePoint list items:
or via fluent API syntax:
Example 2. How to create SharePoint list item:
Example 3. How to delete a SharePoint list item:
Example 4. How to update SharePoint list item:
Working with Teams API
Example: create a Team
The following is an example of a minimal request to create a Team (via delegated permissions)
Working with Outlook API
Supported list of APIs:
The following example demonstrates how to send a message via Outlook Mail API:
Working with OneDrive API
The following example demonstrates how retrieve My drive Url via OneDrive API:
All versions of php-spo with dependencies
ext-curl Version *
ext-json Version *
ext-simplexml Version *
ext-dom Version *
ext-libxml Version *
firebase/php-jwt Version *