Skip to content

Commit 887341a

Browse files
author
Sebastian Fix
committed
Updated Laravel 13
1 parent 31402e7 commit 887341a

22 files changed

Lines changed: 1005 additions & 654 deletions

.github/workflows/lint.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,27 @@ name: linter
22

33
on:
44
push:
5-
branches:
6-
- main
5+
branches: [ main ]
76
pull_request:
8-
branches:
9-
- main
7+
branches: [ main ]
108

119
jobs:
1210
lint:
1311
runs-on: ubuntu-latest
14-
1512
name: Pint
1613

1714
steps:
18-
- name: Checkout
19-
uses: actions/checkout@v4
15+
- name: Checkout code
16+
uses: actions/checkout@v6.0.2
2017

2118
- name: Setup PHP
22-
uses: shivammathur/setup-php@v2
19+
uses: shivammathur/setup-php@2.37.0
2320
with:
24-
php-version: '8.4'
25-
tools: composer:v2
21+
php-version: '8.5'
22+
coverage: none
2623

27-
- name: Install Dependencies
28-
run: composer install --prefer-dist --no-interaction
24+
- name: Install composer dependencies
25+
uses: ramsey/composer-install@4.0.0
2926

3027
- name: Run Pint
3128
run: composer lint

.github/workflows/phpstan.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,12 @@ on:
55
paths:
66
- '**/*.php'
77
- 'phpstan.neon.dist'
8-
- 'phpstan-baseline.neon'
98
- 'composer.json'
109
- 'composer.lock'
1110
pull_request:
1211
paths:
1312
- '**/*.php'
1413
- 'phpstan.neon.dist'
15-
- 'phpstan-baseline.neon'
1614
- 'composer.json'
1715
- 'composer.lock'
1816
workflow_dispatch:
@@ -39,4 +37,4 @@ jobs:
3937
uses: ramsey/composer-install@4.0.0
4038

4139
- name: Run PHPStan
42-
run: ./vendor/bin/phpstan --error-format=github
40+
run: ./vendor/bin/phpstan analyse -c phpstan.neon.dist --error-format=github

.github/workflows/tests.yml

Lines changed: 32 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,40 +2,54 @@ name: tests
22

33
on:
44
push:
5-
branches:
6-
- main
5+
branches: [ main ]
76
pull_request:
8-
branches:
9-
- main
7+
branches: [ main ]
108

119
jobs:
1210
test:
13-
runs-on: ubuntu-latest
14-
11+
runs-on: ${{ matrix.os }}
1512
strategy:
1613
fail-fast: true
14+
max-parallel: 1
1715
matrix:
18-
php: ['8.4']
19-
laravel: ['12.*']
16+
os: [ ubuntu-latest ]
17+
php: [ 8.3, 8.4, 8.5 ]
18+
laravel: [ 13.* ]
19+
stability: [ prefer-lowest, prefer-stable ]
2020

21-
name: PHP ${{ matrix.php }} — Laravel ${{ matrix.laravel }}
21+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
2222

2323
steps:
24-
- name: Checkout
25-
uses: actions/checkout@v4
24+
- name: Checkout code
25+
uses: actions/checkout@v6.0.2
2626

2727
- name: Setup PHP
28-
uses: shivammathur/setup-php@v2
28+
uses: shivammathur/setup-php@2.37.0
2929
with:
3030
php-version: ${{ matrix.php }}
31-
extensions: dom, curl, libxml, mbstring, zip, sqlite3, pdo_sqlite
32-
tools: composer:v2
31+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
3332
coverage: none
3433

35-
- name: Install Dependencies
34+
- name: Setup problem matchers
35+
run: |
36+
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
37+
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
38+
39+
- name: Install dependencies
3640
run: |
3741
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
38-
composer update --prefer-dist --no-interaction
42+
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
3943
40-
- name: Run Tests
41-
run: composer test
44+
- name: Prepare PHPUnit config
45+
run: cp phpunit.xml.dist phpunit.xml
46+
47+
- name: Run tests
48+
run: vendor/bin/pest --no-coverage
49+
50+
- name: Store log artifacts
51+
if: failure()
52+
uses: actions/upload-artifact@v4
53+
with:
54+
name: Store report artifacts
55+
path: ./vendor/orchestra/testbench-core/laravel/storage/logs

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/vendor
2+
/phpunit.xml
23
/.phpunit.cache
34
/.phpunit.result.cache
45
/.idea

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1-
# Laravel Microsoft Entra SSO
1+
<img src="https://banners.beyondco.de/Laravel%20Microsoft%20Entra%20SSO.png?theme=light&packageManager=composer+require&packageName=codebar-ag%2Flaravel-microsoft-entra-sso&pattern=circuitBoard&style=style_2&description=Microsoft+Entra+ID+SSO+authentication+for+Laravel.&md=1&showWatermark=0&fontSize=150px&images=home&widths=500&heights=500">
22

3-
[![Tests](https://github.com/codebar-ag/laravel-microsoft-entra-sso/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/codebar-ag/laravel-microsoft-entra-sso/actions/workflows/tests.yml)
4-
[![Linter](https://github.com/codebar-ag/laravel-microsoft-entra-sso/actions/workflows/lint.yml/badge.svg?branch=main)](https://github.com/codebar-ag/laravel-microsoft-entra-sso/actions/workflows/lint.yml)
3+
[![Latest Version on Packagist](https://img.shields.io/packagist/v/codebar-ag/laravel-microsoft-entra-sso.svg?style=flat-square)](https://packagist.org/packages/codebar-ag/laravel-microsoft-entra-sso)
4+
[![Total Downloads](https://img.shields.io/packagist/dt/codebar-ag/laravel-microsoft-entra-sso.svg?style=flat-square)](https://packagist.org/packages/codebar-ag/laravel-microsoft-entra-sso)
5+
[![GitHub-Tests](https://github.com/codebar-ag/laravel-microsoft-entra-sso/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/codebar-ag/laravel-microsoft-entra-sso/actions/workflows/tests.yml)
6+
[![GitHub Code Style](https://github.com/codebar-ag/laravel-microsoft-entra-sso/actions/workflows/fix-php-code-style-issues.yml/badge.svg?branch=main)](https://github.com/codebar-ag/laravel-microsoft-entra-sso/actions/workflows/fix-php-code-style-issues.yml)
7+
[![PHPStan](https://github.com/codebar-ag/laravel-microsoft-entra-sso/actions/workflows/phpstan.yml/badge.svg)](https://github.com/codebar-ag/laravel-microsoft-entra-sso/actions/workflows/phpstan.yml)
8+
[![Dependency Review](https://github.com/codebar-ag/laravel-microsoft-entra-sso/actions/workflows/dependency-review.yml/badge.svg)](https://github.com/codebar-ag/laravel-microsoft-entra-sso/actions/workflows/dependency-review.yml)
59

610
Microsoft Entra ID (Azure AD) SSO authentication package for Laravel using OAuth2 + OpenID Connect.
711

812
## Requirements
913

10-
- PHP 8.4+
11-
- Laravel 12
14+
- PHP 8.3, 8.4, or 8.5
15+
- Laravel 13
1216
- A Microsoft Entra app registration
1317

1418
## Installation

composer.json

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,18 @@
2323
}
2424
],
2525
"require": {
26-
"php": "^8.2",
27-
"illuminate/contracts": "^12.0",
28-
"illuminate/http": "^12.0",
29-
"illuminate/routing": "^12.0",
30-
"illuminate/support": "^12.0"
26+
"php": "8.3.*|8.4.*|8.5.*",
27+
"illuminate/contracts": "^13.0",
28+
"illuminate/http": "^13.0",
29+
"illuminate/routing": "^13.0",
30+
"illuminate/support": "^13.0"
3131
},
3232
"require-dev": {
3333
"larastan/larastan": "^3.9",
34-
"laravel/pint": "^1.24",
35-
"nunomaduro/collision": "^8.6",
36-
"orchestra/testbench": "^10.0",
37-
"pestphp/pest": "^3.0||^4.0",
38-
"pestphp/pest-plugin-laravel": "^3.0||^4.0",
34+
"laravel/pint": "^1.21",
35+
"orchestra/testbench": "^11.0",
36+
"pestphp/pest": "^4.0",
37+
"pestphp/pest-plugin-laravel": "^4.0",
3938
"phpstan/phpstan": "^2.1"
4039
},
4140
"autoload": {

0 commit comments

Comments
 (0)