Skip to content

Commit ab2e011

Browse files
authored
Feature Laravel 12 (#41)
1 parent 6c1c3c1 commit ab2e011

File tree

11 files changed

+92
-58
lines changed

11 files changed

+92
-58
lines changed

.github/FUNDING.yml

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

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,45 @@
11
name: Bug Report
22
description: Report an Issue or Bug with the Package
33
title: "[Bug]: "
4-
labels: ["bug"]
4+
labels: [ "bug" ]
55
body:
66
- type: markdown
77
attributes:
8-
value: |
9-
We're sorry to hear you have a problem. Can you help us solve it by providing the following details.
8+
value: "|
9+
We're sorry to hear you have a problem. Can you help us solve it by providing the following details."
1010
- type: textarea
1111
id: what-happened
1212
attributes:
1313
label: What happened?
1414
description: What did you expect to happen?
15-
placeholder: I cannot currently do X thing because when I do, it breaks X thing.
15+
placeholder: "I cannot currently do X thing because when I do, it breaks X thing."
1616
validations:
1717
required: true
1818
- type: input
1919
id: package-version
2020
attributes:
2121
label: Package Version
2222
description: What version of our Package are you running? Please be as specific as possible
23-
placeholder: 1.0.0
23+
placeholder: "12.0"
24+
value: "12.0"
2425
validations:
2526
required: true
2627
- type: input
2728
id: php-version
2829
attributes:
2930
label: PHP Version
3031
description: What version of PHP are you running? Please be as specific as possible
31-
placeholder: 8.3.0
32+
placeholder: "8.4.0"
33+
value: "8.4.0"
3234
validations:
3335
required: true
3436
- type: input
3537
id: laravel-version
3638
attributes:
3739
label: Laravel Version
3840
description: What version of Laravel are you running? Please be as specific as possible
39-
placeholder: 11.0.0
41+
placeholder: "12.0.0"
42+
value: "12.0.0"
4043
validations:
4144
required: true
4245
- type: dropdown

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Please see the documentation for all configuration options:
2+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
3+
4+
version: 2
5+
updates:
6+
7+
- package-ecosystem: "github-actions"
8+
directory: "/"
9+
schedule:
10+
interval: "weekly"
11+
labels:
12+
- "dependencies"

.github/workflows/dependabot-auto-merge.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ jobs:
1313

1414
- name: Dependabot metadata
1515
id: metadata
16-
17-
uses: dependabot/fetch-metadata@v1.4.0
16+
uses: dependabot/fetch-metadata@v2.3.0
1817
with:
1918
github-token: "${{ secrets.GITHUB_TOKEN }}"
2019

.github/workflows/dependency-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: 'Checkout Repository'
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919
- name: 'Dependency Review'
2020
uses: actions/dependency-review-action@v4

.github/workflows/fix-php-code-style-issues.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ jobs:
88

99
steps:
1010
- name: Checkout code
11-
uses: actions/checkout@v3
11+
uses: actions/checkout@v4
1212
with:
1313
ref: ${{ github.head_ref }}
1414

1515
- name: Fix PHP code style issues
16-
uses: aglipanci/laravel-pint-action@2.2.0
16+
uses: aglipanci/laravel-pint-action@2.5
1717

1818
- name: Commit changes
19-
uses: stefanzweifel/git-auto-commit-action@v4
19+
uses: stefanzweifel/git-auto-commit-action@v5
2020
with:
2121
commit_message: Fix styling

.github/workflows/phpstan.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@ name: PHPStan
22

33
on:
44
push:
5-
branches: [ main ]
6-
pull_request:
7-
branches: [ main ]
5+
paths:
6+
- '**.php'
7+
- 'phpstan.neon.dist'
88

99
jobs:
1010
phpstan:
1111
name: phpstan
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515

1616
- name: Setup PHP
1717
uses: shivammathur/setup-php@v2
1818
with:
19-
php-version: '8.2'
19+
php-version: '8.4'
2020
coverage: none
2121

2222
- name: Install composer dependencies
23-
uses: ramsey/composer-install@v2
23+
uses: ramsey/composer-install@v3
2424

2525
- name: Run PHPStan
26-
run: ./vendor/bin/phpstan analyse src --error-format=github
26+
run: ./vendor/bin/phpstan --error-format=github

.github/workflows/release.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: release
2+
3+
on:
4+
pull_request:
5+
types:
6+
- closed
7+
branches:
8+
- main
9+
jobs:
10+
release:
11+
name: Release
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
with:
16+
fetch-depth: '0'
17+
- name: Bump version and push tag
18+
uses: anothrNick/github-tag-action@master
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}
21+
WITH_V: true
22+
RELEASE_BRANCHES: main
23+
DEFAULT_BUMP: minor

.github/workflows/run-tests.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ jobs:
1313
fail-fast: true
1414
max-parallel: 1
1515
matrix:
16-
os: [ ubuntu-latest, windows-latest ]
17-
php: [ 8.2, 8.3 ]
18-
laravel: [ 11.* ]
16+
os: [ ubuntu-latest ]
17+
php: [ 8.2, 8.3, 8.4 ]
18+
laravel: [ 12.* ]
1919
stability: [ prefer-lowest, prefer-stable ]
2020

2121
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
2222

2323
steps:
2424
- name: Checkout code
25-
uses: actions/checkout@v3
25+
uses: actions/checkout@v4
2626

2727
- name: Setup PHP
2828
uses: shivammathur/setup-php@v2
@@ -41,7 +41,7 @@ jobs:
4141
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
4242
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
4343
44-
- name: Set phpunit.xml
44+
- name: Execute tests
4545
run: cp phpunit.xml.dist phpunit.xml
4646

4747
- name: Execute tests
@@ -51,10 +51,9 @@ jobs:
5151
ZAMMAD_TOKEN: ${{ secrets.ZAMMAD_TOKEN }}
5252
ZAMMAD_OBJECT_REFERENCE_ERROR_IGNORE: true
5353

54-
- name: Store test reports
54+
- name: Store Log Artifacts
55+
if: failure()
5556
uses: actions/upload-artifact@v4
5657
with:
57-
name: Store report
58-
retention-days: 1
59-
path: |
60-
./reports
58+
name: Store report artifacts
59+
path: ./vendor/orchestra/testbench-core/laravel/storage/logs

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<img src="https://banners.beyondco.de/Laravel%20Zammad.png?theme=light&packageManager=composer+require&packageName=codebar-ag%2Flaravel-zammad&pattern=circuitBoard&style=style_2&description=An+opinionated+way+to+integrate+Zammad+with+Laravel&md=1&showWatermark=0&fontSize=150px&images=ticket&widths=500&heights=500">
22

33
[![Latest Version on Packagist](https://img.shields.io/packagist/v/codebar-ag/laravel-zammad.svg?style=flat-square)](https://packagist.org/packages/codebar-ag/laravel-zammad)
4+
[![GitHub-Tests](https://github.com/codebar-ag/laravel-zammad/actions/workflows/run-tests.yml/badge.svg?branch=main)](https://github.com/codebar-ag/laravel-zammad/actions/workflows/run-tests.yml)
5+
[![GitHub Code Style](https://github.com/codebar-ag/laravel-zammad/actions/workflows/fix-php-code-style-issues.yml/badge.svg?branch=main)](https://github.com/codebar-ag/laravel-zammad/actions/workflows/fix-php-code-style-issues.yml)
46
[![Total Downloads](https://img.shields.io/packagist/dt/codebar-ag/laravel-zammad.svg?style=flat-square)](https://packagist.org/packages/codebar-ag/laravel-zammad)
5-
[![run-tests](https://github.com/codebar-ag/laravel-zammad/actions/workflows/run-tests.yml/badge.svg)](https://github.com/codebar-ag/laravel-zammad/actions/workflows/run-tests.yml)
6-
[![PHPStan](https://github.com/codebar-ag/laravel-zammad/actions/workflows/phpstan.yml/badge.svg)](https://github.com/codebar-ag/laravel-zammad/actions/workflows/phpstan.yml)
77

88
This package was developed to give you a quick start to communicate with the
99
Zammad REST API. It is used to query the most common endpoints.
@@ -19,11 +19,13 @@ features to manage customer communication.
1919

2020
## 🛠 Requirements
2121

22-
| Package | PHP | Laravel | Zammad |
23-
|-----------|--------|------------------|----------|
24-
| >v3.0 | >8.2 | > Laravel 10.0 ||
25-
| >v2.0 | >8.1 | > Laravel 9.0 ||
26-
| >v1.0 | >8.0 | > Laravel 8.12 ||
22+
| Package | PHP | Laravel | Zammad |
23+
|-----------|-------------|----------------|----------|
24+
| v12.0 | ^8.2 - ^8.4 | Laravel 12.0 ||
25+
| v11.0 | ^8.2 - ^8.3 | Laravel 11.0 ||
26+
| v3.0 | 8.2 | Laravel 10.0 ||
27+
| v2.0 | 8.1 | Laravel 9.0 ||
28+
| v1.0 | 8.0 | Laravel 8.12 ||
2729

2830
## ⚙️ Installation
2931

composer.json

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,36 +11,34 @@
1111
"license": "MIT",
1212
"authors": [
1313
{
14-
"name": "Sebastian Steiger",
15-
"email": "sebastian.fix@codebar.ch",
14+
"name": "Sebastian Bürgin-Fix",
15+
"email": "sebastian.buergin@buergin.ch",
1616
"homepage": "https://www.codebar.ch",
17-
"role": "Developer"
17+
"role": "Sofware-Engineer"
1818
},
1919
{
2020
"name": "Rhys Lees",
21-
"role": "Software-Developer"
21+
"role": "Software-Engineer"
2222
}
2323
],
2424
"require": {
25-
"php": ">=8.2",
25+
"php": "8.2.*|8.3.*|8.4.*",
2626
"guzzlehttp/guzzle": "^7.8",
27-
"illuminate/contracts": "^11.0",
28-
"spatie/laravel-package-tools": "^1.16",
27+
"illuminate/contracts": "^12.0",
28+
"spatie/laravel-package-tools": "^1.19",
29+
"saloonphp/cache-plugin": "^3.0",
2930
"saloonphp/laravel-plugin": "^3.5",
30-
"saloonphp/saloon": "^3.7"
31+
"saloonphp/saloon": "^3.10.1"
3132
},
3233
"require-dev": {
33-
"laravel/pint": "^1.13",
34-
"nunomaduro/collision": "^8.1",
35-
"larastan/larastan": "^2.9",
36-
"pestphp/pest": "^2.3",
37-
"orchestra/testbench": "^9.0",
38-
"pestphp/pest-plugin-laravel": "^2.2",
39-
"pestphp/pest-plugin-arch": "^2.7",
40-
"phpstan/extension-installer": "^1.3",
41-
"phpstan/phpstan-deprecation-rules": "^1.1",
42-
"phpstan/phpstan-phpunit": "^1.3",
43-
"spatie/laravel-ray": "^1.33"
34+
"laravel/pint": "^1.21",
35+
"larastan/larastan": "^v3.1",
36+
"orchestra/testbench": "^10.0",
37+
"pestphp/pest": "^3.7",
38+
"phpstan/extension-installer": "^1.4",
39+
"phpstan/phpstan-deprecation-rules": "^2.0",
40+
"phpstan/phpstan-phpunit": "^2.0",
41+
"spatie/laravel-ray": "^1.39"
4442
},
4543
"autoload": {
4644
"psr-4": {

0 commit comments

Comments
 (0)