diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml new file mode 100644 index 0000000..5d0a7e7 --- /dev/null +++ b/.github/workflows/php.yml @@ -0,0 +1,50 @@ +name: Laravel Trailing Slash + +on: + push: + branches: [ main ] + + pull_request: + branches: [ main ] + +jobs: + run: + + runs-on: ubuntu-latest + strategy: + matrix: + php-versions: [ '8.2', '8.3', '8.4' ] + + name: PHP ${{ matrix.php-versions }} + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Install PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-versions }} + + - name: Check PHP Version + run: php -v + + - name: Validate composer.json and composer.lock files + run: composer validate --strict + + - name: Cache Composer packages + id: composer-cache + uses: actions/cache@v2 + with: + path: vendor + key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} + restore-keys: | + ${{ runner.os }}-php- + + - name: Install Composer dependencies + run: composer install --prefer-dist --no-progress + + - name: Run PHPlint + run: vendor/bin/phplint + + - name: Run PHPunit tests + run: vendor/bin/phpunit \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index db93df9..9edb0b1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,15 @@ # CHANGELOG + +## v6.0.0 (2025-01-28) + +### Added +- Added support for Laravel 11.x version + ## v5.0.0 (2023-03-20) ### Added - Added support for Laravel 10.x version -- + ## v4.0.0 (2022-06-21) ### Added diff --git a/README.md b/README.md index a4b3dc0..c3d4c3b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Laravel Trailing Slash -Adds url formatting and redirection with trailing slash to Laravel framework versions 10.x, 9.x, 8.x, 7.x, 6.x and 5.x. +Adds url formatting and redirection with trailing slash to Laravel framework versions 11.x, 10.x, 9.x, 8.x, 7.x, 6.x and 5.x. [![Build For Laravel](https://img.shields.io/badge/Built_for-Laravel-orange.svg)](https://styleci.io/repos/79834672) [![Latest Stable Version](https://poser.pugx.org/fsasvari/laravel-trailing-slash/v/stable)](https://packagist.org/packages/fsasvari/laravel-trailing-slash) @@ -12,6 +12,7 @@ Adds url formatting and redirection with trailing slash to Laravel framework ver | Laravel Trailing Slash | Laravel | PHP | |-----------------------------------------------------------------------|---------|-----------| +| [6.x](https://github.com/fsasvari/laravel-trailing-slash/tree/v6.0.0) | 11.x | 8.2+ | | [5.x](https://github.com/fsasvari/laravel-trailing-slash/tree/v5.0.0) | 10.x | 8.1+ | | [4.x](https://github.com/fsasvari/laravel-trailing-slash/tree/v4.0.0) | 9.x | 8.0.2+ | | [3.x](https://github.com/fsasvari/laravel-trailing-slash/tree/v3.0.0) | 8.x | 7.3+/8.0+ | @@ -46,7 +47,7 @@ After installing the Laravel Trailing Slash library, register the `LaravelTraili // Application Service Providers... // ... - // Other Service Providers... + // Package Service Providers... LaravelTrailingSlash\RoutingServiceProvider::class, // ... ], @@ -115,7 +116,7 @@ $texts->links(); ## Licence -MIT Licence. Refer to the [LICENSE](https://github.com/fsasvari/laravel-trailing-slash/blob/master/LICENSE.md) file to get more info. +MIT Licence. Refer to the [LICENSE](https://github.com/fsasvari/laravel-trailing-slash/blob/main/LICENSE.md) file to get more info. ## Author diff --git a/composer.json b/composer.json index 0769fa8..ea71cc3 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,14 @@ { "name": "fsasvari/laravel-trailing-slash", "description": "The package that adds redirection with trailing slash to Laravel framework.", - "keywords": ["redirect", "laravel", "php"], + "keywords": [ + "redirect", + "url", + "uri", + "router", + "laravel", + "php" + ], "license": "MIT", "homepage": "https://github.com/fsasvari/laravel-trailing-slash", "authors": [ @@ -11,13 +18,13 @@ } ], "require": { - "php": "^8.1", - "illuminate/routing": "^10.0" + "php": "^8.2", + "illuminate/routing": "^11.0" }, "require-dev": { - "mockery/mockery": "^1.5", - "overtrue/phplint": "^5.5", - "phpunit/phpunit": "^10.0" + "mockery/mockery": "^1.6", + "overtrue/phplint": "^9.5", + "phpunit/phpunit": "^11.0" }, "autoload": { "psr-4": {