Skip to content

Laravel 12 #184

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Mar 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Bug Report
description: Report an Issue or Bug with the Package
title: "[Bug]: "
labels: ["bug"]
labels: [ "bug" ]
body:
- type: markdown
attributes:
Expand All @@ -20,26 +20,26 @@ We're sorry to hear you have a problem. Can you help us solve it by providing th
attributes:
label: Package Version
description: What version of our Package are you running? Please be as specific as possible
placeholder: "11.0"
value: "11.0"
placeholder: "12.0"
value: "12.0"
validations:
required: true
- type: input
id: php-version
attributes:
label: PHP Version
description: What version of PHP are you running? Please be as specific as possible
placeholder: "8.3.0"
value: "8.3.0"
placeholder: "8.4.0"
value: "8.4.0"
validations:
required: true
- type: input
id: laravel-version
attributes:
label: Laravel Version
description: What version of Laravel are you running? Please be as specific as possible
placeholder: "11.0.0"
value: "11.0.0"
placeholder: "12.0.0"
value: "12.0.0"
validations:
required: true
- type: dropdown
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@ jobs:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:

- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2.3.0
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

- name: Auto-merge Dependabot PRs for semver-minor updates
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-minor'}}
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Auto-merge Dependabot PRs for semver-patch updates
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-patch'}}
run: gh pr merge --auto --merge "$PR_URL"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
php-version: '8.4'
coverage: none

- name: Install composer dependencies
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: release

on:
pull_request:
types:
- closed
branches:
- main
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: Bump version and push tag
uses: anothrNick/github-tag-action@master
env:
GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}
WITH_V: true
RELEASE_BRANCHES: main
DEFAULT_BUMP: minor
4 changes: 2 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
max-parallel: 1
matrix:
os: [ ubuntu-latest ]
php: [ 8.2, 8.3 ]
laravel: [ 11.* ]
php: [ 8.2, 8.3, 8.4 ]
laravel: [ 12.* ]
stability: [ prefer-lowest, prefer-stable ]

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
Expand Down
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.idea
.phpunit.result.cache
.phpunit.cache
build
composer.lock
coverage
phpunit.xml
Expand All @@ -10,11 +9,9 @@ testbench.yaml
vendor
node_modules
.phpactor.json


build

## Annotations

src/DTO/Documents/AnnotationsStamps/*
src/Requests/Documents/AnnotationsStamps/*
src/Responses/Documents/AnnotationsStamps/*
Expand Down
2 changes: 1 addition & 1 deletion .phpunit.cache/test-results

Large diffs are not rendered by default.

17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,14 +147,15 @@ then optimize the processes that power the core of your business.
<details>
<summary>Version Support</summary>

| Version | PHP Version | Laravel Version | DocuWare Cloud Access |
|-----------------|-------------|-----------------|-----------------------|
| > v11.0 (alpha) | ^8.2 | ^11.* | ✅ |
| > v4.0 | ^8.2 | ^11.* | ✅ |
| > v3.0 | ^8.2 | ^10.* | ✅ |
| > v2.0 | ^8.1 | ^9.* | ✅ |
| > v1.2 | ^8.1 | ^9.* | ✅ |
| < v1.2 | ^8.0 | ^8.* | ✅ |
| Version | PHP Version | Laravel Version | DocuWare Cloud Access |
|---------------|-------------|-----------------|-----------------------|
| v12.0 | ^8.2 - ^8.4 | 12.* | ✅ |
| v11.0 (alpha) | ^8.2 | 11.* | ✅ |
| > v4.0 | ^8.2 | 11.* | ✅ |
| > v3.0 | ^8.2 | 10.* | ✅ |
| > v2.0 | ^8.1 | 9.* | ✅ |
| > v1.2 | ^8.1 | 9.* | ✅ |
| < v1.2 | ^8.0 | 8.* | ✅ |

</details>

Expand Down
163 changes: 81 additions & 82 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,85 +1,84 @@
{
"name": "codebar-ag/laravel-docuware",
"description": "DocuWare integration with Laravel",
"keywords": [
"laravel",
"docuware",
"codebar-ag",
"laravel-docuware",
"codebar Solutions AG",
"Ricoh Schweiz AG",
"Docu Ware"
],
"homepage": "https://github.com/codebar-ag/laravel-docuware",
"license": "MIT",
"authors": [
{
"name": "Sebastian Bürgin-Fix",
"email": "sebastian.fix@buergin.ch",
"homepage": "https://www.codebar.ch",
"role": "Sofware-Engineer"
"name": "codebar-ag/laravel-docuware",
"description": "DocuWare integration with Laravel",
"keywords": [
"laravel",
"docuware",
"codebar-ag",
"laravel-docuware",
"codebar Solutions AG",
"Ricoh Schweiz AG",
"Docu Ware"
],
"homepage": "https://github.com/codebar-ag/laravel-docuware",
"license": "MIT",
"authors": [
{
"name": "Sebastian Bürgin-Fix",
"email": "sebastian.buergin@buergin.ch",
"homepage": "https://www.codebar.ch",
"role": "Sofware-Engineer"
},
{
"name": "Rhys Lees",
"role": "Software-Engineer"
}
],
"require": {
"php": "8.2.*|8.3.*|8.4.*",
"guzzlehttp/guzzle": "^7.8",
"illuminate/contracts": "^12.0",
"nesbot/carbon": "^3.8",
"saloonphp/cache-plugin": "^3.0",
"saloonphp/laravel-plugin": "^3.5",
"saloonphp/saloon": "^3.10.1",
"spatie/laravel-package-tools": "^1.19"
},
{
"name": "Rhys Lees",
"role": "Software-Engineer"
}
],
"require": {
"php": ">=8.2",
"guzzlehttp/guzzle": "^7.8",
"illuminate/contracts": "^11.0",
"nesbot/carbon": "^2.72",
"saloonphp/cache-plugin": "^3.0",
"saloonphp/laravel-plugin": "^3.5",
"saloonphp/saloon": "^3.7",
"spatie/laravel-package-tools": "^1.16"
},
"require-dev": {
"laravel/pint": "^1.14",
"larastan/larastan": "^2.9",
"orchestra/testbench": "^9.0",
"pestphp/pest": "^2.34",
"phpstan/extension-installer": "^1.3",
"phpstan/phpstan-deprecation-rules": "^1.1",
"phpstan/phpstan-phpunit": "^1.3",
"phpunit/phpunit": "^10.5",
"spatie/laravel-ray": "^1.35"
},
"autoload": {
"psr-4": {
"CodebarAg\\DocuWare\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"CodebarAg\\DocuWare\\Tests\\": "tests"
}
},
"scripts": {
"post-autoload-dump": "@php ./vendor/bin/testbench package:discover --ansi",
"analyse": "vendor/bin/phpstan analyse",
"test": "vendor/bin/pest",
"test-coverage": "vendor/bin/pest --coverage",
"format": "vendor/bin/pint"
},
"config": {
"sort-packages": true,
"allow-plugins": {
"composer/package-versions-deprecated": true,
"phpstan/extension-installer": true,
"pestphp/pest-plugin": true
}
},
"extra": {
"laravel": {
"providers": [
"CodebarAg\\DocuWare\\DocuWareServiceProvider"
],
"aliases": {
"DocuWare": "CodebarAg\\DocuWare\\Facades\\DocuWare"
}
}
},
"minimum-stability": "dev",
"prefer-stable": true
"require-dev": {
"laravel/pint": "^1.21",
"larastan/larastan": "^v3.1",
"orchestra/testbench": "^10.0",
"pestphp/pest": "^3.7",
"phpstan/extension-installer": "^1.4",
"phpstan/phpstan-deprecation-rules": "^2.0",
"phpstan/phpstan-phpunit": "^2.0",
"spatie/laravel-ray": "^1.39"
},
"autoload": {
"psr-4": {
"CodebarAg\\DocuWare\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"CodebarAg\\DocuWare\\Tests\\": "tests"
}
},
"scripts": {
"post-autoload-dump": "@php ./vendor/bin/testbench package:discover --ansi",
"analyse": "vendor/bin/phpstan analyse",
"test": "vendor/bin/pest",
"test-coverage": "vendor/bin/pest --coverage",
"format": "vendor/bin/pint"
},
"config": {
"sort-packages": true,
"allow-plugins": {
"composer/package-versions-deprecated": true,
"phpstan/extension-installer": true,
"pestphp/pest-plugin": true
}
},
"extra": {
"laravel": {
"providers": [
"CodebarAg\\DocuWare\\DocuWareServiceProvider"
],
"aliases": {
"DocuWare": "CodebarAg\\DocuWare\\Facades\\DocuWare"
}
}
},
"minimum-stability": "dev",
"prefer-stable": true
}
5 changes: 2 additions & 3 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ includes:
- phpstan-baseline.neon

parameters:
level: 4
level: 5
paths:
- src
- config
tmpDir: build/phpstan
checkOctaneCompatibility: true
checkModelProperties: true
checkMissingIterableValueType: false

noEnvCallsOutsideOfConfig: false
Loading
Loading