Skip to content

Commit

Permalink
Drop old PHP and Laravel versions
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-helldar committed Mar 12, 2024
1 parent 90b8a4b commit 1ca64af
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 61 deletions.
36 changes: 3 additions & 33 deletions .github/workflows/laravel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,42 +9,12 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [ "7.3", "7.4", "8.0", "8.1", "8.2", "8.3" ]
laravel: [ "6.0", "7.0", "8.0", "9.0", "10.0" ]
php: [ "8.1", "8.2", "8.3" ]
laravel: [ "10.0", "11.0" ]
exclude:
- laravel: "6.0"
- laravel: "11.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: "10.0"
php: "7.3"

- laravel: "10.0"
php: "7.4"

- laravel: "10.0"
php: "8.0"


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

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

### Compatibility

| PHP | Laravel | Json Response |
|------------------------------|--------------------------|---------------|
| 7.3, 7.4, 8.0, 8.1, 8.2, 8.3 | 6.x, 7.x, 8.x, 9.x, 10.x | `^2.0` |
| 8.1, 8.2, 8.3 | 10.x, 11.x | `^3.0` |


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

```bash
Expand All @@ -23,7 +31,7 @@ Or manually update `require` block of `composer.json` and run `composer update`.
```json
{
"require": {
"dragon-code/laravel-json-response": "^2.0"
"dragon-code/laravel-json-response": "^3.0"
}
}
```
Expand Down
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,21 @@
}
],
"require": {
"php": "^7.3 || ^8.0",
"illuminate/contracts": ">=6.0 <11.0",
"illuminate/http": ">=6.0 <11.0",
"illuminate/support": ">=6.0 <11.0",
"php": "^8.1",
"illuminate/contracts": "^10.0 || ^11.0",
"illuminate/http": "^10.0 || ^11.0",
"illuminate/support": "^10.0 || ^11.0",
"lmc/http-constants": "^1.2",
"symfony/http-foundation": "^4.3 || ^5.0 || ^6.0"
"symfony/http-foundation": "^6.0 || ^7.0"
},
"require-dev": {
"orchestra/testbench": ">=4.0 <9.0",
"phpunit/phpunit": "^9.6"
"orchestra/testbench": "^10.0 || ^11.0",
"phpunit/phpunit": "^11.0"
},
"conflict": {
"andrey-helldar/laravel-json-response": "*"
},
"minimum-stability": "stable",
"minimum-stability": "dev",
"prefer-stable": true,
"autoload": {
"psr-4": {
Expand Down
30 changes: 11 additions & 19 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,23 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnError="false"
stopOnFailure="false"
verbose="true"
<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>
<coverage>
<report>
<clover outputFile="build/logs/clover.xml"/>
<html outputDirectory="build/logs/coverage"/>
Expand All @@ -29,7 +16,12 @@
</php>
<testsuites>
<testsuite name="Test Suite">
<directory suffix="Test.php">./tests</directory>
<directory>./tests</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory>./src</directory>
</include>
</source>
</phpunit>

0 comments on commit 1ca64af

Please sign in to comment.