Skip to content

Commit 6e1f2d6

Browse files
Merge pull request #21 from Staffbase/Update-To-Github-Actions
Add github action yml
2 parents d27d515 + 68c0405 commit 6e1f2d6

File tree

4 files changed

+40
-12
lines changed

4 files changed

+40
-12
lines changed

.github/workflows/php.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: PHP Composer
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
run:
11+
runs-on: ${{ matrix.operating-system }}
12+
strategy:
13+
matrix:
14+
operating-system: ['ubuntu-latest']
15+
php-versions: ['7.3', '7.4']
16+
phpunit-versions: ['latest']
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
21+
- name: Setup PHP
22+
uses: shivammathur/setup-php@v2
23+
with:
24+
php-version: ${{ matrix.php-versions }}
25+
extensions: mbstring, intl
26+
ini-values: post_max_size=256M, max_execution_time=180
27+
coverage: none
28+
tools: php-cs-fixer, phpunit:${{ matrix.phpunit-versions }}
29+
30+
- name: Install dependencies
31+
if: steps.composer-cache.outputs.cache-hit != 'true'
32+
run: composer update --prefer-dist --no-progress
33+
34+
- name: Run test suite
35+
run: composer test

.travis.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Plugin SDK for PHP
22

3-
[![Build Status](https://travis-ci.org/Staffbase/plugins-sdk-php.svg?branch=master)](https://travis-ci.org/Staffbase/plugins-sdk-php)
3+
[![Build Status](https://github.com/Staffbase/plugins-sdk-php/workflows/PHP%20Composer/badge.svg)](https://github.com/Staffbase/plugins-sdk-php/actions)
4+
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
45

56
If you are developing your own plugin for your Staffbase app we describe the authentication flow of a plugin at https://developers.staffbase.com/guide/customplugin-overview/. While this documentation just covers the conceptual ideas of the interface of plugins though – the so called Plugin SSO – we want to provide a library to help you develop your first plugin for Staffbase even faster. This SDK provides the basic functionality to parse and verify a provided token for PHP.
67

@@ -16,7 +17,7 @@ composer require staffbase/plugins-sdk-php
1617

1718
Dependencies are also managed by Composer. When using this repository keep the following dependencies in mind (cf. [composer.json](composer.json)):
1819

19-
* php: >=5.5.9
20+
* php: >=7.3
2021
* lcobucci/jwt: ^3.2
2122

2223
## API Reference

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"name": "staffbase/plugins-sdk-php",
3+
"version": "1.5.4",
34
"type": "library",
4-
"description": "Staffbase php sdk library for plugins.",
5+
"description": "Staffbase PHP SDK library for plugins.",
56
"keywords": ["staffbase", "plugins", "library", "php", "sdk"],
67
"homepage": "https://github.com/Staffbase/plugins-sdk-php",
78
"license": "Apache-2.0",

0 commit comments

Comments
 (0)