Skip to content

Commit

Permalink
Update package to Laravel version 11.x
Browse files Browse the repository at this point in the history
  • Loading branch information
fsasvari committed Jan 28, 2025
1 parent 7b8eee1 commit bc5513e
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 10 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)
Expand All @@ -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+ |
Expand Down Expand Up @@ -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,
// ...
],
Expand Down Expand Up @@ -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

Expand Down
19 changes: 13 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand All @@ -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": {
Expand Down

0 comments on commit bc5513e

Please sign in to comment.