Skip to content

Commit

Permalink
Merge pull request #73 from TheDragonCode/3.x
Browse files Browse the repository at this point in the history
Added Laravel 11 support
  • Loading branch information
andrey-helldar authored Mar 13, 2024
2 parents a0349ee + 4495ad7 commit c0c0555
Show file tree
Hide file tree
Showing 25 changed files with 102 additions and 127 deletions.
27 changes: 24 additions & 3 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,36 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [ "7.3", "7.4", "8.0", "8.1", "8.2" ]
laravel: [ "6.0", "7.0", "8.0", "9.0", "10.0" ]
php: [ "7.3", "7.4", "8.0", "8.1", "8.2", "8.3" ]
laravel: [ "6.0", "7.0", "8.0", "9.0", "10.0", "11.0" ]
exclude:
- laravel: "6.0"
php: "8.1"

- laravel: "6.0"
php: "8.2"

- laravel: "6.0"
php: "8.3"

- laravel: "7.0"
php: "8.1"

- laravel: "7.0"
php: "8.2"

- laravel: "7.0"
php: "8.3"

- laravel: "9.0"
php: "7.3"

- laravel: "9.0"
php: "7.4"

- laravel: "9.0"
php: "8.3"

- laravel: "10.0"
php: "7.3"

Expand All @@ -39,6 +48,18 @@ jobs:
- laravel: "10.0"
php: "8.0"

- laravel: "11.0"
php: "7.3"

- laravel: "11.0"
php: "7.4"

- laravel: "11.0"
php: "8.0"

- laravel: "11.0"
php: "8.1"

name: PHP ${{ matrix.php }}, Laravel ${{ matrix.laravel }}

steps:
Expand All @@ -50,7 +71,7 @@ jobs:
with:
php-version: ${{ matrix.php }}
extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv
coverage: none
coverage: xdebug

- name: Install dependencies
run: composer require --dev laravel/framework:^${{ matrix.laravel }}
Expand Down
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,16 @@
"dragon-code/laravel-routes-core": "^4.1 || ^5.0",
"dragon-code/laravel-support": "^3.3",
"dragon-code/support": "^5.6 || ^6.1",
"illuminate/contracts": ">=6.0 <11.0",
"illuminate/http": ">=6.0 <11.0",
"illuminate/routing": ">=6.0 <11.0",
"illuminate/support": ">=6.0 <11.0",
"illuminate/view": ">=6.0 <11.0"
"illuminate/contracts": ">=6.0 <12.0",
"illuminate/http": ">=6.0 <12.0",
"illuminate/routing": ">=6.0 <12.0",
"illuminate/support": ">=6.0 <12.0",
"illuminate/view": ">=6.0 <12.0"
},
"require-dev": {
"mockery/mockery": "^1.0",
"orchestra/testbench": ">=4.0 <9.0",
"phpunit/phpunit": "^8.0 || ^9.6"
"orchestra/testbench": ">=4.0 <10.0",
"phpunit/phpunit": "^8.0 || ^9.6 || ^10.0"
},
"conflict": {
"garygreen/pretty-routes": "*"
Expand Down
8 changes: 3 additions & 5 deletions config/pretty-routes.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
<?php
/*
/**
* This file is part of the "dragon-code/pretty-routes" project.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author Andrey Helldar <helldar@ai-rus.com>
*
* @copyright 2021 Andrey Helldar
*
* @author Andrey Helldar <helldar@dragon-code.pro>
* @copyright 2024 Andrey Helldar
* @license MIT
*
* @see https://github.com/TheDragonCode/pretty-routes
Expand Down
8 changes: 3 additions & 5 deletions phpunit.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
<?php
/*
/**
* This file is part of the "dragon-code/pretty-routes" project.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author Andrey Helldar <helldar@ai-rus.com>
*
* @copyright 2021 Andrey Helldar
*
* @author Andrey Helldar <helldar@dragon-code.pro>
* @copyright 2024 Andrey Helldar
* @license MIT
*
* @see https://github.com/TheDragonCode/pretty-routes
Expand Down
12 changes: 5 additions & 7 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
<!--~
~ This file is part of the "dragon-code/pretty-routes" project.
~
~ For the full copyright and license information, please view the LICENSE
~ file that was distributed with this source code.
~
~ @author Andrey Helldar <helldar@ai-rus.com>
~
~ @copyright 2021 Andrey Helldar
~
~ @author Andrey Helldar <helldar@dragon-code.pro>
~ @copyright 2024 Andrey Helldar
~ @license MIT
~
~ @see https://github.com/TheDragonCode/pretty-routes
Expand All @@ -21,8 +19,8 @@
bootstrap="phpunit.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
convertNoticesToExceptions="false"
convertWarningsToExceptions="false"
processIsolation="false"
stopOnError="false"
stopOnFailure="false"
Expand Down
8 changes: 3 additions & 5 deletions resources/lang/en/info.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
<?php
/*
/**
* This file is part of the "dragon-code/pretty-routes" project.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author Andrey Helldar <helldar@ai-rus.com>
*
* @copyright 2021 Andrey Helldar
*
* @author Andrey Helldar <helldar@dragon-code.pro>
* @copyright 2024 Andrey Helldar
* @license MIT
*
* @see https://github.com/TheDragonCode/pretty-routes
Expand Down
8 changes: 3 additions & 5 deletions resources/lang/es/info.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
<?php
/*
/**
* This file is part of the "dragon-code/pretty-routes" project.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author Andrey Helldar <helldar@ai-rus.com>
*
* @copyright 2021 Andrey Helldar
*
* @author Andrey Helldar <helldar@dragon-code.pro>
* @copyright 2024 Andrey Helldar
* @license MIT
*
* @see https://github.com/TheDragonCode/pretty-routes
Expand Down
8 changes: 3 additions & 5 deletions resources/lang/fr/info.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
<?php
/*
/**
* This file is part of the "dragon-code/pretty-routes" project.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author Andrey Helldar <helldar@ai-rus.com>
*
* @copyright 2021 Andrey Helldar
*
* @author Andrey Helldar <helldar@dragon-code.pro>
* @copyright 2024 Andrey Helldar
* @license MIT
*
* @see https://github.com/TheDragonCode/pretty-routes
Expand Down
8 changes: 3 additions & 5 deletions resources/lang/ru/info.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
<?php
/*
/**
* This file is part of the "dragon-code/pretty-routes" project.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author Andrey Helldar <helldar@ai-rus.com>
*
* @copyright 2021 Andrey Helldar
*
* @author Andrey Helldar <helldar@dragon-code.pro>
* @copyright 2024 Andrey Helldar
* @license MIT
*
* @see https://github.com/TheDragonCode/pretty-routes
Expand Down
8 changes: 3 additions & 5 deletions resources/lang/tr/info.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
<?php
/*
/**
* This file is part of the "dragon-code/pretty-routes" project.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author Andrey Helldar <helldar@ai-rus.com>
*
* @copyright 2021 Andrey Helldar
*
* @author Andrey Helldar <helldar@dragon-code.pro>
* @copyright 2024 Andrey Helldar
* @license MIT
*
* @see https://github.com/TheDragonCode/pretty-routes
Expand Down
8 changes: 3 additions & 5 deletions routes/laravel.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
<?php
/*
/**
* This file is part of the "dragon-code/pretty-routes" project.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author Andrey Helldar <helldar@ai-rus.com>
*
* @copyright 2021 Andrey Helldar
*
* @author Andrey Helldar <helldar@dragon-code.pro>
* @copyright 2024 Andrey Helldar
* @license MIT
*
* @see https://github.com/TheDragonCode/pretty-routes
Expand Down
8 changes: 3 additions & 5 deletions routes/lumen.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
<?php
/*
/**
* This file is part of the "dragon-code/pretty-routes" project.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author Andrey Helldar <helldar@ai-rus.com>
*
* @copyright 2021 Andrey Helldar
*
* @author Andrey Helldar <helldar@dragon-code.pro>
* @copyright 2024 Andrey Helldar
* @license MIT
*
* @see https://github.com/TheDragonCode/pretty-routes
Expand Down
8 changes: 3 additions & 5 deletions src/Facades/Cache.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
<?php
/*
/**
* This file is part of the "dragon-code/pretty-routes" project.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author Andrey Helldar <helldar@ai-rus.com>
*
* @copyright 2021 Andrey Helldar
*
* @author Andrey Helldar <helldar@dragon-code.pro>
* @copyright 2024 Andrey Helldar
* @license MIT
*
* @see https://github.com/TheDragonCode/pretty-routes
Expand Down
8 changes: 3 additions & 5 deletions src/Facades/Trans.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
<?php
/*
/**
* This file is part of the "dragon-code/pretty-routes" project.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author Andrey Helldar <helldar@ai-rus.com>
*
* @copyright 2021 Andrey Helldar
*
* @author Andrey Helldar <helldar@dragon-code.pro>
* @copyright 2024 Andrey Helldar
* @license MIT
*
* @see https://github.com/TheDragonCode/pretty-routes
Expand Down
8 changes: 3 additions & 5 deletions src/Http/PrettyRoutesController.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
<?php
/*
/**
* This file is part of the "dragon-code/pretty-routes" project.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author Andrey Helldar <helldar@ai-rus.com>
*
* @copyright 2021 Andrey Helldar
*
* @author Andrey Helldar <helldar@dragon-code.pro>
* @copyright 2024 Andrey Helldar
* @license MIT
*
* @see https://github.com/TheDragonCode/pretty-routes
Expand Down
8 changes: 3 additions & 5 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
<?php
/*
/**
* This file is part of the "dragon-code/pretty-routes" project.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author Andrey Helldar <helldar@ai-rus.com>
*
* @copyright 2021 Andrey Helldar
*
* @author Andrey Helldar <helldar@dragon-code.pro>
* @copyright 2024 Andrey Helldar
* @license MIT
*
* @see https://github.com/TheDragonCode/pretty-routes
Expand Down
8 changes: 3 additions & 5 deletions src/Support/Cache.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
<?php
/*
/**
* This file is part of the "dragon-code/pretty-routes" project.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author Andrey Helldar <helldar@ai-rus.com>
*
* @copyright 2021 Andrey Helldar
*
* @author Andrey Helldar <helldar@dragon-code.pro>
* @copyright 2024 Andrey Helldar
* @license MIT
*
* @see https://github.com/TheDragonCode/pretty-routes
Expand Down
8 changes: 3 additions & 5 deletions src/Support/Config.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
<?php
/*
/**
* This file is part of the "dragon-code/pretty-routes" project.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author Andrey Helldar <helldar@ai-rus.com>
*
* @copyright 2021 Andrey Helldar
*
* @author Andrey Helldar <helldar@dragon-code.pro>
* @copyright 2024 Andrey Helldar
* @license MIT
*
* @see https://github.com/TheDragonCode/pretty-routes
Expand Down
Loading

0 comments on commit c0c0555

Please sign in to comment.