Skip to content

Commit

Permalink
Merge pull request #676 from microsoftgraph/fix/update-installation-s…
Browse files Browse the repository at this point in the history
…teps

Add minimum-stability constraint to installation snippets
  • Loading branch information
Ndiritu authored Oct 29, 2021
2 parents 2fb0bdb + 06b0fcc commit 9b05ec8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,21 @@
[![Latest Stable Version](https://poser.pugx.org/microsoft/microsoft-graph/version)](https://packagist.org/packages/microsoft/microsoft-graph)

## Install the SDK
You can install the PHP SDK with Composer, either run `composer require microsoft/microsoft-graph`, or edit your `composer.json` file:
You can install the PHP SDK with Composer by editing your `composer.json` file:
```
{
"minimum-stability": "RC",
"require": {
"microsoft/microsoft-graph": "^2.0.0-RC1"
"microsoft/microsoft-graph": "^2.0.0-RC1",
}
}
```
OR
```
{
"require": {
"microsoft/microsoft-graph": "^2.0.0-RC1",
"microsoft/microsoft-graph-core": "@RC"
}
}
```
Expand Down
10 changes: 9 additions & 1 deletion UPGRADING.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,17 @@ The following breaking changes were introduced in v2.0.0 with more detailed upgr
In v1.x, we support models that match the [Microsoft Graph Beta API metadata](https://graph.microsoft.com/beta/$metadata).

Version 2 removes our Beta models from the current package to allow us to adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) by preventing us
from merging breaking Beta model updates weekly. Users of the Beta models can now use the Beta SDK via `composer require microsoft/microsoft-graph-beta` or requiring it in your `composer.json`:
from merging breaking Beta model updates weekly. Users of the Beta models can now use the Beta SDK by requiring it in your `composer.json`:
```php
"require": {
"microsoft/microsoft-graph-beta": "^2.0.0-RC1",
"microsoft/microsoft-graph-core": "@RC"
}
```
OR
```php
"minimum-stability": "RC"
"require": {
"microsoft/microsoft-graph-beta": "^2.0.0-RC1"
}
```
Expand Down

0 comments on commit 9b05ec8

Please sign in to comment.