From 1ca64af26b4c624723ec10087dc2af4b93b91faf Mon Sep 17 00:00:00 2001 From: Andrey Helldar Date: Wed, 13 Mar 2024 00:15:18 +0300 Subject: [PATCH] Drop old PHP and Laravel versions --- .github/workflows/laravel.yml | 36 +++-------------------------------- README.md | 10 +++++++++- composer.json | 16 ++++++++-------- phpunit.xml | 30 +++++++++++------------------ 4 files changed, 31 insertions(+), 61 deletions(-) diff --git a/.github/workflows/laravel.yml b/.github/workflows/laravel.yml index 41e9537..3299a54 100644 --- a/.github/workflows/laravel.yml +++ b/.github/workflows/laravel.yml @@ -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 }} diff --git a/README.md b/README.md index dd1f3e8..61c20c0 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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" } } ``` diff --git a/composer.json b/composer.json index 12b0419..127de0a 100644 --- a/composer.json +++ b/composer.json @@ -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": { diff --git a/phpunit.xml b/phpunit.xml index 743c4e8..144c72f 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,23 +1,10 @@ - - - - ./src - + @@ -29,7 +16,12 @@ - ./tests + ./tests + + + ./src + +