Skip to content

Petoss 518 find package vulnerabilities and update dependent packages for php #376

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8 changes: 8 additions & 0 deletions .github/workflows/build-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ jobs:
run: composer install
working-directory: xero-php-oauth2

- name: Check for Vulnerabilities
run: composer audit
working-directory: xero-php-oauth2

- name: Check for Outdated Packages
run: composer outdated
working-directory: xero-php-oauth2

- name: Validate PHP Syntax
run: find . -path ./vendor -prune -o -name "*.php" -exec php -l {} \; > /dev/null || exit 1
working-directory: xero-php-oauth2
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Sample apps can get you started quickly with simple auth flows and advanced usag
# Installation
To install this SDK in your project we recommend using [Composer](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-macos) (For OSX we recommend using [Homebrew](https://formulae.brew.sh/formula/composer)).

All third party libraries dependencies managed with Composer and the SDK requires `PHP 5.6` and later.
All third party libraries dependencies managed with Composer and the SDK requires `PHP 8.1` and later.

To install the bindings via [Composer](http://getcomposer.org/), and add the xero-php-oauth2 sdk to your `composer.json` and navigate to where your composer.json file is and run the command:
```
Expand Down
7 changes: 3 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}
],
"require": {
"php": ">=5.6",
"php": ">=8.1",
"ext-curl": "*",
"ext-json": "*",
"ext-mbstring": "*",
Expand All @@ -27,9 +27,8 @@
"firebase/php-jwt": "^6.0"
},
"require-dev": {
"phpunit/phpunit": "^4.8",
"squizlabs/php_codesniffer": "~2.6",
"friendsofphp/php-cs-fixer": "~2.12"
"squizlabs/php_codesniffer": "^3.10",
"friendsofphp/php-cs-fixer": "^3.60"
},
"autoload": {
"psr-4": { "XeroAPI\\XeroPHP\\" : "lib/" }
Expand Down
Loading
Loading