Skip to content

Commit

Permalink
Add Laravel 10 support (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
Okipa authored Jan 22, 2023
1 parent d3417c5 commit b01ee59
Show file tree
Hide file tree
Showing 4 changed files with 106 additions and 25 deletions.
40 changes: 27 additions & 13 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,42 @@ jobs:
strategy:
max-parallel: 15
matrix:
laravel-version: ['^6.0', '^7.0', '^8.0', '^9.0']
php-versions: ['7.4', '8.0']
php: ['7.4', '8.0', '8.1', '8.2']
laravel: ['6.*', '7.*', '8.*', '9.*', '10.*']
exclude:
- laravel-version: ^6.0
php-versions: 8.0
- laravel-version: ^7.0
php-versions: 8.0
- laravel-version: ^9.0
php-versions: 7.4
name: PHP ${{ matrix.php-versions }} on Laravel ${{ matrix.laravel-version }}
- laravel: '6.*'
php: '8.0'
- laravel: '6.*'
php: '8.1'
- laravel: '6.*'
php: '8.2'
- laravel: '7.*'
php: '8.0'
- laravel: '7.*'
php: '8.1'
- laravel: '7.*'
php: '8.2'
- laravel: '8.*'
php: '8.2'
- laravel: '9.*'
php: '7.4'
- laravel: '10.*'
php: '7.4'
- laravel: '10.*'
php: '8.0'
name: PHP ${{ matrix.php }} on Laravel ${{ matrix.laravel }}
steps:
- name: Checkout
uses: actions/checkout@master
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@master
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
php-version: ${{ matrix.php }}
extensions: mbstring, xdebug
coverage: xdebug
- name: Install dependencies
run: |
composer require --no-update --no-interaction "illuminate/notifications:${{ matrix.laravel-version }}"
composer require --no-update --no-interaction "illuminate/notifications:${{ matrix.laravel }}"
composer update --no-interaction --prefer-dist --no-suggest
- name: Lint composer.json
run: composer validate
Expand Down
61 changes: 56 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,67 @@

All notable changes to `webhook` will be documented in this file

## 2.2.0 - 2020-11-11
## 2.4.0 - 2023-01-22

* Added Laravel 10 support
* Added PHP 8.2 support

## 2.3.0 - 2022-02-15

* Added Laravel 9 support

## 2.2.0 - 2020-11-23

* Added PHP 8 support

## 2.1.0 - 2020-08-21
## 2.1.0 - 2020-09-10

* Added Laravel 8 support
* Dropped Laravel 6 support
* Added PHP7.4 version testing in Travis CI
* Dropped Laravel 5.5 support
* Added PHP 7.4 support
* Dropped PHP 7.2 support
* Switched from Travis CI to Github Actions

## 2.0.0 - 2020-03-09

* Added Laravel 7 support
* Added PHP 7.2 support
* Dropped PHP 7.0 and 7.1 support
* Updated channel name to webhook from Webhook [BREAKING CHANGE]
* This shouldn't actually break anything, assuming you are using the routing provided by laravel, but out of an abundance of caution we are tagging a new major version
* We suggest you update any instances of Webhook to webhook in routing statements

## 1.4.0 - 2020-01-07

* Return full response from the request rather than throwing an exception
* Return response on successful webhook
* Added response to CouldNotSendNotification exception
* Updated test PHPDocs and assert exception object
* Fixed broken tests

## 1.3.0 - 2019-09-16

* Added Laravel 6 support
* Dropped Laravel 5.1, 5.2, 5.3 and 5.4 support
* Added PHP 7.0+ support
* Dropped PHP 5.6 support

## 1.2.0 - 2018-05-07

* Added Laravel 5.6 support

## 1.1.0 - 2017-09-25

* Added Laravel 5.5 support

## 1.0.2 - 2017-02-02

* Added Laravel 5.4 support

## 1.0.1 - 2016-10-30

* Fixed issue with other status codes than 200

## 1.0.0 - 201X-XX-XX
## 1.0.0 - 2016-08-23

* initial release
20 changes: 17 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,28 @@
[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/laravel-notification-channels/webhook/master.svg?style=flat-square)](https://scrutinizer-ci.com/g/laravel-notification-channels/webhook/?branch=master)
[![Total Downloads](https://img.shields.io/packagist/dt/laravel-notification-channels/webhook.svg?style=flat-square)](https://packagist.org/packages/laravel-notification-channels/webhook)

This package makes it easy to send webhooks using the Laravel notification system. Supports 5.5+, 6.x, 7.x and 8.x.
This package makes it easy to send webhooks using the Laravel notification system.

## Compatibility

| Laravel version | PHP version | Package version |
|------------------------------------------------------------------------|--------------------|-----------------|
| ^6.0 | ^7.0 | ^8.0 | ^9.0 | ^10.0 | ^7.2.5 | ^8.0 | ^2.4 |
| ^6.0 | ^7.0 | ^8.0 | ^9.0 | ^7.2.5 | ^8.0 | ^2.3 |
| ^6.0 | ^7.0 | ^8.0 | ^7.2.5 | ^8.0 | ^2.2 |
| ^6.0 | ^7.0 | ^8.0 | ^7.2.5 | ^2.1 |
| ~5.5 | ~6.0 | ~7.0 | >=7.2.5 | ^2.0 |
| ~5.5 | ~6.0 | >=7.0 | ^1.3 |
| 5.1.* | 5.2.* | 5.3.* | 5.4.* | 5.5.* | 5.6.* | >=5.6.4 | ^1.2 |
| 5.1.* | 5.2.* | 5.3.* | 5.4.* | 5.5.* | >=5.6.4 | ^1.1 |
| 5.1.* | 5.2.* | 5.3.* | 5.4.* | >=5.6.4 | ^1.0.2 |
| 5.1.* | 5.2.* | 5.3.* | >=5.6.4 | ^1.0.0 |

## Contents

- [Installation](#installation)
- [Usage](#usage)
- [Available Message methods](#available-message-methods)
- [Available Message methods](#available-message-methods)
- [Changelog](#changelog)
- [Testing](#testing)
- [Security](#security)
Expand Down Expand Up @@ -81,7 +96,6 @@ public function routeNotificationForWebhook()
- `header($name, $value)`: Sets additional headers to send with the POST Webhook.
- `verify()`: Enable the SSL certificate verification or provide the path to a CA bundle


## Changelog

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.
Expand Down
10 changes: 6 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
"require": {
"php": "^7.2.5 || ^8.0",
"guzzlehttp/guzzle": "^6.2 || ^7.0",
"illuminate/notifications": "^6.0 || ^7.0 || ^8.0 || ^9.0",
"illuminate/support": "^6.0 || ^7.0 || ^8.0 || ^9.0"
"illuminate/notifications": "^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0",
"illuminate/support": "^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0"
},
"require-dev": {
"mockery/mockery": "^1.3",
"phpunit/phpunit": "^9.0",
"orchestra/testbench": "^4.0 || ^5.0 || ^6.0 || ^7.0"
"orchestra/testbench": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0"
},
"autoload": {
"psr-4": {
Expand All @@ -42,5 +42,7 @@
},
"config": {
"sort-packages": true
}
},
"minimum-stability": "dev",
"prefer-stable": true
}

0 comments on commit b01ee59

Please sign in to comment.