Skip to content

Commit

Permalink
Merge pull request #34 from rabauss/feature/nickdnk-graph-sdk
Browse files Browse the repository at this point in the history
Use nickdnk/graph-sdk
  • Loading branch information
m-vo authored Nov 1, 2021
2 parents 13e759f + 34e8726 commit 7ceb525
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 21 deletions.
17 changes: 4 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,10 @@ how to migrate from older versions please refer to the [changelog](CHANGELOG.md)

#### PHP 8 ####
Unfortunately, there is no official release of [facebook/graph-sdk](https://packagist.org/packages/facebook/graph-sdk) with support for PHP 8.
At your own risk, you can add an unoffical fork to your `composer.json` in your project root:
```json
"require": {
...
"facebook/graph-sdk": "dev-php8 as 5.7-dev"
},
...
"repositories": [
{
"type": "vcs",
"url": "https://github.com/brainexe/php-graph-sdk.git"
}
]
You can, however, require the third-party fork [nickdnk/graph-sdk](https://packagist.org/packages/nickdnk/graph-sdk) in your application, which added support for PHP 8 and acts as a drop-in-replacement. You might want to do this *before* installing this bundle, so that the installation won't fail.

```console
$ composer require nickdnk/graph-sdk
```

Setup
Expand Down
10 changes: 2 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
},
"require-dev": {
"contao/manager-plugin": "^2.0",
"facebook/graph-sdk": "dev-php8 as 5.7-dev",
"friendsofphp/php-cs-fixer": "^2.15",
"nickdnk/graph-sdk": "^6.0",
"phpstan/extension-installer": "^1.0.1",
"phpstan/phpstan": "^0.12",
"phpstan/phpstan-doctrine": "^0.12",
Expand All @@ -59,11 +59,5 @@
},
"config": {
"sort-packages": true
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/brainexe/php-graph-sdk.git"
}
]
}
}

0 comments on commit 7ceb525

Please sign in to comment.