Skip to content

Commit

Permalink
Dust off the cobwebs
Browse files Browse the repository at this point in the history
  • Loading branch information
nie7321 committed Feb 6, 2024
1 parent cb2aa84 commit 3cef487
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 25 deletions.
8 changes: 1 addition & 7 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,4 @@ updates:
- package-ecosystem: composer
directory: "/"
schedule:
interval: daily
time: '11:00'
open-pull-requests-limit: 10
ignore:
- dependency-name: phpunit/phpunit
versions:
- ">= 8.a, < 9"
interval: monthly
21 changes: 6 additions & 15 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: PHPUnit Tests

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

jobs:
build:
Expand All @@ -13,7 +13,7 @@ jobs:

strategy:
matrix:
php-versions: ['7.4', '8.0']
php-versions: ['7.4', '8.0', '8.1', '8.2', '8.3']

steps:
- uses: actions/checkout@v2
Expand All @@ -24,18 +24,9 @@ jobs:
php-version: ${{ matrix.php-versions }}
coverage: xdebug

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

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: php-${{ matrix.php-versions }}-${{ hashFiles('**/composer.lock') }}
restore-keys: |
php-${{ matrix.php-versions }}-
- name: Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer install --prefer-dist --no-progress
Expand All @@ -44,6 +35,6 @@ jobs:
run: php vendor/bin/phpunit --coverage-clover .build/clover.xml

- name: Record Coverage
run: php vendor/bin/php-coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: php vendor/bin/php-coveralls
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# EventHub PHP SDK [![Build Status](https://github.com/NIT-Administrative-Systems/SysDev-EventHub-PHP-SDK/workflows/PHPUnit%20Tests/badge.svg)](https://github.com/NIT-Administrative-Systems/SysDev-EventHub-PHP-SDK/actions?query=workflow%3A%22PHPUnit+Tests%22) [![Latest Stable Version](https://poser.pugx.org/northwestern-sysdev/event-hub-php-sdk/v/stable)](https://packagist.org/packages/northwestern-sysdev/event-hub-php-sdk) [![Total Downloads](https://poser.pugx.org/northwestern-sysdev/event-hub-php-sdk/downloads)](https://packagist.org/packages/northwestern-sysdev/event-hub-php-sdk) [![Coverage Status](https://coveralls.io/repos/github/NIT-Administrative-Systems/SysDev-EventHub-PHP-SDK/badge.svg?branch=master)](https://coveralls.io/github/NIT-Administrative-Systems/SysDev-EventHub-PHP-SDK?branch=master)
# EventHub PHP SDK [![Build Status](https://github.com/NIT-Administrative-Systems/SysDev-EventHub-PHP-SDK/workflows/PHPUnit%20Tests/badge.svg)](https://github.com/NIT-Administrative-Systems/SysDev-EventHub-PHP-SDK/actions?query=workflow%3A%22PHPUnit+Tests%22) [![Latest Stable Version](https://poser.pugx.org/northwestern-sysdev/event-hub-php-sdk/v/stable)](https://packagist.org/packages/northwestern-sysdev/event-hub-php-sdk) [![Total Downloads](https://poser.pugx.org/northwestern-sysdev/event-hub-php-sdk/downloads)](https://packagist.org/packages/northwestern-sysdev/event-hub-php-sdk) [![Coverage Status](https://coveralls.io/repos/github/NIT-Administrative-Systems/SysDev-EventHub-PHP-SDK/badge.svg?branch=main)](https://coveralls.io/github/NIT-Administrative-Systems/SysDev-EventHub-PHP-SDK?branch=main)
This is a set of PHP classes design to give you easy access to the new Northwestern EventHub & AMQ.

As of writing, this PHP SDK implements methods for all EventHub API calls.
Expand All @@ -7,7 +7,7 @@ As of writing, this PHP SDK implements methods for all EventHub API calls.
This package is available via composer:

```sh
$ composer require northwestern-sysdev/event-hub-php-sdk
composer require northwestern-sysdev/event-hub-php-sdk
```

The latest version of this package supports PHP v7.4+. It may not work on older versions of PHP. Please use v1 if you require compatability with older versions!
Expand Down Expand Up @@ -65,7 +65,7 @@ $message_id = $eh->writeMessage($topic_name, $my_message, 'application/xml');
### Managing Webhooks
EventHub can be configured to deliver messages destined for your application via HTTP POSTs to an API endpoint you've created via webhooks. This is a self-service feature you can configure yourself.

For full details on how this works & the config options, see the [EventHub Webhook documentation](https://apiserviceregistry.northwestern.edu/AMQ/Webhooks).
For full details on how this works & the config options, see the [EventHub Webhook documentation](https://apiserviceregistry.northwestern.edu/help/using-webhooks).

```php
$webhook_api = new \Northwestern\SysDev\SOA\EventHub\Webhook('https://northwestern-dev.apigee.net', 'my api key', new GuzzleHttp\Client);
Expand Down

0 comments on commit 3cef487

Please sign in to comment.