Skip to content

Commit

Permalink
Merge pull request #2 from bitpanda-labs/Hailong/master
Browse files Browse the repository at this point in the history
Upgrade phpseclib to v3
  • Loading branch information
ilazaridis authored Dec 20, 2022
2 parents f515222 + cb76a0e commit 85def3f
Show file tree
Hide file tree
Showing 10 changed files with 528 additions and 306 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: PHP Composer

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

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
extensions: gmp

- name: Validate composer.json and composer.lock
run: composer validate --strict

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
run: composer install --prefer-dist --no-progress

# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
# Docs: https://getcomposer.org/doc/articles/scripts.md

# - name: Run test suite
# run: composer run-script test
- name: Run test suite
run: php vendor/bin/phpunit -c ./test/phpunit.xml
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

PHP JOSE (Javascript Object Signing and Encryption) Implementation

[![Build Status](https://travis-ci.org/nov/jose-php.png?branch=master)](https://travis-ci.org/nov/jose-php)
[![PHP Composer](https://github.com/bitpanda-labs/jose-php/actions/workflows/php.yml/badge.svg?branch=master)](https://github.com/bitpanda-labs/jose-php/actions/workflows/php.yml)

## Requirements

Expand Down
9 changes: 4 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
{
"name": "gree/jose",
"version": "2.2.1",
"description": "JWT, JWS and JWS implementation in PHP",
"name": "bitpanda-labs/jose",
"description": "JWT, JWS and JWE implementation in PHP",
"keywords": [
"JSON Web Token", "JSON Web Signature", "JSON Web Encryption",
"JWT", "JWS", "JWE", "JOSE", "OpenID Connect", "ID Token"
],
"homepage": "https://github.com/nov/jose",
"homepage": "https://github.com/bitpanda-labs/jose",
"license": "MIT",
"type": "library",
"authors": [
Expand All @@ -18,7 +17,7 @@
],
"require": {
"php": ">=5.6",
"phpseclib/phpseclib": ">=2.0.0"
"phpseclib/phpseclib": "^3.0.0"
},
"require-dev": {
"phpunit/phpunit": "4.8.*"
Expand Down
Loading

0 comments on commit 85def3f

Please sign in to comment.