Skip to content

Releases: microsoftgraph/msgraph-sdk-php

2.0.0 Release Candidate 16

21 Jun 08:06
d039c4f
Compare
Choose a tag to compare
Pre-release

What's Changed

Full Changelog: 2.0.0-RC15...2.0.0-RC16

2.0.0 Release Candidate 15

14 Jun 09:32
30880ac
Compare
Choose a tag to compare
Pre-release

What's Changed

  • Simplified GraphServiceClient instantiation experience
// Default client using the global endpoint (https://graph.microsoft.com) and default scopes
$graphServiceClient = new GraphServiceClient($tokenRequestContext);

// With custom scopes and custom National Cloud endpoint
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes, NationalCloud::CHINA);

// With a custom request adapter
$graphServiceClient = GraphServiceClient::createWithRequestAdapter($requestAdapter);
  • Updated models and fluent request builders.

Full Changelog: 2.0.0-RC14...2.0.0-RC15

June 2023 Update (1.99.0)

13 Jun 16:06
8f12e70
Compare
Choose a tag to compare

What's Changed

Full Changelog: 1.98.0...1.99.0

2.0.0 Release Candidate 14

22 May 16:08
e720cdb
Compare
Choose a tag to compare
Pre-release

Breaking Changes

  • Fluent request builder pattern has changed where you'll need to access the resource first then filter it e.g.
// previously
$message = $graphServiceClient->usersById('userId')->messagesById('messageId')->get()->wait();
// now
$message = $graphServiceClient->users()->byUserId('userId')->messages()->byMessageId('messageId')->get()->wait();
  • Passing custom response handlers is now done via a ResponseHandlerOption
  • BatchRequestBuilder has now changed namespaces from Microsoft\Graph\Core\Requests\BatchRequestBuilder to Microsoft\Graph\Beta\BatchRequestBuilder to allow deserialization of errors during batch requests. See how to make batch requests using the SDK.
  • The ApiException thrown during failed requests no longer contains the raw HTTP/PSR response. Only the response status code and headers are available.

New Features

  • Includes a LargeFileUpload task which automatically uploads files larger than 3MB in chunks using an upload session.
  • Introduces a GraphPhpLeagueAuthenticationProvider which by default requests https://graph.microsoft.com/.default scopes. This decouples the Kiota PhpLeagueAuthenticationProvider from Graph-specific defaults.
  • Code samples for the PageIterator task which enables you to page through a collection while applying a callback that is executed against each item in the collection.
  • Supports Continuous Access Evaluation. See samples

Bug Fixes

  • PATCH requests for /content endpoints now return the expected object. Previously the request succeeded but response body would not be deserialized.
  • Various serialization and deserialization issues with the BatchRequest task have been fixed.

May 2023 Update (1.98.0)

17 May 15:04
15cec55
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 1.97.0...1.98.0

May 2023 Update (1.97.0)

10 May 12:49
54e5694
Compare
Choose a tag to compare

What's Changed

Full Changelog: 1.96.0...1.97.0

May 2023 Update (1.96.0)

03 May 12:27
3903fc5
Compare
Choose a tag to compare

What's Changed

Full Changelog: 1.95.0...1.96.0

April 2023 Update (1.95.0)

25 Apr 13:58
c734318
Compare
Choose a tag to compare

What's Changed

Full Changelog: 1.94.0...1.95.0

April 2023 Update (1.94.0)

11 Apr 13:25
c0a4124
Compare
Choose a tag to compare

What's Changed

Full Changelog: 1.93.0...1.94.0

April 2023 Update (1.93.0)

04 Apr 13:17
61b408f
Compare
Choose a tag to compare

What's Changed

Full Changelog: 1.92.0...1.93.0