Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Agents
fsasvari/laravel-trailing-slash
claude-code
cursor
php
url
router
redirect
uri
laravel

This repository is a lightweight, standalone Laravel package (fsasvari/laravel-trailing-slash) that provides automatic trailing slash redirection and URL formatting.

Install
php artisan boost:add-skill fsasvari/laravel-trailing-slash

Save this content to: AGENTS.md

# Agent Guidelines: Laravel Trailing Slash

This repository is a lightweight, standalone Laravel package (`fsasvari/laravel-trailing-slash`) that provides automatic trailing slash redirection and URL formatting.

## Architecture & Scope

* **Package Nature:** Standalone Composer library, not a full Laravel application (no `app/`, no `artisan` CLI).
* **Core Components:**
  * `src/UrlGenerator.php`: Extends `Illuminate\Routing\UrlGenerator` to append trailing slashes and handle signed URLs.
  * `src/RoutingServiceProvider.php`: Replaces Laravel's default `url` singleton with custom generator.
* **Auto-Discovery:** Registered under `extra.laravel.providers` in `composer.json`.

## Technical Requirements & Standards

* **PHP Support:** `^8.3`
* **Laravel Compatibility:** `^^13.0` (`illuminate/routing`, `illuminate/database`)
* **Strict Typing:** All PHP files must declare `declare(strict_types=1);`.
* **Code Style:** Laravel PER / PSR-12 standard enforced via **Laravel Pint**.
* **Static Analysis:** PHPStan level 9 (`phpstan.neon.dist`).

## Development & Testing Workflow

```bash
# Run unit test suite
vendor/bin/phpunit

# Check and fix code style
vendor/bin/pint --test  # check only
vendor/bin/pint         # auto-fix

# Run static analysis
vendor/bin/phpstan analyse

# Test lowest / stable dependency matrices
composer update --prefer-lowest
composer update --prefer-stable
```

Agent Guidelines: Laravel Trailing Slash

This repository is a lightweight, standalone Laravel package (fsasvari/laravel-trailing-slash) that provides automatic trailing slash redirection and URL formatting.

Architecture & Scope

  • Package Nature: Standalone Composer library, not a full Laravel application (no app/, no artisan CLI).
  • Core Components:
    • src/UrlGenerator.php: Extends Illuminate\Routing\UrlGenerator to append trailing slashes and handle signed URLs.
    • src/RoutingServiceProvider.php: Replaces Laravel's default url singleton with custom generator.
  • Auto-Discovery: Registered under extra.laravel.providers in composer.json.

Technical Requirements & Standards

  • PHP Support: ^8.3
  • Laravel Compatibility: ^^13.0 (illuminate/routing, illuminate/database)
  • Strict Typing: All PHP files must declare declare(strict_types=1);.
  • Code Style: Laravel PER / PSR-12 standard enforced via Laravel Pint.
  • Static Analysis: PHPStan level 9 (phpstan.neon.dist).

Development & Testing Workflow

# Run unit test suite
vendor/bin/phpunit

# Check and fix code style
vendor/bin/pint --test  # check only
vendor/bin/pint         # auto-fix

# Run static analysis
vendor/bin/phpstan analyse

# Test lowest / stable dependency matrices
composer update --prefer-lowest
composer update --prefer-stable
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
skyraptor/chatter
edlugz/sasapay
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource