Skip to content

Commit

Permalink
chore: Upgrade to Laravel 11
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Gaspar <[email protected]>
  • Loading branch information
brunogaspar committed Jul 4, 2024
1 parent a4221b5 commit b7cc4a4
Show file tree
Hide file tree
Showing 96 changed files with 241 additions and 226 deletions.
10 changes: 9 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
language: php

php:
- 8.1
- 8.2
- 8.3

dist: focal

addons:
apt:
packages:
- libonig5

cache:
directories:
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

### v8.0.0 - TBA

- Add Laravel 11 support

### v7.0.2 - 2023-08-10

- Fix duplicated property
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
The BSD 3-Clause License
Copyright (c) 2011-2023, Cartalyst LLC
Copyright (c) 2011-2024, Cartalyst LLC
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@
[![Latest Version on Packagist][icon-version]][link-packagist]
[![Total Downloads][icon-downloads]][link-packagist]

Sentinel is a PHP 8.1+ framework agnostic fully-featured authentication & authorization system. It also provides additional features such as user roles and additional security features.
Sentinel is a PHP 8.2+ framework agnostic fully-featured authentication & authorization system. It also provides additional features such as user roles and additional security features.

An open source package by [Cartalyst](https://cartalyst.com), code well, rock on!

## Version Matrix

Version | Laravel | PHP Version
------- | --------- | ------------
------- |-----------| ------------
8.x | 11.0 | >= 8.2
7.x | 10.0 | >= 8.1
6.x | 9.0 | >= 8.0
5.x | 8.0 | >= 7.3
Expand Down Expand Up @@ -47,7 +48,7 @@ This software is released under the [BSD 3-Clause](LICENSE) License.
[link-license]: https://opensource.org/licenses/MIT
[link-packagist]: https://packagist.org/packages/cartalyst/sentinel

[icon-travis]: https://travis-ci.com/cartalyst/sentinel.svg?branch=7.x
[icon-travis]: https://travis-ci.com/cartalyst/sentinel.svg?branch=8.x
[icon-license]: https://poser.pugx.org/cartalyst/sentinel/license
[icon-version]: https://poser.pugx.org/cartalyst/sentinel/version
[icon-downloads]: https://poser.pugx.org/cartalyst/sentinel/downloads
22 changes: 11 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cartalyst/sentinel",
"description": "PHP 7.3+ Fully-featured Authentication & Authorization System",
"description": "PHP 8.2+ Fully-featured Authentication & Authorization System",
"keywords": [
"php",
"cartalyst",
Expand All @@ -17,19 +17,19 @@
}
],
"require": {
"php": "^8.1",
"cartalyst/support": "^7.0",
"illuminate/support": "^10.0"
"php": "^8.2",
"cartalyst/support": "^8.0",
"illuminate/support": "^11.0"
},
"require-dev": {
"cartalyst/php-cs-fixer-config": "^2.0",
"illuminate/cookie": "^10.0",
"illuminate/database": "^10.0",
"illuminate/events": "^10.0",
"illuminate/http": "^10.0",
"illuminate/session": "^10.0",
"illuminate/cookie": "^11.0",
"illuminate/database": "^11.0",
"illuminate/events": "^11.0",
"illuminate/http": "^11.0",
"illuminate/session": "^11.0",
"mockery/mockery": "^1.0",
"phpunit/phpunit": "^9.0"
"phpunit/phpunit": "^10.0"
},
"suggest": {
"illuminate/database": "By default, Sentinel utilizes the powerful Illuminate database layer.",
Expand All @@ -54,7 +54,7 @@
"extra": {
"component": "package",
"branch-alias": {
"dev-master": "7.0.x-dev"
"dev-master": "8.0.x-dev"
},
"laravel": {
"providers": [
Expand Down
41 changes: 18 additions & 23 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,35 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
backupGlobals="false"
backupStaticProperties="false"
beStrictAboutTestsThatDoNotTestAnything="true"
beStrictAboutOutputDuringTests="true"
bootstrap="vendor/autoload.php"
cacheResult="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
failOnRisky="true"
failOnWarning="true"
processIsolation="false"
stopOnError="false"
stopOnFailure="false"
verbose="true"
>
<testsuites>
<testsuite name="Sentinel Test Suite">
<directory suffix="Test.php">./tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">./src/</directory>
</whitelist>
</filter>
<logging>
<log type="tap" target="./build/report.tap" showUncoveredFiles="true"/>
<log type="junit" target="./build/report.junit.xml" showUncoveredFiles="true"/>
<log type="coverage-html" target="./build/coverage" showUncoveredFiles="true"/>
<log type="coverage-text" target="./build/coverage.txt" showUncoveredFiles="true"/>
<log type="coverage-clover" target="./build/logs/clover.xml" showUncoveredFiles="true"/>
</logging>
<testsuites>
<testsuite name="Sentinel Test Suite">
<directory suffix="Test.php">./tests/</directory>
</testsuite>
</testsuites>
<logging>
<junit outputFile="./build/report.junit.xml"/>
</logging>
<source>
<include>
<directory suffix=".php">./src/</directory>
</include>
</source>
</phpunit>
4 changes: 2 additions & 2 deletions src/Activations/ActivationInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
* bundled with this package in the LICENSE file.
*
* @package Sentinel
* @version 7.0.0
* @version 8.0.0
* @author Cartalyst LLC
* @license BSD License (3-clause)
* @copyright (c) 2011-2023, Cartalyst LLC
* @copyright (c) 2011-2024, Cartalyst LLC
* @link https://cartalyst.com
*/

Expand Down
4 changes: 2 additions & 2 deletions src/Activations/ActivationRepositoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
* bundled with this package in the LICENSE file.
*
* @package Sentinel
* @version 7.0.0
* @version 8.0.0
* @author Cartalyst LLC
* @license BSD License (3-clause)
* @copyright (c) 2011-2023, Cartalyst LLC
* @copyright (c) 2011-2024, Cartalyst LLC
* @link https://cartalyst.com
*/

Expand Down
4 changes: 2 additions & 2 deletions src/Activations/EloquentActivation.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
* bundled with this package in the LICENSE file.
*
* @package Sentinel
* @version 7.0.0
* @version 8.0.0
* @author Cartalyst LLC
* @license BSD License (3-clause)
* @copyright (c) 2011-2023, Cartalyst LLC
* @copyright (c) 2011-2024, Cartalyst LLC
* @link https://cartalyst.com
*/

Expand Down
4 changes: 2 additions & 2 deletions src/Activations/IlluminateActivationRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
* bundled with this package in the LICENSE file.
*
* @package Sentinel
* @version 7.0.0
* @version 8.0.0
* @author Cartalyst LLC
* @license BSD License (3-clause)
* @copyright (c) 2011-2023, Cartalyst LLC
* @copyright (c) 2011-2024, Cartalyst LLC
* @link https://cartalyst.com
*/

Expand Down
4 changes: 2 additions & 2 deletions src/Checkpoints/ActivationCheckpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
* bundled with this package in the LICENSE file.
*
* @package Sentinel
* @version 7.0.0
* @version 8.0.0
* @author Cartalyst LLC
* @license BSD License (3-clause)
* @copyright (c) 2011-2023, Cartalyst LLC
* @copyright (c) 2011-2024, Cartalyst LLC
* @link https://cartalyst.com
*/

Expand Down
4 changes: 2 additions & 2 deletions src/Checkpoints/AuthenticatedCheckpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
* bundled with this package in the LICENSE file.
*
* @package Sentinel
* @version 7.0.0
* @version 8.0.0
* @author Cartalyst LLC
* @license BSD License (3-clause)
* @copyright (c) 2011-2023, Cartalyst LLC
* @copyright (c) 2011-2024, Cartalyst LLC
* @link https://cartalyst.com
*/

Expand Down
4 changes: 2 additions & 2 deletions src/Checkpoints/CheckpointInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
* bundled with this package in the LICENSE file.
*
* @package Sentinel
* @version 7.0.0
* @version 8.0.0
* @author Cartalyst LLC
* @license BSD License (3-clause)
* @copyright (c) 2011-2023, Cartalyst LLC
* @copyright (c) 2011-2024, Cartalyst LLC
* @link https://cartalyst.com
*/

Expand Down
4 changes: 2 additions & 2 deletions src/Checkpoints/NotActivatedException.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
* bundled with this package in the LICENSE file.
*
* @package Sentinel
* @version 7.0.0
* @version 8.0.0
* @author Cartalyst LLC
* @license BSD License (3-clause)
* @copyright (c) 2011-2023, Cartalyst LLC
* @copyright (c) 2011-2024, Cartalyst LLC
* @link https://cartalyst.com
*/

Expand Down
4 changes: 2 additions & 2 deletions src/Checkpoints/ThrottleCheckpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
* bundled with this package in the LICENSE file.
*
* @package Sentinel
* @version 7.0.0
* @version 8.0.0
* @author Cartalyst LLC
* @license BSD License (3-clause)
* @copyright (c) 2011-2023, Cartalyst LLC
* @copyright (c) 2011-2024, Cartalyst LLC
* @link https://cartalyst.com
*/

Expand Down
4 changes: 2 additions & 2 deletions src/Checkpoints/ThrottlingException.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
* bundled with this package in the LICENSE file.
*
* @package Sentinel
* @version 7.0.0
* @version 8.0.0
* @author Cartalyst LLC
* @license BSD License (3-clause)
* @copyright (c) 2011-2023, Cartalyst LLC
* @copyright (c) 2011-2024, Cartalyst LLC
* @link https://cartalyst.com
*/

Expand Down
4 changes: 2 additions & 2 deletions src/Cookies/CookieInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
* bundled with this package in the LICENSE file.
*
* @package Sentinel
* @version 7.0.0
* @version 8.0.0
* @author Cartalyst LLC
* @license BSD License (3-clause)
* @copyright (c) 2011-2023, Cartalyst LLC
* @copyright (c) 2011-2024, Cartalyst LLC
* @link https://cartalyst.com
*/

Expand Down
4 changes: 2 additions & 2 deletions src/Cookies/IlluminateCookie.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
* bundled with this package in the LICENSE file.
*
* @package Sentinel
* @version 7.0.0
* @version 8.0.0
* @author Cartalyst LLC
* @license BSD License (3-clause)
* @copyright (c) 2011-2023, Cartalyst LLC
* @copyright (c) 2011-2024, Cartalyst LLC
* @link https://cartalyst.com
*/

Expand Down
4 changes: 2 additions & 2 deletions src/Cookies/NativeCookie.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
* bundled with this package in the LICENSE file.
*
* @package Sentinel
* @version 7.0.0
* @version 8.0.0
* @author Cartalyst LLC
* @license BSD License (3-clause)
* @copyright (c) 2011-2023, Cartalyst LLC
* @copyright (c) 2011-2024, Cartalyst LLC
* @link https://cartalyst.com
*/

Expand Down
4 changes: 2 additions & 2 deletions src/Cookies/NullCookie.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
* bundled with this package in the LICENSE file.
*
* @package Sentinel
* @version 7.0.0
* @version 8.0.0
* @author Cartalyst LLC
* @license BSD License (3-clause)
* @copyright (c) 2011-2023, Cartalyst LLC
* @copyright (c) 2011-2024, Cartalyst LLC
* @link https://cartalyst.com
*/

Expand Down
4 changes: 2 additions & 2 deletions src/Hashing/BcryptHasher.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
* bundled with this package in the LICENSE file.
*
* @package Sentinel
* @version 7.0.0
* @version 8.0.0
* @author Cartalyst LLC
* @license BSD License (3-clause)
* @copyright (c) 2011-2023, Cartalyst LLC
* @copyright (c) 2011-2024, Cartalyst LLC
* @link https://cartalyst.com
*/

Expand Down
4 changes: 2 additions & 2 deletions src/Hashing/CallbackHasher.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
* bundled with this package in the LICENSE file.
*
* @package Sentinel
* @version 7.0.0
* @version 8.0.0
* @author Cartalyst LLC
* @license BSD License (3-clause)
* @copyright (c) 2011-2023, Cartalyst LLC
* @copyright (c) 2011-2024, Cartalyst LLC
* @link https://cartalyst.com
*/

Expand Down
4 changes: 2 additions & 2 deletions src/Hashing/Hasher.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
* bundled with this package in the LICENSE file.
*
* @package Sentinel
* @version 7.0.0
* @version 8.0.0
* @author Cartalyst LLC
* @license BSD License (3-clause)
* @copyright (c) 2011-2023, Cartalyst LLC
* @copyright (c) 2011-2024, Cartalyst LLC
* @link https://cartalyst.com
*/

Expand Down
4 changes: 2 additions & 2 deletions src/Hashing/HasherInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
* bundled with this package in the LICENSE file.
*
* @package Sentinel
* @version 7.0.0
* @version 8.0.0
* @author Cartalyst LLC
* @license BSD License (3-clause)
* @copyright (c) 2011-2023, Cartalyst LLC
* @copyright (c) 2011-2024, Cartalyst LLC
* @link https://cartalyst.com
*/

Expand Down
Loading

0 comments on commit b7cc4a4

Please sign in to comment.