Skip to content

Releases: microsoftgraph/msgraph-beta-sdk-php

2.0.0 Release Candidate 16

22 May 14:20
b5526ea

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.

2.0.0 Release Candidate 14

07 Jan 04:02
3634e47

Choose a tag to compare

Pre-release

What's Changed

  • Merge pull request #117 from microsoftgraph/dev by @SilasKenneth in #119
  • Bump graph core version by @Ndiritu in #120
  • Generated changes using the fix on Kiota. by @SilasKenneth in #125
  • Speed up static analysis using BleedingEdge phpstan switch 🚀 by @SilasKenneth in #122
  • Generated beta models & request builders using Kiota by @github-actions in #129
  • Generated beta models & request builders using Kiota by @github-actions in #131
  • 2.0.0-RC14 by @Ndiritu in #133

Full Changelog: 2.0.0-RC13...2.0.0-RC14

2.0.0 Release Candidate 13

30 Nov 10:17
3e31a52

Choose a tag to compare

Pre-release

What's Changed

  • Generated beta models & request builders using Kiota by @github-actions in #113
  • Generated beta models & request builders using Kiota by @github-actions in #116
  • Generated beta models & request builders using Kiota by @github-actions in #118
  • 2.0.0-RC13 by @Ndiritu in #117

Full Changelog: 2.0.0-RC12...2.0.0-RC13

2.0.0 Release Candidate 12

07 Nov 07:43
0be7223

Choose a tag to compare

Pre-release

What's Changed

  • Merge pull request #105 from microsoftgraph/dev by @SilasKenneth in #108
  • Generated beta models & request builders using Kiota by @github-actions in #109
  • 2.0.0-RC12 by @Ndiritu in #110

Full Changelog: 2.0.0-RC11...2.0.0-RC12

2.0.0 Release Candidate 11

26 Oct 08:00
4a872e6

Choose a tag to compare

Pre-release

What's Changed

  • Main by @Ndiritu in #102
  • Generated beta models & request builders using Kiota by @github-actions in #103
  • Generated beta models & request builders using Kiota by @github-actions in #104
  • Generated beta models & request builders using Kiota by @github-actions in #106
  • Generated beta models & request builders using Kiota by @github-actions in #107
  • Release 2.0.0-RC11 by @Ndiritu in #105

Full Changelog: 2.0.0-RC10...2.0.0-RC11

2.0.0 Release Candidate 10

06 Oct 07:12
b3c3bbd

Choose a tag to compare

Pre-release

What's Changed

  • Generated beta models & request builders using Kiota by @github-actions in #100
  • Release 2.0.0-RC10 by @Ndiritu in #101

Full Changelog: 2.0.0-RC9...2.0.0-RC10

2.0.0 Release Candidate 9

28 Sep 12:57
22b2470

Choose a tag to compare

Pre-release

What's Changed

  • PATCH requests now return the deserialized response body.
  • Merge pull request #94 from microsoftgraph/dev by @SilasKenneth in #95
  • Generated beta models & request builders using Kiota by @github-actions in #98
  • 2.0.0-RC9 Release by @Ndiritu in #99

Full Changelog: 2.0.0-RC8...2.0.0-RC9

2.0.0 Release Candidate 8

21 Sep 09:04
54b1bd0

Choose a tag to compare

Pre-release

What's Changed

  • Merge pull request #86 from microsoftgraph/dev by @SilasKenneth in #87
  • Generated beta models & request builders using Kiota by @github-actions in #91
  • Adding Microsoft SECURITY.MD by @microsoft-github-policy-service in #92
  • 2.0.0-RC8 by @Ndiritu in #94

New Contributors

  • @microsoft-github-policy-service made their first contribution in #92

Full Changelog: 2.0.0-RC7...2.0.0-RC8

2.0.0 Release Candidate 7

06 Sep 05:54
0965d19

Choose a tag to compare

Pre-release

What's Changed

  • Updated PHPDoc types for $headers and $options attributes of request configuration objects for clarity:
    @var array<string, string>|null $headers Request headers and @var array<string, RequestOption>|null $options Request options
  • Updated models and fluent API paths

Full Changelog: 2.0.0-RC6...2.0.0-RC7

2.0.0 Release Candidate 6

06 Jul 16:49
4128d59

Choose a tag to compare

Pre-release

This release contains bug fixes and the following improvements:

  • Authentication Provider that handles token fetching and refresh behind the scenes for you:
use Microsoft\Kiota\Authentication\Oauth\AuthorizationCodeContext;
use Microsoft\Kiota\Authentication\PhpLeagueAuthenticationProvider;

$tokenRequestContext = new AuthorizationCodeContext(
    'tenantId',
    'clientId',
    'clientSecret',
    'authCode',
    'redirectUri'
);
$scopes = ['User.Read', 'Mail.Read'];
$authProvider = new PhpLeagueAuthenticationProvider($tokenRequestContext, $scopes);
  • A fluent API design:
$messages = $graphServiceClient->usersById(USER_ID)->messages()->get()->wait();

More details in the Upgrade Guide and README