You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Getting started with the Microsoft Graph SDK for PHP
1
+
# Get started with the Microsoft Graph SDK for PHP
2
2
3
-
*This SDK is currently in preview, please continue to provide [feedback](https://github.com/microsoftgraph/msgraph-sdk-php/issues/new) as we iterate towards a productionsupported library.*
3
+
*This SDK is currently in preview. Please continue to provide [feedback](https://github.com/microsoftgraph/msgraph-sdk-php/issues/new) as we iterate towards a production-supported library.*
Register a new application that authenticates using the v2.0 authentication endpoint. This endpoint autthenticates both personal (Microsoft) and work or school (Azure Active Directory) accounts.
25
+
Register a new application that authenticates using the v2.0 authentication endpoint. This endpoint authenticates both personal (Microsoft) and work or school (Azure Active Directory) accounts.
26
26
*[Microsoft Azure Active Directory](https://manage.windowsazure.com): Register
27
27
a new application in your tenant's Active Directory to support work or school
28
28
users for your tenant, or multiple tenants.
29
29
30
30
### Authenticate with the Microsoft Graph service
31
31
32
32
The Microsoft Graph SDK for PHP does not include any default authentication implementations.
33
-
Instead, the user will want to authenticate with the library of their choice, or against the OAuth
33
+
Instead, you can authenticate with the library of your choice, or against the OAuth
34
34
endpoint directly.
35
35
36
-
See the [PHP Connect Sample](https://github.com/microsoftgraph/php-rest-connect-sample.php) for connecting with OAuth2.
36
+
To connect with Oauth2, see the [PHP Connect Sample](https://github.com/microsoftgraph/php-rest-connect-sample.php).
37
37
38
-
### Usage example
38
+
### Call Microsoft Graph
39
+
40
+
The following is an example that shows how to call Microsoft Graph.
39
41
40
42
```php
41
43
use Microsoft\Graph\Graph;
@@ -56,11 +58,11 @@ class UsageExample
56
58
}
57
59
```
58
60
59
-
## Development
61
+
## Develop
60
62
61
-
### Running Tests
63
+
### Run Tests
62
64
63
-
Run ```vendor/bin/phpunit``` from the base directory
65
+
Run ```vendor/bin/phpunit``` from the base directory.
64
66
65
67
66
68
## Documentation and resources
@@ -71,12 +73,12 @@ Run ```vendor/bin/phpunit``` from the base directory
0 commit comments