inmanturbo / path-router
This is my package path-router
v1.0.3
2024-01-24 20:32 UTC
Requires
- php: ^8.1
- illuminate/contracts: *
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- larastan/larastan: ^2.8
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.8
- orchestra/testbench: ^8.0
- pestphp/pest: ^2.0
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
This package is auto-updated.
Last update: 2024-10-24 20:41:33 UTC
README
Installation
You can install the package via composer:
composer require inmanturbo/path-router
php artisan vendor:publish --tag="path-router-config"
This is the contents of the published config file:
return [ 'active' => env('PATH_ROUTER_ACTIVE', true), 'routes' => [ [ 'route_prefix' => 'view', 'active' => env('PATH_ROUTER_ACTIVE', true), 'root_dir' => 'www', 'middleware' => [ // 'web', // 'auth', ], 'headers' => [ 'pdf' => [ 'Content-Type' => 'application/pdf', ], ], 'handler' => new \Inmanturbo\PathRouter\Handlers\PathBasedViewResponseHandler, ], ], ];
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.