Skip to content

Commit

Permalink
Merge pull request #32 from TheDragonCode/4.x
Browse files Browse the repository at this point in the history
Drop old Laravel and PHP versions support
  • Loading branch information
andrey-helldar authored Mar 12, 2024
2 parents 9dd5258 + 871751a commit 804db7b
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 81 deletions.
27 changes: 3 additions & 24 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,12 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [ "7.3", "7.4", "8.0", "8.1", "8.2" ]
laravel: [ "7.0", "8.0", "9.0", "10.0" ]
php: [ "8.1", "8.2", "8.3" ]
laravel: [ "10.0", "11.0" ]
exclude:
- laravel: "7.0"
- laravel: "11.0"
php: "8.1"

- laravel: "7.0"
php: "8.2"

- laravel: "8.0"
php: "7.3"

- laravel: "9.0"
php: "7.3"

- laravel: "9.0"
php: "7.4"

- laravel: "10.0"
php: "7.3"

- laravel: "10.0"
php: "7.4"

- laravel: "10.0"
php: "8.0"

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

steps:
Expand Down
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@

## Installation

### Compatibility

| Laravel | PHP | Extended Routes Version |
|-------------|-------------------------|-------------------------|
| 7, 8, 9, 10 | 7.3, 7.4, 8.0, 8.1, 8.2 | `^3.0` |
| 10, 11 | 8.1, 8.2, 8.3 | `^4.0` |


To get the latest version of `Extended Routes`, simply require the project using [Composer](https://getcomposer.org):

```bash
Expand All @@ -24,7 +32,7 @@ Instead, you may of course manually update your require block and run `composer
```json
{
"require": {
"dragon-code/extended-routes": "^3.1"
"dragon-code/extended-routes": "^4.0"
}
}
```
Expand Down
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,16 @@
}
],
"require": {
"php": "^7.3 || ^8.0",
"illuminate/database": "^7.0 || ^8.0 || ^9.0 || ^10.0",
"illuminate/routing": "^7.0 || ^8.0 || ^9.0 || ^10.0",
"illuminate/support": "^7.0 || ^8.0 || ^9.0 || ^10.0"
"php": "^8.1",
"illuminate/database": "^10.0 || ^11.0",
"illuminate/routing": "^10.0 || ^11.0",
"illuminate/support": "^10.0 || ^11.0"
},
"require-dev": {
"orchestra/testbench": "^5.0 || ^6.0 || ^7.0 || ^8.0",
"phpunit/phpunit": "^9.6"
"orchestra/testbench": "^8.0 || ^9.0",
"phpunit/phpunit": "^11.0"
},
"minimum-stability": "stable",
"minimum-stability": "dev",
"prefer-stable": true,
"autoload": {
"psr-4": {
Expand Down
28 changes: 0 additions & 28 deletions phpunit.php

This file was deleted.

36 changes: 15 additions & 21 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,25 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
backupGlobals="false"
backupStaticAttributes="false"
bootstrap="phpunit.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnError="false"
stopOnFailure="false"
verbose="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
cacheDirectory=".phpunit.cache"
>
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">./src</directory>
</include>
<exclude>
<file>src/ServiceProvider.php</file>
</exclude>
<coverage>
<report>
<clover outputFile="build/logs/clover.xml"/>
<html outputDirectory="build/logs/coverage"/>
Expand All @@ -33,7 +19,15 @@
</php>
<testsuites>
<testsuite name="Test Suite">
<directory suffix="Test.php">./tests</directory>
<directory>./tests</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory>./src</directory>
</include>
<exclude>
<file>src/ServiceProvider.php</file>
</exclude>
</source>
</phpunit>

0 comments on commit 804db7b

Please sign in to comment.