headerx / laravel-legacy-loader
catch-all routing for use of vanilla php scripts in your laravel app.
Fund package maintenance!
headerx
Requires
- illuminate/contracts: ^8.37|^9.0
- spatie/laravel-package-tools: ^1.4.3
Requires (Dev)
- brianium/paratest: ^6.2
- friendsofphp/php-cs-fixer: ^3.0
- nunomaduro/collision: ^6.1
- orchestra/testbench: ^7.1
- phpunit/phpunit: ^9.5
- spatie/laravel-ray: ^1.9
- vimeo/psalm: ^4.4
README
Installation
You can install the package via composer:
composer require headerx/laravel-legacy-loader
You can publish the config file with:
php artisan vendor:publish --provider="HeaderX\LegacyLoader\LegacyLoaderServiceProvider" --tag="legacy-loader-config"
This is the contents of the published config file:
return [ /** * Route prefix under which the php files are to be * accessed. Additional routes are not needed, * files will be accessible via thier path. */ 'route_prefix' => env('LEGACY_ROUTE_PREFIX', 'legacy'), /** * Path to legacy php scripts * relative to base_path() */ 'file_path' => env('LEGACY_FILE_PATH', 'resources/legacy'), /** * If your legacy app has its own * authentication you will need * to publish config and add * your own middleware. */ 'middleware' => [ 'web', // 'auth', ],
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.