Download the PHP package appopcen/php-spo without Composer
On this page you can find all versions of the php package appopcen/php-spo. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package php-spo
### About The library provides a Office 365 REST client for PHP applications. It allows to performs CRUD operations against Office 365 resources via an REST/OData based API.
The list of supported Office 365 REST APIs:
- SharePoint REST API (supported versions: SharePoint 2013, SharePoint 2016, SharePoint Online and OneDrive for Business)
- Outlook REST API
- Outlook Contacts REST API
- Outlook Calendar REST API
- Outlook Mail REST API
- OneNote REST 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 is installed, execute the following command in your project root to install this library:
Finally, be sure to include the autoloader:
PHP version
API
- PHP:cURL underlying library is used to perform HTTP requests
ClientContext
- represents a SharePoint client context to performs CRUD operations against SharePoint resources via SharePoint Online REST APIOutlookClient
- represents a client context to performs CRUD operations against Office resources such as Outlook resourcesClientRequest
- represents a client request (more low level compared toClientContext
) to to performs CRUD operations against SharePoint resources via SharePoint Online REST APIAuthenticationContext
- represents an object that provides credentials to access SharePoint Online resources.NetworkCredentialContext
- provides credentials for password-based authentication schemes such as Basic.
There are two approaches available to perform REST based queries:
- via
ClientRequest
class where you need to construct REST queries by specifying endpoint url, headers if required and payload (low level approach), see renameFolder.php for a more details - via
ClientContext
class where you target client object resources such as Web, ListItem and etc., see list_examples.php for a more details
Usage
Using SharePoint REST API
The following examples demonstrates how to perform basic CRUD operations against SharePoint list item resources.
Example 1. How to read SharePoint list items
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:
Using Outlook REST API
The following examples demonstrates how to read, create and send messages via Outlook Mail API.
Example 1. How to create a draft message
Example 2. How to get messages
Example 3. How to send a message
Changelog
1.0.0 - May 23st, 2014
- Initial release.
2.0.0 - February 14, 2016
AuthenticationContext
andClientContext
classes have been introduced.
All versions of php-spo with dependencies
ext-curl Version *