Skip to content

Commit

Permalink
updated formatting, changelog and added sites resource
Browse files Browse the repository at this point in the history
  • Loading branch information
dcblogdev committed Nov 4, 2023
1 parent d35d1d2 commit c67c766
Show file tree
Hide file tree
Showing 30 changed files with 433 additions and 512 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
max-parallel: 2
matrix:
php-versions: ['8.2']
php-versions: ['8.1', '8.2', '8.3']

name: PHP ${{ matrix.php-versions }}

Expand All @@ -29,5 +29,8 @@ jobs:
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest

- name: Run Pint
run: ./vendor/bin/pint --test

- name: Run test suite
run: ./vendor/bin/pest
run: ./vendor/bin/pest --parallel
168 changes: 0 additions & 168 deletions .php-cs-fixer.dist.php

This file was deleted.

14 changes: 13 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -402,4 +402,16 @@ Where $behavior is either rename or replace

### Removed

- Removed package level migrations, using src migrations instead
- Removed package level migrations, using src migrations instead

## Next

## Added

- Added sites resource for MsGraph
- Added Pint with Laravel preset for formatting
- Added composer scripts for formatting and testing

## Changed
- Fixed an issue in MsGraph connect having an infinite loop when an error is returned from Microsoft
- Dropped support for using csfixer
130 changes: 68 additions & 62 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,65 +1,71 @@
{
"name": "dcblogdev/laravel-microsoft-graph",
"description": "A Laravel Microsoft Graph API (Office365) package",
"license": "MIT",
"authors": [
{
"name": "David Carr",
"email": "[email protected]",
"homepage": "https://dcblog.dev"
}
],
"homepage": "https://github.com/dcblogdev/laravel-microsoft-graph",
"keywords": [
"Laravel",
"MsGraph",
"Graph",
"Microsoft Graph",
"Office365",
"Microsoft365"
],
"require": {
"illuminate/support": "5.5.x|5.6.x|5.7.x|5.8.x|6.x|7.x|8.x|9.x|^10.0",
"league/oauth2-client": "^1.4|^2",
"guzzlehttp/guzzle": "6.x|7.x",
"ext-json": "*",
"ext-fileinfo": "*",
"ext-curl": "*",
"shitware-ltd/flysystem-msgraph": "^1.0",
"microsoft/microsoft-graph": "^1.70"
},
"require-dev": {
"orchestra/testbench": "^7.0|^8.0",
"pestphp/pest": "^1.21",
"pestphp/pest-plugin-laravel": "^1.1",
"friendsofphp/php-cs-fixer": "^3.9",
"pestphp/pest-plugin-mock": "^1.0"
},
"autoload": {
"psr-4": {
"Dcblogdev\\MsGraph\\": "src/",
"Dcblogdev\\MsGraph\\Tests\\": "tests"
}
},
"autoload-dev": {
"classmap": [
"tests/TestCase.php"
]
},
"extra": {
"laravel": {
"providers": [
"Dcblogdev\\MsGraph\\MsGraphServiceProvider"
],
"aliases": {
"MsGraph": "Dcblogdev\\MsGraph\\Facades\\MsGraph",
"MsGraphAdmin": "Dcblogdev\\MsGraph\\Facades\\MsGraphAdmin"
}
}
},
"config": {
"allow-plugins": {
"pestphp/pest-plugin": true
}
"name": "dcblogdev/laravel-microsoft-graph",
"description": "A Laravel Microsoft Graph API (Office365) package",
"license": "MIT",
"authors": [
{
"name": "David Carr",
"email": "[email protected]",
"homepage": "https://dcblog.dev"
}
],
"homepage": "https://github.com/dcblogdev/laravel-microsoft-graph",
"keywords": [
"Laravel",
"MsGraph",
"Graph",
"Microsoft Graph",
"Office365",
"Microsoft365"
],
"require": {
"illuminate/support": "5.5.x|5.6.x|5.7.x|5.8.x|6.x|7.x|8.x|9.x|^10.0",
"league/oauth2-client": "^1.4|^2",
"guzzlehttp/guzzle": "6.x|7.x",
"ext-json": "*",
"ext-fileinfo": "*",
"ext-curl": "*",
"shitware-ltd/flysystem-msgraph": "^1.0",
"microsoft/microsoft-graph": "^1.70"
},
"require-dev": {
"orchestra/testbench": "^7.0|^8.0",
"pestphp/pest": "^1.21",
"pestphp/pest-plugin-laravel": "^1.1",
"friendsofphp/php-cs-fixer": "^3.9",
"pestphp/pest-plugin-mock": "^1.0",
"laravel/pint": "^1.13",
"pestphp/pest-plugin-parallel": "^1.2"
},
"autoload": {
"psr-4": {
"Dcblogdev\\MsGraph\\": "src/",
"Dcblogdev\\MsGraph\\Tests\\": "tests"
}
},
"autoload-dev": {
"classmap": [
"tests/TestCase.php"
]
},
"extra": {
"laravel": {
"providers": [
"Dcblogdev\\MsGraph\\MsGraphServiceProvider"
],
"aliases": {
"MsGraph": "Dcblogdev\\MsGraph\\Facades\\MsGraph",
"MsGraphAdmin": "Dcblogdev\\MsGraph\\Facades\\MsGraphAdmin"
}
}
},
"config": {
"allow-plugins": {
"pestphp/pest-plugin": true
}
},
"scripts": {
"test": "vendor/bin/pest --parallel",
"pint": "vendor/bin/pint"
}
}
2 changes: 1 addition & 1 deletion config/msgraph.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* set the url to be redirected to once the token has been saved
*/

'msgraphLandingUri' => env('MSGRAPH_LANDING_URL'),
'msgraphLandingUri' => env('MSGRAPH_LANDING_URL'),

/*
set the tenant authorize url
Expand Down
Loading

0 comments on commit c67c766

Please sign in to comment.