Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ name: PHP Composer

on:
push:
branches: [ master ]
branches: [ main ]
pull_request:
branches: [ master ]
branches: [ main ]

jobs:
run:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: ['ubuntu-latest']
php-versions: ['8.3']
php-versions: ['8.3', '8.4']
phpunit-versions: ['latest']
steps:
- name: Checkout
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -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"],
Expand All @@ -13,7 +13,7 @@
}
],
"require": {
"php": "~8.3.0",
"php": "^8.3 || ^8.4",
"lcobucci/jwt": "^5.5",
"lcobucci/clock": "^3.3"

Expand Down
4 changes: 1 addition & 3 deletions src/Exceptions/SSOAuthenticationException.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions src/Exceptions/SSOException.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions src/PluginSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions src/RemoteCall/AbstractRemoteCallHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions src/RemoteCall/DeleteInstanceCallHandlerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions src/RemoteCall/RemoteCallInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions src/SSOData/ClaimAccessTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions src/SSOData/SSODataClaimsInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions src/SSOData/SSODataTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions src/SSOData/SharedClaimsInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions src/SSOData/SharedDataTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/SSOToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions src/SSOTokenGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions src/SessionHandling/SessionHandlerTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions src/SessionHandling/SessionTokenDataTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions src/Validation/HasInstanceId.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions test/PluginSessionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions test/SSOData/SSODataTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions test/SSOTokenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down