Skip to content

Commit

Permalink
feat: upgrade dependencies to latest versions
Browse files Browse the repository at this point in the history
  • Loading branch information
LoicBoursin committed Nov 13, 2022
1 parent 658d905 commit e2bace8
Show file tree
Hide file tree
Showing 12 changed files with 3,456 additions and 956 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.idea
vendor
vendor
.php-cs-fixer.cache
.phpunit.result.cache
15 changes: 15 additions & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude('vendor')
;

$config = new PhpCsFixer\Config();

return $config->setRules([
'@PhpCsFixer' => true,
'php_unit_test_class_requires_covers' => false,
])
->setFinder($finder)
;
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,26 @@
# Changelog
All Notable changes to `oauth2-microsoft-graph` will be documented in this file

## 1.0.0 - 2022-11-13

### Added
- PHP-CS-Fixer linter
- PHPStan linter
- Support for PHP 8.1

### Deprecated
- Nothing

### Fixed
- Nothing

### Removed
- Support for PHP < 8.0
- Usage of Mockery in tests

### Security
- Nothing

## 0.1.0 - 2021-05-27

### Added
Expand Down
23 changes: 23 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
$SHELL := /bin/bash

EXEC_PHP = php

# Executables
PHPSTAN = ./vendor/bin/phpstan
PHP_CS_FIXER = ./vendor/bin/php-cs-fixer
PHPUNIT = ./vendor/bin/phpunit

lint-php: ## Lint files with php-cs-fixer
$(PHP_CS_FIXER) fix --dry-run --allow-risky=yes -v
.PHONY: lint-php

fix-php: ## Fix
$(PHP_CS_FIXER) fix --allow-risky=yes
.PHONY: fix-php

stan: # Run PHPStan
$(PHPSTAN) analyse -c phpstan.neon --memory-limit 1G
.PHONY: stan

test: ## Run tests
$(PHPUNIT) --coverage-text
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

This package provides Microsoft Graph OAuth 2.0 support for the PHP League's [OAuth 2.0 Client](https://github.com/thephpleague/oauth2-client).

## Requirements

The following versions of PHP are compatible:
- PHP 8.1
- PHP 8.0

## Installation

To install, use composer:
Expand Down Expand Up @@ -30,7 +36,7 @@ At the time of authoring this documentation, the following scopes are available
## Testing

``` bash
$ ./vendor/bin/phpunit
$ make test
```


Expand Down
9 changes: 5 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@
"graph"
],
"require": {
"league/oauth2-client": "^2.0"
"league/oauth2-client": "^2.6",
"php": ">=8.0"
},
"require-dev": {
"phpunit/phpunit": "~4.0",
"mockery/mockery": "1.3.*",
"squizlabs/php_codesniffer": "~2.0"
"phpunit/phpunit": "^9.5",
"friendsofphp/php-cs-fixer": "^3.13",
"phpstan/phpstan": "^1.9"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit e2bace8

Please sign in to comment.