Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
d6f5ce1
dep: update to php 8.2
MitchBred Mar 26, 2024
c5b4f34
Bump overtrue/phplint from 9.1 to 9.2
dependabot[bot] May 6, 2024
9ecdf04
Merge pull request #25 from MitchBred/dependabot/github_actions/overt…
MitchBred May 7, 2024
686ab50
Bump overtrue/phplint from 9.2 to 9.3
dependabot[bot] May 20, 2024
bf2bd2c
Merge pull request #24 from MitchBred/laravel-11
MitchBred Jul 8, 2024
4feabb1
Merge pull request #26 from MitchBred/dependabot/github_actions/overt…
MitchBred Jul 8, 2024
4a18dca
dep: update
MitchBred Jul 8, 2024
8f665fd
Merge pull request #32 from MitchBred/laravel-11
MitchBred Jul 8, 2024
683cae1
Bump brick/math from 0.11.0 to 0.12.1
dependabot[bot] Jul 8, 2024
5a83597
Bump overtrue/phplint from 9.3 to 9.4
dependabot[bot] Jul 8, 2024
f04b0fc
Merge pull request #34 from MitchBred/dependabot/github_actions/overt…
MitchBred Jul 8, 2024
c5cc394
Merge pull request #33 from MitchBred/dependabot/composer/brick/math-…
MitchBred Jul 8, 2024
5dadfd7
Bump nikic/php-parser from 5.1.0 to 5.3.1
dependabot[bot] Oct 14, 2024
3256c1e
Bump overtrue/phplint from 9.4 to 9.5
dependabot[bot] Oct 14, 2024
9e59e1c
Merge pull request #38 from MitchBred/dependabot/github_actions/overt…
MitchBred Oct 23, 2024
29af3a7
Merge pull request #37 from MitchBred/dependabot/composer/nikic/php-p…
MitchBred Oct 23, 2024
a877cf1
Bump voku/portable-ascii from 2.0.1 to 2.0.3
dependabot[bot] Nov 25, 2024
3061fff
Bump nikic/php-parser from 5.3.1 to 5.4.0
dependabot[bot] Jan 6, 2025
de78cb1
Merge pull request #40 from MitchBred/dependabot/composer/nikic/php-p…
MitchBred Feb 9, 2025
6c30a4a
Merge pull request #39 from MitchBred/dependabot/composer/voku/portab…
MitchBred Feb 9, 2025
32ec306
Update Entrust class and add unit tests for EntrustUser
MitchBred Feb 9, 2025
bbf688e
Update composer.json dependencies
MitchBred Feb 9, 2025
51dcbc4
Update composer.json dependencies
MitchBred Feb 9, 2025
9f3848c
chore: composer update
MitchBred Feb 9, 2025
e77d2ce
chore: composer update
MitchBred Nov 19, 2025
7936d36
Update composer.json dependencies for PHP 8.4 and Laravel 12
MitchBred Nov 19, 2025
3d9cbc0
Remove unused dependencies from composer.json
MitchBred Dec 2, 2025
0b31f00
Rename 'can' method to 'cans' for consistency and update related tests
MitchBred May 19, 2026
0c87aed
Refactor tests to use 'cans' method and update PHPUnit configuration
MitchBred May 19, 2026
bc31f34
Bump actions/dependency-review-action from 4 to 5
dependabot[bot] May 25, 2026
b79cf7e
Bump overtrue/phplint from 9.5 to 9.8
dependabot[bot] May 25, 2026
abcac7f
Bump actions/checkout from 4 to 7
dependabot[bot] Jun 22, 2026
7e64cec
Bump actions/cache from 4 to 6
dependabot[bot] Jun 29, 2026
ecc48e7
fix: verwijder brick/math uit require
MitchBred Aug 6, 2026
2d8c5c0
Merge pull request #65 from MitchBred/fix/drop-brick-math-pin
MitchBred Aug 6, 2026
a907e8c
Merge pull request #64 from MitchBred/dependabot/github_actions/actio…
MitchBred Aug 6, 2026
cf8da9c
Merge pull request #63 from MitchBred/dependabot/github_actions/actio…
MitchBred Aug 6, 2026
e06c098
Merge pull request #59 from MitchBred/dependabot/github_actions/actio…
MitchBred Aug 6, 2026
a25d898
Merge pull request #60 from MitchBred/dependabot/github_actions/overt…
MitchBred Aug 6, 2026
84e348f
chore: maak het pakket aantoonbaar Laravel 13 proof
MitchBred Aug 6, 2026
7e795ce
ci: laat de matrix ook draaien voor PR's vanaf een andere base
MitchBred Aug 6, 2026
37df5c1
Merge pull request #66 from MitchBred/chore/laravel-13-proof
MitchBred Aug 6, 2026
54b95b3
fix: scope het lint-script tot de eigen bronbestanden
MitchBred Aug 6, 2026
60803b9
ci: lint via het composer-script in plaats van de phplint action
MitchBred Aug 6, 2026
6a84cfc
Merge pull request #67 from MitchBred/ci/lint-via-composer
MitchBred Aug 6, 2026
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
4 changes: 2 additions & 2 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v4
uses: actions/checkout@v7
- name: 'Dependency Review'
uses: actions/dependency-review-action@v4
uses: actions/dependency-review-action@v5
25 changes: 18 additions & 7 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,25 @@
name: CI

on: push
on:
push:
branches: [ main ]
pull_request:

jobs:
build:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Checking PHP syntax error
uses: overtrue/phplint@9.1
uses: actions/checkout@v7

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
path: .
options: --exclude=*.log
php-version: '8.4'
coverage: none

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-interaction

- name: Checking PHP syntax error
run: composer run-script lint
52 changes: 37 additions & 15 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,57 @@ name: PHP Composer

on:
push:
branches: [ master ]
branches: [ main ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
laravel: [ '^12.0', '^13.0' ]

name: Laravel ${{ matrix.laravel }}

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
coverage: none

- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Validate composer.json
run: composer validate --strict --no-check-lock

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v4
uses: actions/cache@v6
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
key: ${{ runner.os }}-php-${{ matrix.laravel }}-${{ hashFiles('**/composer.json') }}
restore-keys: |
${{ runner.os }}-php-
${{ runner.os }}-php-${{ matrix.laravel }}-

- name: Pin Laravel version
run: |
composer require --no-update --no-interaction \
"illuminate/cache:${{ matrix.laravel }}" \
"illuminate/console:${{ matrix.laravel }}" \
"illuminate/contracts:${{ matrix.laravel }}" \
"illuminate/database:${{ matrix.laravel }}" \
"illuminate/filesystem:${{ matrix.laravel }}" \
"illuminate/http:${{ matrix.laravel }}" \
"illuminate/support:${{ matrix.laravel }}" \
"illuminate/view:${{ matrix.laravel }}"

- name: Install dependencies
run: composer install --prefer-dist --no-progress
run: composer update --prefer-dist --no-progress --no-interaction

# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
# Docs: https://getcomposer.org/doc/articles/scripts.md
- name: Show resolved Laravel version
run: composer show illuminate/support | head -3

# - name: Run test suite
# run: composer run-script test
- name: Run test suite
run: composer run-script test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Thumbs.db
.env.*.php
.env.php
.phpunit.result.cache
.phplint.cache/

# sublime phpintel plugin
/.phpintel
167 changes: 54 additions & 113 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,116 +1,57 @@
{
"name": "mitchbred/entrust",
"description": "This package provides a flexible way to add role-based permissions to Laravel and is a fork from Zizaco/entrust",
"type": "library",
"license": "MIT",
"minimum-stability": "dev",
"prefer-stable": false,
"require": {
"php": "^8.1",
"doctrine/inflector": "^2.0.8",
"illuminate/bus": "^10.0.0",
"illuminate/cache": "^10.0.0",
"illuminate/collections": "^10.0.0",
"illuminate/conditionable": "^10.0.0",
"illuminate/console": "^10.0.0",
"illuminate/container": "^10.0.0",
"illuminate/contracts": "^10.0.0",
"illuminate/events": "^10.0.0",
"illuminate/filesystem": "^10.0.0",
"illuminate/macroable": "^10.0.0",
"illuminate/pipeline": "^10.0.0",
"illuminate/support": "^10.0.0",
"illuminate/view": "^10.0.0",
"laravel/prompts": "^0.1.13",
"nesbot/carbon": "^2.71.0",
"nunomaduro/termwind": "^1.15.1",
"psr/clock": "^1.0.0",
"psr/container": "^2.0.2",
"psr/simple-cache": "^3.0.0",
"symfony/console": "^6.3.4",
"symfony/deprecation-contracts": "^3.3.0",
"symfony/finder": "^6.3.0",
"symfony/polyfill-ctype": "^1.0.0",
"symfony/polyfill-intl-grapheme": "^1.0.0",
"symfony/polyfill-intl-normalizer": "^1.0.0",
"symfony/polyfill-mbstring": "^1.0.0",
"symfony/polyfill-php80": "^1.0.0",
"symfony/process": "^6.3.0",
"symfony/service-contracts": "^3.3.0",
"symfony/string": "^6.3.0",
"symfony/translation": "^6.3.0",
"symfony/translation-contracts": "^3.3.0",
"voku/portable-ascii": "^2.0.1",
"brick/math": "^0.11.0",
"hamcrest/hamcrest-php": "^2.0.1",
"illuminate/database": "^10.0.0",
"myclabs/deep-copy": "^1.11.0",
"nikic/php-parser": "^4.17.0",
"phar-io/manifest": "^2.0.3",
"phar-io/version": "^3.2.1",
"psr/cache": "^3.0.0",
"psr/event-dispatcher": "^1.0.0",
"psr/log": "^3.0.0",
"sebastian/cli-parser": "^2.0.0",
"sebastian/code-unit": "^2.0.0",
"sebastian/code-unit-reverse-lookup": "^3.0.0",
"sebastian/comparator": "^5.0.0",
"sebastian/complexity": "^3.1.0",
"sebastian/diff": "^5.0.0",
"sebastian/environment": "^6.0.0",
"sebastian/exporter": "^5.1.0",
"sebastian/global-state": "^6.0.0",
"sebastian/lines-of-code": "^2.0.0",
"sebastian/object-enumerator": "^5.0.0",
"sebastian/object-reflector": "^3.0.0",
"sebastian/recursion-context": "^5.0.0",
"sebastian/type": "^4.0.0",
"sebastian/version": "^4.0.0",
"symfony/cache": "^6.3.0",
"symfony/cache-contracts": "^3.3.0",
"symfony/event-dispatcher": "^6.3.0",
"symfony/event-dispatcher-contracts": "^3.3.0",
"symfony/options-resolver": "^6.3.0",
"symfony/var-exporter": "^6.3.0",
"symfony/yaml": "^6.3.0",
"theseer/tokenizer": "^1.2.1"
},
"require-dev": {
"phpunit/phpunit": "^10.0",
"mockery/mockery": "^1.5.1",
"overtrue/phplint": "^9.0.3",
"phpunit/php-code-coverage": "dev-main",
"phpunit/php-file-iterator": "4.1.0",
"phpunit/php-invoker": "dev-main",
"phpunit/php-text-template": "dev-main",
"phpunit/php-timer": "dev-main"
},
"autoload": {
"classmap": [
"src/commands"
],
"psr-4": {
"Trebol\\Entrust\\": "src/Entrust/"
}
},
"extra":{
"laravel":{
"providers":[
"Trebol\\Entrust\\EntrustServiceProvider"
],
"aliases":{
"Entrust": "Trebol\\Entrust\\EntrustFacade"
}
}
},
"autoload-dev": {
"classmap": [
"tests/Middleware/MiddlewareTest.php"
]
},
"config": {
"platform": {
"php": "8.1"
}
"name": "mitchbred/entrust",
"description": "This package provides a flexible way to add role-based permissions to Laravel and is a fork from Zizaco/entrust",
"type": "library",
"license": "MIT",
"minimum-stability": "stable",
"prefer-stable": true,
"require": {
"php": "^8.4",
"illuminate/cache": "^12.0|^13.0",
"illuminate/console": "^12.0|^13.0",
"illuminate/contracts": "^12.0|^13.0",
"illuminate/database": "^12.0|^13.0",
"illuminate/filesystem": "^12.0|^13.0",
"illuminate/http": "^12.0|^13.0",
"illuminate/support": "^12.0|^13.0",
"illuminate/view": "^12.0|^13.0"
},
"require-dev": {
"mockery/mockery": "^1.6",
"overtrue/phplint": "^9.0.3",
"phpunit/phpunit": "^12.0",
"rector/rector": "^2.0"
},
"autoload": {
"classmap": [
"src/commands"
],
"psr-4": {
"Trebol\\Entrust\\": "src/Entrust/"
}
},
"extra": {
"laravel": {
"providers": [
"Trebol\\Entrust\\EntrustServiceProvider"
],
"aliases": {
"Entrust": "Trebol\\Entrust\\EntrustFacade"
}
}
},
"autoload-dev": {
"classmap": [
"tests/Middleware/MiddlewareTest.php"
]
},
"config": {
"platform": {
"php": "8.4"
}
},
"scripts": {
"test": "phpunit",
"lint": "phplint src tests rector.php"
}
}
Loading