diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index f5924ef..28d3416 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -2,9 +2,9 @@ name: PHP Composer on: push: - branches: [ master ] + branches: [ main ] pull_request: - branches: [ master ] + branches: [ main ] jobs: run: @@ -12,7 +12,7 @@ jobs: strategy: matrix: operating-system: ['ubuntu-latest'] - php-versions: ['8.3'] + php-versions: ['8.3', '8.4'] phpunit-versions: ['latest'] steps: - name: Checkout diff --git a/README.md b/README.md index b804582..4880a98 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ composer require staffbase/plugins-sdk-php Dependencies are also managed by Composer. When using this repository keep the following dependencies in mind (cf. [composer.json](composer.json)): -* php: ^8.0 +* php: ^8.3 * lcobucci/jwt: ^5.5 ## API Reference @@ -122,6 +122,6 @@ To run the tests a simple `# composer test` command in the root directory will s ## License -Copyright 2017-2022 Staffbase GmbH. +Copyright 2017-2025 Staffbase GmbH. Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 diff --git a/composer.json b/composer.json index 53a7f9d..a355af8 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "staffbase/plugins-sdk-php", - "version": "3.0.0", + "version": "3.0.1", "type": "library", "description": "Staffbase PHP SDK library for plugins.", "keywords": ["staffbase", "plugins", "library", "php", "sdk"], @@ -13,7 +13,7 @@ } ], "require": { - "php": "~8.3.0", + "php": "^8.3 || ^8.4", "lcobucci/jwt": "^5.5", "lcobucci/clock": "^3.3" diff --git a/src/Exceptions/SSOAuthenticationException.php b/src/Exceptions/SSOAuthenticationException.php index 0163366..3496451 100644 --- a/src/Exceptions/SSOAuthenticationException.php +++ b/src/Exceptions/SSOAuthenticationException.php @@ -3,10 +3,8 @@ * SSO Session implementation, based on this doc: * https://developers.staffbase.com/api/plugin-sso/ * - * PHP version 7.4 - * * @category Authentication - * @copyright 2017-2022 Staffbase, GmbH. + * @copyright 2017-2025 Staffbase SE. * @author Vitaliy Ivanov * @license http://www.apache.org/licenses/LICENSE-2.0 * @link https://github.com/staffbase/plugins-sdk-php diff --git a/src/Exceptions/SSOException.php b/src/Exceptions/SSOException.php index 8973711..9bf3a86 100644 --- a/src/Exceptions/SSOException.php +++ b/src/Exceptions/SSOException.php @@ -3,10 +3,8 @@ * SSO Session implementation, based on this doc: * https://developers.staffbase.com/api/plugin-sso/ * - * PHP version 7.4 - * * @category Authentication - * @copyright 2017-2022 Staffbase, GmbH. + * @copyright 2017-2025 Staffbase SE. * @author Vitaliy Ivanov * @license http://www.apache.org/licenses/LICENSE-2.0 * @link https://github.com/staffbase/plugins-sdk-php diff --git a/src/PluginSession.php b/src/PluginSession.php index 7e899ec..4c320cf 100644 --- a/src/PluginSession.php +++ b/src/PluginSession.php @@ -5,10 +5,8 @@ * SSO Session implementation, based on this doc: * https://developers.staffbase.com/api/plugin-sso/ * - * PHP version 7.4 - * * @category Authentication - * @copyright 2017-2022 Staffbase, GmbH. + * @copyright 2017-2025 Staffbase SE. * @author Vitaliy Ivanov * @license http://www.apache.org/licenses/LICENSE-2.0 * @link https://github.com/staffbase/plugins-sdk-php diff --git a/src/RemoteCall/AbstractRemoteCallHandler.php b/src/RemoteCall/AbstractRemoteCallHandler.php index 0cff280..eb406af 100644 --- a/src/RemoteCall/AbstractRemoteCallHandler.php +++ b/src/RemoteCall/AbstractRemoteCallHandler.php @@ -3,10 +3,8 @@ * Abstract remote handler implementation, based on this doc: * https://developers.staffbase.com/api/plugin-sso/ * - * PHP version 7.4 - * * @category Authentication - * @copyright 2017-2022 Staffbase, GmbH. + * @copyright 2017-2025 Staffbase SE. * @author Vitaliy Ivanov * @license http://www.apache.org/licenses/LICENSE-2.0 * @link https://github.com/staffbase/plugins-sdk-php diff --git a/src/RemoteCall/DeleteInstanceCallHandlerInterface.php b/src/RemoteCall/DeleteInstanceCallHandlerInterface.php index 1810cdb..4137581 100644 --- a/src/RemoteCall/DeleteInstanceCallHandlerInterface.php +++ b/src/RemoteCall/DeleteInstanceCallHandlerInterface.php @@ -3,10 +3,8 @@ * Delete remote handler interface, based on this doc: * https://developers.staffbase.com/api/plugin-sso/ * - * PHP version 7.4 - * * @category Authentication - * @copyright 2017-2022 Staffbase, GmbH. + * @copyright 2017-2025 Staffbase SE. * @author Vitaliy Ivanov * @license http://www.apache.org/licenses/LICENSE-2.0 * @link https://github.com/staffbase/plugins-sdk-php diff --git a/src/RemoteCall/RemoteCallInterface.php b/src/RemoteCall/RemoteCallInterface.php index 738343d..79e0068 100644 --- a/src/RemoteCall/RemoteCallInterface.php +++ b/src/RemoteCall/RemoteCallInterface.php @@ -3,10 +3,8 @@ * Remote call interface, based on this doc: * https://developers.staffbase.com/api/plugin-sso/ * - * PHP version 7.4 - * * @category Authentication - * @copyright 2017-2022 Staffbase, GmbH. + * @copyright 2017-2025 Staffbase SE. * @author Vitaliy Ivanov * @license http://www.apache.org/licenses/LICENSE-2.0 * @link https://github.com/staffbase/plugins-sdk-php diff --git a/src/SSOData/ClaimAccessTrait.php b/src/SSOData/ClaimAccessTrait.php index 105e413..b089fd9 100644 --- a/src/SSOData/ClaimAccessTrait.php +++ b/src/SSOData/ClaimAccessTrait.php @@ -4,10 +4,8 @@ /** * Trait to access the claims of a JWT token. * - * PHP version 7.4 - * * @category Token - * @copyright 2017-2022 Staffbase, GmbH. + * @copyright 2017-2025 Staffbase SE. * @author Daniel Grosse * @license http://www.apache.org/licenses/LICENSE-2.0 * @link https://github.com/staffbase/plugins-sdk-php diff --git a/src/SSOData/SSODataClaimsInterface.php b/src/SSOData/SSODataClaimsInterface.php index a580db7..45de373 100644 --- a/src/SSOData/SSODataClaimsInterface.php +++ b/src/SSOData/SSODataClaimsInterface.php @@ -4,10 +4,8 @@ /** * Interface with specific claims of a JWT token as url parameter. * - * PHP version 7.4 - * * @category Token - * @copyright 2017-2022 Staffbase, GmbH. + * @copyright 2017-2025 Staffbase SE. * @author Daniel Grosse * @license http://www.apache.org/licenses/LICENSE-2.0 * @link https://github.com/staffbase/plugins-sdk-php diff --git a/src/SSOData/SSODataTrait.php b/src/SSOData/SSODataTrait.php index 0926c66..7aff732 100644 --- a/src/SSOData/SSODataTrait.php +++ b/src/SSOData/SSODataTrait.php @@ -5,10 +5,8 @@ * SSO data implementation, based on this doc: * https://developers.staffbase.com/guide/customplugin-overview * - * PHP version 7.4 - * * @category Authentication - * @copyright 2017-2022 Staffbase, GmbH. + * @copyright 2017-2025 Staffbase SE. * @author Vitaliy Ivanov, Daniel Grosse * @license http://www.apache.org/licenses/LICENSE-2.0 * @link https://github.com/staffbase/plugins-sdk-php diff --git a/src/SSOData/SharedClaimsInterface.php b/src/SSOData/SharedClaimsInterface.php index d9c0b0a..502866c 100644 --- a/src/SSOData/SharedClaimsInterface.php +++ b/src/SSOData/SharedClaimsInterface.php @@ -4,10 +4,8 @@ /** * Interface with shared claims of a JWT token. * - * PHP version 7.4 - * * @category Token - * @copyright 2017-2022 Staffbase, GmbH. + * @copyright 2017-2025 Staffbase SE. * @author Daniel Grosse * @license http://www.apache.org/licenses/LICENSE-2.0 * @link https://github.com/staffbase/plugins-sdk-php diff --git a/src/SSOData/SharedDataTrait.php b/src/SSOData/SharedDataTrait.php index 754ea67..bf58d29 100644 --- a/src/SSOData/SharedDataTrait.php +++ b/src/SSOData/SharedDataTrait.php @@ -4,10 +4,8 @@ /** * Trait to access the shared claims of a JWT token. * - * PHP version 7.4 - * * @category Token - * @copyright 2017-2022 Staffbase, GmbH. + * @copyright 2017-2025 Staffbase SE. * @author Daniel Grosse * @license http://www.apache.org/licenses/LICENSE-2.0 * @link https://github.com/staffbase/plugins-sdk-php diff --git a/src/SSOToken.php b/src/SSOToken.php index a331f7f..22621ff 100644 --- a/src/SSOToken.php +++ b/src/SSOToken.php @@ -4,10 +4,10 @@ /** * SSO token parser and validator * - * PHP version 7.4 + * PHP version 8.3 * * @category Authentication - * @copyright 2017-2022 Staffbase, GmbH. + * @copyright 2017-2025 Staffbase SE. * @author Daniel Grosse * @license http://www.apache.org/licenses/LICENSE-2.0 * @link https://github.com/staffbase/plugins-sdk-php diff --git a/src/SSOTokenGenerator.php b/src/SSOTokenGenerator.php index b02efdc..8d6230d 100644 --- a/src/SSOTokenGenerator.php +++ b/src/SSOTokenGenerator.php @@ -5,10 +5,8 @@ * SSO token generator, based on this doc: * https://developers.staffbase.com/api/plugin-sso/ * - * PHP version 7.4.0 - * * @category Authentication - * @copyright 2017-2022 Staffbase, GmbH. + * @copyright 2017-2025 Staffbase SE. * @author Daniel Grosse * @license http://www.apache.org/licenses/LICENSE-2.0 * @link https://github.com/staffbase/plugins-sdk-php diff --git a/src/SessionHandling/SessionHandlerTrait.php b/src/SessionHandling/SessionHandlerTrait.php index 42875be..3d88898 100644 --- a/src/SessionHandling/SessionHandlerTrait.php +++ b/src/SessionHandling/SessionHandlerTrait.php @@ -5,10 +5,8 @@ * Trait to handle a php session. Opening, closing and destroying the session. * Accessing variables, stored in the session. * - * PHP version 7.4 - * * @category SessionHandling - * @copyright 2017-2022 Staffbase, GmbH. + * @copyright 2017-2025 Staffbase SE. * @author Daniel Grosse * @license http://www.apache.org/licenses/LICENSE-2.0 * @link https://github.com/staffbase/plugins-sdk-php diff --git a/src/SessionHandling/SessionTokenDataTrait.php b/src/SessionHandling/SessionTokenDataTrait.php index b544830..0010522 100644 --- a/src/SessionHandling/SessionTokenDataTrait.php +++ b/src/SessionHandling/SessionTokenDataTrait.php @@ -4,10 +4,8 @@ /** * Trait to store the data of a token in in a specific property. * - * PHP version 7.4 - * * @category SessionHandling - * @copyright 2017-2022 Staffbase, GmbH. + * @copyright 2017-2025 Staffbase SE. * @author Daniel Grosse * @license http://www.apache.org/licenses/LICENSE-2.0 * @link https://github.com/staffbase/plugins-sdk-php diff --git a/src/Validation/HasInstanceId.php b/src/Validation/HasInstanceId.php index 2414b06..5bdc986 100644 --- a/src/Validation/HasInstanceId.php +++ b/src/Validation/HasInstanceId.php @@ -2,10 +2,8 @@ /** * JWT Token validation * - * PHP version 7.4 - * * @category Validation - * @copyright 2017-2022 Staffbase, GmbH. + * @copyright 2017-2025 Staffbase SE. * @author Daniel Grosse * @license http://www.apache.org/licenses/LICENSE-2.0 * @link https://github.com/staffbase/plugins-sdk-php diff --git a/test/PluginSessionTest.php b/test/PluginSessionTest.php index a1317fb..efd7c76 100644 --- a/test/PluginSessionTest.php +++ b/test/PluginSessionTest.php @@ -3,10 +3,8 @@ * SSO plugin session Test implementation, based on this doc: * https://developers.staffbase.com/api/plugin-sso/ * - * PHP version 7.4 - * * @category Authentication - * @copyright 2017-2022 Staffbase, GmbH. + * @copyright 2017-2025 Staffbase SE. * @author Vitaliy Ivanov * @license http://www.apache.org/licenses/LICENSE-2.0 * @link https://github.com/staffbase/plugins-sdk-php diff --git a/test/SSOData/SSODataTest.php b/test/SSOData/SSODataTest.php index 724c9e7..7a825ac 100644 --- a/test/SSOData/SSODataTest.php +++ b/test/SSOData/SSODataTest.php @@ -3,10 +3,8 @@ * SSO data Test implementation, based on this doc: * https://developers.staffbase.com/guide/customplugin-overview * - * PHP version 7.4.0 - * * @category Authentication - * @copyright 2017-2022 Staffbase, GmbH. + * @copyright 2017-2025 Staffbase SE. * @author Vitaliy Ivanov * @license http://www.apache.org/licenses/LICENSE-2.0 * @link https://github.com/staffbase/plugins-sdk-php diff --git a/test/SSOTokenTest.php b/test/SSOTokenTest.php index dc05a70..ec39aa5 100644 --- a/test/SSOTokenTest.php +++ b/test/SSOTokenTest.php @@ -3,10 +3,8 @@ * SSO token Test implementation, based on this doc: * https://developers.staffbase.com/guide/customplugin-overview * - * PHP version 7.4 - * * @category Authentication - * @copyright 2017-2022 Staffbase, GmbH. + * @copyright 2017-2025 Staffbase SE. * @author Vitaliy Ivanov * @license http://www.apache.org/licenses/LICENSE-2.0 * @link https://github.com/staffbase/plugins-sdk-php