Version 3.0.3
Changelog
- support for document sets in SharePoint API
- fix addering issue with web resource
Example: create a Document Set
$credentials = new ClientCredential($clientId, $clientSecret);
$client = (new ClientContext($siteUrl))->withCredentials($credentials);
$docSetName = "Orders";
$lib = $client->getWeb()->defaultDocumentLibrary();
$docSet = DocumentSet::create($client, $lib->getRootFolder(), $docSetName)->executeQuery();
print($docSet->getProperty("ServerRelativeUrl"));